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