cmCursesLongMessageForm.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef __cmCursesLongMessageForm_h
  2. #define __cmCursesLongMessageForm_h
  3. #include "../cmStandardIncludes.h"
  4. #include "cmCursesForm.h"
  5. #include "cmCursesStandardIncludes.h"
  6. class cmCursesCacheEntryComposite;
  7. class cmCursesLongMessageForm : public cmCursesForm
  8. {
  9. public:
  10. cmCursesLongMessageForm(std::vector<string> const& messages,
  11. const char* title);
  12. virtual ~cmCursesLongMessageForm();
  13. // Description:
  14. // Handle user input.
  15. virtual void HandleInput();
  16. // Description:
  17. // Display form. Use a window of size width x height, starting
  18. // at top, left.
  19. virtual void Render(int left, int top, int width, int height);
  20. // Description:
  21. // This method should normally called only by the form.
  22. // The only exception is during a resize.
  23. void PrintKeys();
  24. // Description:
  25. // This method should normally called only by the form.
  26. // The only exception is during a resize.
  27. virtual void UpdateStatusBar();
  28. protected:
  29. cmCursesLongMessageForm(const cmCursesLongMessageForm& from);
  30. void operator=(const cmCursesLongMessageForm&);
  31. std::string m_Messages;
  32. std::string m_Title;
  33. FIELD* m_Fields[2];
  34. };
  35. #endif // __cmCursesLongMessageForm_h