cmCursesBoolWidget.h 698 B

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