cmCursesLabelWidget.cxx 495 B

123456789101112131415161718192021
  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. this->SetValue(name.c_str());
  10. }
  11. cmCursesLabelWidget::~cmCursesLabelWidget()
  12. {
  13. }
  14. bool cmCursesLabelWidget::HandleInput(int& key, FORM* form, WINDOW* w)
  15. {
  16. // Static text. No input is handled here.
  17. return false;
  18. }