2009-10-04 10:30:41 +03:00
|
|
|
/*============================================================================
|
|
|
|
CMake - Cross Platform Makefile Generator
|
|
|
|
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
|
2008-10-12 18:41:06 +02:00
|
|
|
|
2009-10-04 10:30:41 +03:00
|
|
|
Distributed under the OSI-approved BSD License (the "License");
|
|
|
|
see accompanying file Copyright.txt for details.
|
2008-10-12 18:41:06 +02:00
|
|
|
|
2009-10-04 10:30:41 +03:00
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
|
|
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the License for more information.
|
|
|
|
============================================================================*/
|
2008-10-12 18:41:06 +02:00
|
|
|
#include "cmCursesLabelWidget.h"
|
|
|
|
|
2013-03-16 19:13:01 +02:00
|
|
|
cmCursesLabelWidget::cmCursesLabelWidget(int width, int height,
|
2008-10-12 18:41:06 +02:00
|
|
|
int left, int top,
|
|
|
|
const std::string& name) :
|
|
|
|
cmCursesWidget(width, height, left, top)
|
|
|
|
{
|
|
|
|
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);
|
2008-10-12 18:41:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
cmCursesLabelWidget::~cmCursesLabelWidget()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
bool cmCursesLabelWidget::HandleInput(int&, cmCursesMainForm*, WINDOW* )
|
|
|
|
{
|
|
|
|
// Static text. No input is handled here.
|
|
|
|
return false;
|
|
|
|
}
|