Applied Hakan's patch
[centerim.git] / kkconsui / include / abstractui.h
blobb478347348e29ac4a49d5cfbbd2f2e5c205011cb
1 #ifndef __KONST_UI_SKEL_H_
2 #define __KONST_UI_SKEL_H_
4 #include "conf.h"
5 #include "conscommon.h"
6 #include "screenarea.h"
8 __KTOOL_BEGIN_NAMESPACE
10 class abstractuicontrol {
11 protected:
12 screenarea screenbuffer;
13 bool fisopen, finished, aborted;
15 public:
16 bool emacs;
17 int x1, x2, y1, y2;
19 abstractuicontrol();
20 abstractuicontrol(const abstractuicontrol &a);
21 virtual ~abstractuicontrol();
23 virtual bool empty() const;
24 bool getaborted() const;
25 bool isopen() const;
27 virtual void redraw();
28 virtual void close();
29 virtual void abort();
32 __KTOOL_END_NAMESPACE
34 #ifdef __KTOOL_USE_NAMESPACES
36 using ktool::abstractuicontrol;
38 #endif
40 #endif