cmCursesLongMessageForm.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmCursesLongMessageForm_h
  4. #define cmCursesLongMessageForm_h
  5. #include <cmConfigure.h>
  6. #include "cmCursesForm.h"
  7. #include "cmCursesStandardIncludes.h"
  8. #include <string>
  9. #include <vector>
  10. class cmCursesLongMessageForm : public cmCursesForm
  11. {
  12. public:
  13. cmCursesLongMessageForm(std::vector<std::string> const& messages,
  14. const char* title);
  15. ~cmCursesLongMessageForm() CM_OVERRIDE;
  16. // Description:
  17. // Handle user input.
  18. void HandleInput() CM_OVERRIDE;
  19. // Description:
  20. // Display form. Use a window of size width x height, starting
  21. // at top, left.
  22. void Render(int left, int top, int width, int height) CM_OVERRIDE;
  23. // Description:
  24. // This method should normally called only by the form.
  25. // The only exception is during a resize.
  26. void PrintKeys();
  27. // Description:
  28. // This method should normally called only by the form.
  29. // The only exception is during a resize.
  30. void UpdateStatusBar() CM_OVERRIDE;
  31. protected:
  32. cmCursesLongMessageForm(const cmCursesLongMessageForm& from);
  33. void operator=(const cmCursesLongMessageForm&);
  34. std::string Messages;
  35. std::string Title;
  36. FIELD* Fields[2];
  37. };
  38. #endif // cmCursesLongMessageForm_h