-
Notifications
You must be signed in to change notification settings - Fork 0
/
gui.h
138 lines (95 loc) · 1.54 KB
/
gui.h
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
#ifndef GUI_H
#define GUI_H
#include "mainwindow.h"
#include <QObject>
class hButton : public QPushButton
{
Q_OBJECT
public:
int id;
int foo;
v8::Persistent<v8::Function> fnc;
hButton( QString ext);
bool event( QEvent * e );
signals:
public slots:
};
class hTable : public QTableWidget
{
Q_OBJECT
public:
int id;
int foo;
v8::Persistent<v8::Function> fnc;
hTable();
signals:
public slots:
};
class hTree : public QTreeWidget
{
Q_OBJECT
public:
int id;
int foo;
v8::Persistent<v8::Function> fnc;
hTree();
signals:
public slots:
};
class hList : public QListWidget
{
Q_OBJECT
public:
int id;
int foo;
v8::Persistent<v8::Function> fnc;
hList();
signals:
public slots:
};
class hTimer : public QTimer
{
Q_OBJECT
public:
int id;
int foo;
v8::Persistent<v8::Function> fnc;
hTimer();
signals:
public slots:
};
class hAction : public QAction
{
Q_OBJECT
public:
int id;
int foo;
v8::Persistent<v8::Function> fnc;
hAction(QObject * parent);
hAction( QString ext,QObject * parent);
hAction( const QIcon icon,QString text,QObject * parent);
protected:
bool event( QEvent * e );
signals:
public slots:
void trigger();
};
class hGreed : public QGridLayout
{
Q_OBJECT
public:
hGreed( int c = 2);
int col;
int col_cnt;
signals:
public slots:
};
class gui : public QObject
{
Q_OBJECT
public:
explicit gui(QObject *parent = 0);
signals:
public slots:
};
#endif // GUI_H