cmCursesLabelWidget.h 718 B

12345678910111213141516171819202122232425262728
  1. #ifndef __cmCursesLabelWidget_h
  2. #define __cmCursesLabelWidget_h
  3. #include <iostream>
  4. #include <curses.h>
  5. #include <form.h>
  6. #include "cmCursesWidget.h"
  7. class cmCursesLabelWidget : public cmCursesWidget
  8. {
  9. public:
  10. cmCursesLabelWidget(int width, int height, int left, int top,
  11. const std::string& name);
  12. virtual ~cmCursesLabelWidget();
  13. // Description:
  14. // Handle user input. Called by the container of this widget
  15. // when this widget has focus. Returns true if the input was
  16. // handled
  17. virtual bool HandleInput(int& key, FORM* form, WINDOW* w);
  18. protected:
  19. cmCursesLabelWidget(const cmCursesLabelWidget& from);
  20. void operator=(const cmCursesLabelWidget&);
  21. };
  22. #endif // __cmCursesLabelWidget_h