diff options
Diffstat (limited to 'Source/CursesDialog/cmCursesForm.h')
-rw-r--r-- | Source/CursesDialog/cmCursesForm.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Source/CursesDialog/cmCursesForm.h b/Source/CursesDialog/cmCursesForm.h new file mode 100644 index 0000000..4924f2e --- /dev/null +++ b/Source/CursesDialog/cmCursesForm.h @@ -0,0 +1,28 @@ +#ifndef __cmCursesForm_h +#define __cmCursesForm_h + +#include <curses.h> +#include <form.h> + +class cmCursesForm +{ +public: + cmCursesForm(); + virtual ~cmCursesForm(); + + // Description: + // Handle user input. + virtual void HandleInput() = 0; + + // Description: + // Display form. + virtual void Render(int left, int top, int width, int height) = 0; + +protected: + cmCursesForm(const cmCursesForm& from); + void operator=(const cmCursesForm&); + + FORM* m_Form; +}; + +#endif // __cmCursesForm_h |