cmCursesLabelWidget.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmCursesLabelWidget_h
  11. #define cmCursesLabelWidget_h
  12. #include "cmCursesWidget.h"
  13. class cmCursesMainForm;
  14. class cmCursesLabelWidget : public cmCursesWidget
  15. {
  16. public:
  17. cmCursesLabelWidget(int width, int height, int left, int top,
  18. const std::string& name);
  19. virtual ~cmCursesLabelWidget();
  20. // Description:
  21. // Handle user input. Called by the container of this widget
  22. // when this widget has focus. Returns true if the input was
  23. // handled
  24. virtual bool HandleInput(int& key, cmCursesMainForm* fm, WINDOW* w);
  25. protected:
  26. cmCursesLabelWidget(const cmCursesLabelWidget& from);
  27. void operator=(const cmCursesLabelWidget&);
  28. };
  29. #endif // cmCursesLabelWidget_h