ENH: fix uppercase version so defines are not upper as well
[cmake.git] / Source / CursesDialog / cmCursesBoolWidget.h
blobf873716ad4c8855d29a7c789964c9552b862ca7b
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmCursesBoolWidget.h,v $
5 Language: C++
6 Date: $Date: 2002-10-23 22:03:27 $
7 Version: $Revision: 1.4 $
9 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
10 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 #ifndef __cmCursesBoolWidget_h
18 #define __cmCursesBoolWidget_h
20 #include "cmCursesWidget.h"
21 class cmCursesMainForm;
23 class cmCursesBoolWidget : public cmCursesWidget
25 public:
26 cmCursesBoolWidget(int width, int height, int left, int top);
28 // Description:
29 // Handle user input. Called by the container of this widget
30 // when this widget has focus. Returns true if the input was
31 // handled.
32 virtual bool HandleInput(int& key, cmCursesMainForm* fm, WINDOW* w);
34 // Description:
35 // Set/Get the value (on/off).
36 void SetValueAsBool(bool value);
37 bool GetValueAsBool();
39 protected:
40 cmCursesBoolWidget(const cmCursesBoolWidget& from);
41 void operator=(const cmCursesBoolWidget&);
45 #endif // __cmCursesBoolWidget_h