cmCursesLabelWidget.cxx 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*=========================================================================
  2. Program: Insight Segmentation & Registration Toolkit
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2002 Insight Consortium. All rights reserved.
  8. See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
  9. This software is distributed WITHOUT ANY WARRANTY; without even
  10. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. PURPOSE. See the above copyright notices for more information.
  12. =========================================================================*/
  13. #include "cmCursesLabelWidget.h"
  14. cmCursesLabelWidget::cmCursesLabelWidget(int width, int height,
  15. int left, int top,
  16. const std::string& name) :
  17. cmCursesWidget(width, height, left, top)
  18. {
  19. field_opts_off(m_Field, O_EDIT);
  20. field_opts_off(m_Field, O_ACTIVE);
  21. field_opts_off(m_Field, O_STATIC);
  22. this->SetValue(name.c_str());
  23. }
  24. cmCursesLabelWidget::~cmCursesLabelWidget()
  25. {
  26. }
  27. bool cmCursesLabelWidget::HandleInput(int& key, cmCursesMainForm*, WINDOW* )
  28. {
  29. // Static text. No input is handled here.
  30. return false;
  31. }