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
6 #include "cmConfigure.h" // IWYU pragma: keep
11 #include "cmCursesForm.h"
12 #include "cmCursesStandardIncludes.h"
14 class cmCursesLongMessageForm : public cmCursesForm
17 enum class ScrollBehavior
23 cmCursesLongMessageForm(std::vector<std::string> const& messages,
24 const char* title, ScrollBehavior scrollBehavior);
25 ~cmCursesLongMessageForm() override;
27 cmCursesLongMessageForm(cmCursesLongMessageForm const&) = delete;
28 cmCursesLongMessageForm& operator=(cmCursesLongMessageForm const&) = delete;
32 void HandleInput() override;
35 // Display form. Use a window of size width x height, starting
37 void Render(int left, int top, int width, int height) override;
40 // This method should normally called only by the form.
41 // The only exception is during a resize.
45 // This method should normally called only by the form.
46 // The only exception is during a resize.
47 void UpdateStatusBar() override;
52 ScrollBehavior Scrolling;
57 #endif // cmCursesLongMessageForm_h