cmCursesCacheEntryComposite.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*=========================================================================
  2. Program: CMake - Cross-Platform Makefile Generator
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
  8. See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
  9. This software is distributed WITHOUT ANY WARRANTY; without even
  10. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. PURPOSE. See the above copyright notices for more information.
  12. =========================================================================*/
  13. #ifndef __cmCursesCacheEntryComposite_h
  14. #define __cmCursesCacheEntryComposite_h
  15. #include "../cmCacheManager.h"
  16. #include "cmCursesLabelWidget.h"
  17. class cmCursesCacheEntryComposite
  18. {
  19. public:
  20. cmCursesCacheEntryComposite(const char* key, int labelwidth, int entrywidth);
  21. cmCursesCacheEntryComposite(const char* key,
  22. const cmCacheManager::CacheIterator& it,
  23. bool isNew, int labelwidth, int entrywidth);
  24. ~cmCursesCacheEntryComposite();
  25. const char* GetValue();
  26. friend class cmCursesMainForm;
  27. protected:
  28. cmCursesCacheEntryComposite(const cmCursesCacheEntryComposite& from);
  29. void operator=(const cmCursesCacheEntryComposite&);
  30. cmCursesLabelWidget* m_Label;
  31. cmCursesLabelWidget* m_IsNewLabel;
  32. cmCursesWidget* m_Entry;
  33. std::string m_Key;
  34. int m_LabelWidth;
  35. int m_EntryWidth;
  36. };
  37. #endif // __cmCursesCacheEntryComposite_h