Fixed bug #1734670: when logging off of MSN it did not hide the contacts
[centerim.git] / kkconsui / include / textbrowser.h
blob65018c8e0bfbd70b1f806519d5426dfdb4456976
1 #ifndef __KONST_UI_TEXT_H_
2 #define __KONST_UI_TEXT_H_
4 #include <vector>
6 #include "conf.h"
7 #include "conscommon.h"
8 #include "abstractui.h"
10 __KTOOL_BEGIN_NAMESPACE
12 class textbrowser: public abstractuicontrol {
13 protected:
14 int ncolor, line, endline;
15 vector<string> lines;
16 string buf;
18 void draw(int line);
20 public:
21 int (*otherkeys)(textbrowser &caller, int k);
22 void (*idle)(textbrowser &caller);
24 textbrowser(int nx1, int ny1, int nx2, int ny2, int clr);
25 textbrowser(int clr = 0);
26 virtual ~textbrowser();
28 void setcolor(int clr);
29 void setcoords(int nx1, int ny1, int nx2, int ny2);
30 void redraw();
31 void move(int k);
33 int open();
35 bool empty();
36 void setbuf(const string &p);
39 __KTOOL_END_NAMESPACE
41 #ifdef __KTOOL_USE_NAMESPACES
43 using ktool::textbrowser;
45 #endif
47 #endif