diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-11-04 22:37:21 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-11-04 22:37:21 (GMT) |
commit | 12215e56f3aee80f10aab5ae4afa405cde14c73d (patch) | |
tree | e17aed89ac2465be5b3139134a498803b53c2b03 /Source/CursesDialog/cmCursesPathWidget.h | |
parent | 47769671feb31221d2a513f6483e60caf8c8a899 (diff) | |
download | CMake-12215e56f3aee80f10aab5ae4afa405cde14c73d.zip CMake-12215e56f3aee80f10aab5ae4afa405cde14c73d.tar.gz CMake-12215e56f3aee80f10aab5ae4afa405cde14c73d.tar.bz2 |
Start working on adding tab support
Diffstat (limited to 'Source/CursesDialog/cmCursesPathWidget.h')
-rw-r--r-- | Source/CursesDialog/cmCursesPathWidget.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/CursesDialog/cmCursesPathWidget.h b/Source/CursesDialog/cmCursesPathWidget.h index ca07b9f..ffe2828 100644 --- a/Source/CursesDialog/cmCursesPathWidget.h +++ b/Source/CursesDialog/cmCursesPathWidget.h @@ -24,10 +24,22 @@ class cmCursesPathWidget : public cmCursesStringWidget public: cmCursesPathWidget(int width, int height, int left, int top); + /** + * 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); + protected: cmCursesPathWidget(const cmCursesPathWidget& from); void operator=(const cmCursesPathWidget&); + std::string m_LastString; + std::string m_LastGlob; + bool m_Cycle; + std::string::size_type m_CurrentIndex; }; #endif // __cmCursesPathWidget_h |