diff options
Diffstat (limited to 'Source/CursesDialog/cmCursesLabelWidget.h')
-rw-r--r-- | Source/CursesDialog/cmCursesLabelWidget.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Source/CursesDialog/cmCursesLabelWidget.h b/Source/CursesDialog/cmCursesLabelWidget.h new file mode 100644 index 0000000..b32eb0d --- /dev/null +++ b/Source/CursesDialog/cmCursesLabelWidget.h @@ -0,0 +1,28 @@ +#ifndef __cmCursesLabelWidget_h +#define __cmCursesLabelWidget_h + +#include <iostream> +#include <curses.h> +#include <form.h> +#include "cmCursesWidget.h" + + +class cmCursesLabelWidget : public cmCursesWidget +{ +public: + cmCursesLabelWidget(int width, int height, int left, int top, + const std::string& name); + virtual ~cmCursesLabelWidget(); + + // Description: + // Handle user input. Called by the container of this widget + // when this widget has focus. Returns true if the input was + // handled + virtual bool HandleInput(int& key, FORM* form, WINDOW* w); + +protected: + cmCursesLabelWidget(const cmCursesLabelWidget& from); + void operator=(const cmCursesLabelWidget&); +}; + +#endif // __cmCursesLabelWidget_h |