cmCursesLabelWidget.cxx 539 B

12345678910111213141516171819202122
  1. #include "cmCursesLabelWidget.h"
  2. cmCursesLabelWidget::cmCursesLabelWidget(int width, int height,
  3. int left, int top,
  4. const std::string& name) :
  5. cmCursesWidget(width, height, left, top)
  6. {
  7. field_opts_off(m_Field, O_EDIT);
  8. field_opts_off(m_Field, O_ACTIVE);
  9. field_opts_off(m_Field, O_STATIC);
  10. this->SetValue(name.c_str());
  11. }
  12. cmCursesLabelWidget::~cmCursesLabelWidget()
  13. {
  14. }
  15. bool cmCursesLabelWidget::HandleInput(int& key, cmCursesMainForm*, WINDOW* )
  16. {
  17. // Static text. No input is handled here.
  18. return false;
  19. }