summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog/cmCursesStringWidget.h
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-11-04 22:37:21 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-11-04 22:37:21 (GMT)
commit12215e56f3aee80f10aab5ae4afa405cde14c73d (patch)
treee17aed89ac2465be5b3139134a498803b53c2b03 /Source/CursesDialog/cmCursesStringWidget.h
parent47769671feb31221d2a513f6483e60caf8c8a899 (diff)
downloadCMake-12215e56f3aee80f10aab5ae4afa405cde14c73d.zip
CMake-12215e56f3aee80f10aab5ae4afa405cde14c73d.tar.gz
CMake-12215e56f3aee80f10aab5ae4afa405cde14c73d.tar.bz2
Start working on adding tab support
Diffstat (limited to 'Source/CursesDialog/cmCursesStringWidget.h')
-rw-r--r--Source/CursesDialog/cmCursesStringWidget.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/CursesDialog/cmCursesStringWidget.h b/Source/CursesDialog/cmCursesStringWidget.h
index 6f406b8..4082ad7 100644
--- a/Source/CursesDialog/cmCursesStringWidget.h
+++ b/Source/CursesDialog/cmCursesStringWidget.h
@@ -56,6 +56,14 @@ public:
{ return m_InEdit; }
/**
+ * This method is called when different keys are pressed. The
+ * subclass can have a special implementation handler for this.
+ */
+ virtual void OnTab(cmCursesMainForm* fm, WINDOW* w);
+ virtual void OnReturn(cmCursesMainForm* fm, WINDOW* w);
+ virtual void OnType(int& key, cmCursesMainForm* fm, WINDOW* w);
+
+ /**
* If there are any, print the widget specific commands
* in the toolbar and return true. Otherwise, return false
* and the parent widget will print.
@@ -68,6 +76,8 @@ protected:
// true if the widget is in edit mode
bool m_InEdit;
+ char* m_OriginalString;
+ bool m_Done;
};
#endif // __cmCursesStringWidget_h