1
0

cmCursesForm.h 849 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef __cmCursesForm_h
  2. #define __cmCursesForm_h
  3. #include "cmCursesStandardIncludes.h"
  4. class cmCursesForm
  5. {
  6. public:
  7. cmCursesForm();
  8. virtual ~cmCursesForm();
  9. // Description:
  10. // Handle user input.
  11. virtual void HandleInput() = 0;
  12. // Description:
  13. // Display form.
  14. virtual void Render(int left, int top, int width, int height) = 0;
  15. // Description:
  16. // This method should normally called only by the form.
  17. // The only exception is during a resize.
  18. virtual void UpdateStatusBar() = 0;
  19. // During a CMake run, an error handle should add errors
  20. // to be displayed afterwards.
  21. virtual void AddError(const char* message, const char* title) {};
  22. static cmCursesForm* CurrentForm;
  23. protected:
  24. cmCursesForm(const cmCursesForm& from);
  25. void operator=(const cmCursesForm&);
  26. FORM* m_Form;
  27. };
  28. #endif // __cmCursesForm_h