2016-09-27 15:01:08 -04:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2014-12-11 13:10:03 -05:00
|
|
|
#ifndef cmCursesLabelWidget_h
|
|
|
|
#define cmCursesLabelWidget_h
|
2001-11-04 18:05:21 -05:00
|
|
|
|
2016-09-01 21:55:09 +02:00
|
|
|
#include <cmConfigure.h>
|
|
|
|
|
|
|
|
#include "cmCursesStandardIncludes.h"
|
2001-11-05 11:52:27 -05:00
|
|
|
#include "cmCursesWidget.h"
|
2001-11-04 18:05:21 -05:00
|
|
|
|
2016-09-01 21:55:09 +02:00
|
|
|
#include <string>
|
|
|
|
|
2001-12-13 13:28:41 -05:00
|
|
|
class cmCursesMainForm;
|
2001-11-04 18:05:21 -05:00
|
|
|
|
|
|
|
class cmCursesLabelWidget : public cmCursesWidget
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
cmCursesLabelWidget(int width, int height, int left, int top,
|
2002-10-23 18:03:27 -04:00
|
|
|
const std::string& name);
|
2016-06-27 21:25:27 +02:00
|
|
|
~cmCursesLabelWidget() CM_OVERRIDE;
|
2012-08-13 13:42:58 -04:00
|
|
|
|
2001-11-04 18:05:21 -05:00
|
|
|
// Description:
|
|
|
|
// Handle user input. Called by the container of this widget
|
|
|
|
// when this widget has focus. Returns true if the input was
|
|
|
|
// handled
|
2016-06-27 21:25:27 +02:00
|
|
|
bool HandleInput(int& key, cmCursesMainForm* fm, WINDOW* w) CM_OVERRIDE;
|
2001-11-04 18:05:21 -05:00
|
|
|
|
|
|
|
protected:
|
|
|
|
cmCursesLabelWidget(const cmCursesLabelWidget& from);
|
|
|
|
void operator=(const cmCursesLabelWidget&);
|
|
|
|
};
|
|
|
|
|
2014-12-11 13:10:03 -05:00
|
|
|
#endif // cmCursesLabelWidget_h
|