Corrected compiler error
[rofl0r-motor.git] / src / ui / ncurses / uitagbrowser.h
blob9615e2aac1c45568ee3c4e986f204a12a206e1e3
1 #ifndef __UITAGBROWSER_H__
2 #define __UITAGBROWSER_H__
4 #include "motorcommon.h"
5 #include "ncursesui.h"
6 #include "motortagbrowser.h"
8 __MOTOR_BEGIN_NAMESPACE
10 class uitagbrowser {
11 private:
12 string search, filter;
13 textwindow w;
14 verticalmenu m;
15 bool modified;
16 INT mpos;
17 vector<motortagbrowser::record> tags;
19 static INT mkeys(verticalmenu &m, INT k);
20 static INT multiplekeys(verticalmenu &m, INT k);
22 void makemenu(verticalmenu &m);
23 void input();
24 bool open(string &fname, INT &lineno);
26 void changemode();
27 void changefilter();
29 void title();
30 void reload();
32 public:
33 uitagbrowser();
34 ~uitagbrowser();
36 string getfilter() const { return filter; }
37 void setfilter(const string &afilter) { filter = afilter; }
39 void exec();
42 __MOTOR_END_NAMESPACE
44 #ifdef __MOTOR_USE_NAMESPACES
46 using motor::uitagbrowser;
48 #endif
50 extern uitagbrowser uitb;
52 #endif