cmCursesLongMessageForm.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 __cmCursesLongMessageForm_h
  11. #define __cmCursesLongMessageForm_h
  12. #include "../cmStandardIncludes.h"
  13. #include "cmCursesForm.h"
  14. #include "cmCursesStandardIncludes.h"
  15. class cmCursesCacheEntryComposite;
  16. class cmCursesLongMessageForm : public cmCursesForm
  17. {
  18. public:
  19. cmCursesLongMessageForm(std::vector<std::string> const& messages,
  20. const char* title);
  21. virtual ~cmCursesLongMessageForm();
  22. // Description:
  23. // Handle user input.
  24. virtual void HandleInput();
  25. // Description:
  26. // Display form. Use a window of size width x height, starting
  27. // at top, left.
  28. virtual void Render(int left, int top, int width, int height);
  29. // Description:
  30. // This method should normally called only by the form.
  31. // The only exception is during a resize.
  32. void PrintKeys();
  33. // Description:
  34. // This method should normally called only by the form.
  35. // The only exception is during a resize.
  36. virtual void UpdateStatusBar();
  37. protected:
  38. cmCursesLongMessageForm(const cmCursesLongMessageForm& from);
  39. void operator=(const cmCursesLongMessageForm&);
  40. std::string Messages;
  41. std::string Title;
  42. FIELD* Fields[2];
  43. };
  44. #endif // __cmCursesLongMessageForm_h