-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEXTSEL.HPP
40 lines (33 loc) · 1.04 KB
/
EXTSEL.HPP
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
class ExtSelectWindow : public Window
{
int start,
end,
previous;
KEY *hotKeys;
int (*func)(ExtSelectWindow&,int n,int y=0,int maxheight=0);
void (*action)(int);
ATTR barAttr;
int numEntries;
int offset[100];
void recalc(int order = 1);
void redraw(int = -1);
void scrollUp(int n);
void scrollDown(int n);
void keyDown();
void keyUp();
void keyPgUp();
void keyPgDn();
void keyHome();
void keyEnd();
public:
int current;
KEY hotkey;
ExtSelectWindow () { }
ExtSelectWindow (int num,ATTR battr,int (*f)(ExtSelectWindow&,int,int,int),KEY *hot=NULL,void(*actionf)(int)=NULLFUNC);
void define (int num,ATTR battr,int (*f)(ExtSelectWindow&,int,int,int),KEY *hot=NULL,void(*actionf)(int)=NULLFUNC);
void reDefine (int num);
int process();
void show(int n);
void showLast() { show(numEntries-1); }
void showFirst() { show(0); }
};