forked from Raffarti/Touchegg-gce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lists.h
72 lines (64 loc) · 1.67 KB
/
lists.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
#ifndef LISTS_H
#define LISTS_H
#include <QStringList>
class Lists : public QObject
{
Q_OBJECT
public:
enum GestureDirection {
NO_DIRECTION,
ALL,
UP,
DOWN,
LEFT,
RIGHT,
IN,
OUT
};
enum ActionType {
NO_ACTION,
MOUSE_CLICK,
SCROLL,
MINIMIZE_WINDOW,
MAXIMIZE_RESTORE_WINDOW,
CLOSE_WINDOW,
RESIZE_WINDOW,
SHOW_DESKTOP,
CHANGE_DESKTOP,
CHANGE_VIEWPORT,
SEND_KEYS,
MOVE_WINDOW,
RUN_COMMAND,
DRAG_AND_DROP
};
enum GestureType {
TAP,
DRAG,
PINCH,
ROTATE,
TAP_AND_HOLD,
DOUBLE_TAP
};
explicit Lists(QObject *parent = 0);
static QStringList* actionList();
static QStringList* gestureTypes();
static QStringList* gestureDirections(GestureType type);
static QString* toString(GestureType t);
static QString* toString(GestureDirection t);
static QString* toString(ActionType t);
static QString* printTag(GestureType t);
static QString* printTag(GestureDirection t);
static QString* printTag(ActionType t);
static ActionType toAT(QString s);
static GestureType toGT(QString s);
static GestureDirection toGD(QString s);
static ActionType aT(QString s);
static GestureType gT(QString s);
static GestureDirection gD(QString s);
static bool got(GestureType type, GestureDirection dir);
static QString trnAT(QString s);
static QString trnGT(QString s);
static QString trnGD(QString s);
signals:
};
#endif // LISTS_H