cmCursesLabelWidget.cxx 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #include "cmCursesLabelWidget.h"
  11. cmCursesLabelWidget::cmCursesLabelWidget(int width, int height,
  12. int left, int top,
  13. const std::string& name) :
  14. cmCursesWidget(width, height, left, top)
  15. {
  16. field_opts_off(this->Field, O_EDIT);
  17. field_opts_off(this->Field, O_ACTIVE);
  18. field_opts_off(this->Field, O_STATIC);
  19. this->SetValue(name);
  20. }
  21. cmCursesLabelWidget::~cmCursesLabelWidget()
  22. {
  23. }
  24. bool cmCursesLabelWidget::HandleInput(int&, cmCursesMainForm*, WINDOW* )
  25. {
  26. // Static text. No input is handled here.
  27. return false;
  28. }