-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathlists.h
91 lines (82 loc) · 2.58 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/**************************************************************************
* Copyright (c) 2012-2015 Raffaele Pertile <[email protected]>
* This file is part of touchegg-gce.
*
* touchegg-gce is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* touchegg-gce is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with touchegg-gce. If not, see <http://www.gnu.org/licenses/>.
**************************************************************************/
#ifndef LISTS_H
#define LISTS_H
#include <QObject>
#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