summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog/cmCursesBoolWidget.cxx
diff options
context:
space:
mode:
authorBerk Geveci <berk.geveci@kitware.com>2001-12-13 18:28:41 (GMT)
committerBerk Geveci <berk.geveci@kitware.com>2001-12-13 18:28:41 (GMT)
commit69cb66f7ffd5541f60026135fa521f0369210bab (patch)
treeadf376c3f9ab2b35360e1845d31c85d7d0636354 /Source/CursesDialog/cmCursesBoolWidget.cxx
parent10085174b630460f69697da0017f7c41c7ae2908 (diff)
downloadCMake-69cb66f7ffd5541f60026135fa521f0369210bab.zip
CMake-69cb66f7ffd5541f60026135fa521f0369210bab.tar.gz
CMake-69cb66f7ffd5541f60026135fa521f0369210bab.tar.bz2
Updated toolbar.
Diffstat (limited to 'Source/CursesDialog/cmCursesBoolWidget.cxx')
-rw-r--r--Source/CursesDialog/cmCursesBoolWidget.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/CursesDialog/cmCursesBoolWidget.cxx b/Source/CursesDialog/cmCursesBoolWidget.cxx
index 9d54b54..f19dba5 100644
--- a/Source/CursesDialog/cmCursesBoolWidget.cxx
+++ b/Source/CursesDialog/cmCursesBoolWidget.cxx
@@ -1,4 +1,5 @@
#include "cmCursesBoolWidget.h"
+#include "cmCursesMainForm.h"
cmCursesBoolWidget::cmCursesBoolWidget(int width, int height,
int left, int top) :
@@ -11,8 +12,10 @@ cmCursesBoolWidget::cmCursesBoolWidget(int width, int height,
this->SetValueAsBool(false);
}
-bool cmCursesBoolWidget::HandleInput(int& key, FORM* form, WINDOW* w)
+bool cmCursesBoolWidget::HandleInput(int& key, cmCursesMainForm* fm, WINDOW* w)
{
+ FORM* form = fm->GetForm();
+
// 10 == enter
if (key == 10 || key == KEY_ENTER)
{