cmCursesCacheEntryComposite.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmCursesCacheEntryComposite_h
  11. #define cmCursesCacheEntryComposite_h
  12. #include "../cmCacheManager.h"
  13. #include "cmCursesLabelWidget.h"
  14. class cmCursesCacheEntryComposite
  15. {
  16. public:
  17. cmCursesCacheEntryComposite(const std::string& key, int labelwidth,
  18. int entrywidth);
  19. cmCursesCacheEntryComposite(const std::string& key,
  20. cmake *cm,
  21. bool isNew, int labelwidth, int entrywidth);
  22. ~cmCursesCacheEntryComposite();
  23. const char* GetValue();
  24. friend class cmCursesMainForm;
  25. protected:
  26. cmCursesCacheEntryComposite(const cmCursesCacheEntryComposite& from);
  27. void operator=(const cmCursesCacheEntryComposite&);
  28. cmCursesLabelWidget* Label;
  29. cmCursesLabelWidget* IsNewLabel;
  30. cmCursesWidget* Entry;
  31. std::string Key;
  32. int LabelWidth;
  33. int EntryWidth;
  34. };
  35. #endif // cmCursesCacheEntryComposite_h