cmake/Source/CursesDialog/cmCursesLabelWidget.cxx

25 lines
806 B
C++
Raw Normal View History

2016-10-30 18:24:19 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmCursesLabelWidget.h"
2016-10-30 18:24:19 +01:00
#include "cmCursesWidget.h"
2016-07-09 11:21:54 +02:00
cmCursesLabelWidget::cmCursesLabelWidget(int width, int height, int left,
int top, const std::string& name)
: cmCursesWidget(width, height, left, top)
{
2016-07-09 11:21:54 +02:00
field_opts_off(this->Field, O_EDIT);
field_opts_off(this->Field, O_ACTIVE);
field_opts_off(this->Field, O_STATIC);
2015-04-27 22:25:09 +02:00
this->SetValue(name);
}
2019-11-11 23:01:05 +01:00
cmCursesLabelWidget::~cmCursesLabelWidget() = default;
2016-10-30 18:24:19 +01:00
bool cmCursesLabelWidget::HandleInput(int& /*key*/, cmCursesMainForm* /*fm*/,
WINDOW* /*w*/)
{
// Static text. No input is handled here.
return false;
}