1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmCursesBoolWidget.h,v $
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
26 cmCursesBoolWidget(int width
, int height
, int left
, int top
);
29 // Handle user input. Called by the container of this widget
30 // when this widget has focus. Returns true if the input was
32 virtual bool HandleInput(int& key
, cmCursesMainForm
* fm
, WINDOW
* w
);
35 // Set/Get the value (on/off).
36 void SetValueAsBool(bool value
);
37 bool GetValueAsBool();
40 cmCursesBoolWidget(const cmCursesBoolWidget
& from
);
41 void operator=(const cmCursesBoolWidget
&);
45 #endif // __cmCursesBoolWidget_h