cmCursesForm.h 491 B

12345678910111213141516171819202122232425262728
  1. #ifndef __cmCursesForm_h
  2. #define __cmCursesForm_h
  3. #include <curses.h>
  4. #include <form.h>
  5. class cmCursesForm
  6. {
  7. public:
  8. cmCursesForm();
  9. virtual ~cmCursesForm();
  10. // Description:
  11. // Handle user input.
  12. virtual void HandleInput() = 0;
  13. // Description:
  14. // Display form.
  15. virtual void Render(int left, int top, int width, int height) = 0;
  16. protected:
  17. cmCursesForm(const cmCursesForm& from);
  18. void operator=(const cmCursesForm&);
  19. FORM* m_Form;
  20. };
  21. #endif // __cmCursesForm_h