blob: c9fc8757947691cd72d6925d3f81f00408f5e56f (
plain) (
blame)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
#ifndef __GROUPTGBUTTON_H
#define __GROUPTGBUTTON_H
#include <api/skin/widgets/groupclickwnd.h>
#include <api/wnd/wndclass/guiobjwnd.h>
#define GROUPTOGGLEBUTTON_PARENT GuiObjectWnd
#define STATUS_OFF 0
#define STATUS_ON 1
/**
Class
@short
@author Nullsoft
@ver 1.0
@see
*/
class GroupToggleButton : public GROUPTOGGLEBUTTON_PARENT {
public:
/**
Method
@see
@ret
@param
*/
GroupToggleButton();
/**
Method
@see
@ret
@param
*/
virtual ~GroupToggleButton();
/**
Method
@see
@ret
@param
*/
virtual int onInit();
/**
Method
@see
@ret
@param
*/
virtual int childNotify(ifc_window *child, int msg, intptr_t param1=0, intptr_t param2=0);
virtual void setGroups(const wchar_t *on, const wchar_t *off);
virtual void toggle();
virtual int wantFullClick();
virtual void grouptoggle_onLeftPush();
virtual void grouptoggle_onRightPush();
virtual void setStatus(int s);
virtual int getStatus() { return status; }
virtual int wantAutoToggle() { return 1; }
virtual GroupClickWnd *enumGroups(int n);
virtual int getNumGroups();
private:
void initGroups();
GroupClickWnd on;
GroupClickWnd off;
StringW on_id, off_id;
int status;
};
#endif
|