cmCursesCacheEntryComposite.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 char* key, int labelwidth, int entrywidth);
  18. cmCursesCacheEntryComposite(const char* key,
  19. const cmCacheManager::CacheIterator& it,
  20. bool isNew, int labelwidth, int entrywidth);
  21. ~cmCursesCacheEntryComposite();
  22. const char* GetValue();
  23. friend class cmCursesMainForm;
  24. protected:
  25. cmCursesCacheEntryComposite(const cmCursesCacheEntryComposite& from);
  26. void operator=(const cmCursesCacheEntryComposite&);
  27. cmCursesLabelWidget* Label;
  28. cmCursesLabelWidget* IsNewLabel;
  29. cmCursesWidget* Entry;
  30. std::string Key;
  31. int LabelWidth;
  32. int EntryWidth;
  33. };
  34. #endif // __cmCursesCacheEntryComposite_h