1 /* This file is part of Dilay
2  * Copyright © 2015-2018 Alexander Bau
3  * Use and redistribute under the terms of the GNU General Public License
4  */
5 #ifndef DILAY_VIEW_INPUT
6 #define DILAY_VIEW_INPUT
7 
8 class QKeySequence;
9 class QString;
10 
11 enum class ViewInputEvent
12 {
13   A,
14   B,
15   C,
16   D,
17   E,
18   F,
19   G,
20   H,
21   I,
22   J,
23   K,
24   L,
25   M,
26   N,
27   O,
28   P,
29   Q,
30   R,
31   S,
32   T,
33   U,
34   V,
35   W,
36   X,
37   Y,
38   Z,
39   Esc,
40   Space,
41   MouseLeft,
42   MouseMiddle,
43   MouseWheel,
44   MouseRight
45 };
46 
47 enum class ViewInputModifier
48 {
49   None,
50   Ctrl,
51   Shift,
52   Alt
53 };
54 
55 namespace ViewInput
56 {
57   QKeySequence toQKeySequence (ViewInputEvent, ViewInputModifier);
58   QString      toQString (ViewInputEvent);
59   QString      toQString (ViewInputModifier);
60   QString      toQString (ViewInputEvent, ViewInputModifier);
61 }
62 
63 #endif
64