core: Fix libdwarf and Qt build failure
[clinton/Virtual-Jaguar-Rx.git] / src / gui / keybindingstab.h
1 #ifndef __KEYBINDINGSTAB_H__
2 #define __KEYBINDINGSTAB_H__
3
4 #include <QtWidgets/QtWidgets>
5
6
7 //
8 struct KeyBindings
9 {
10 size_t KBType;
11 const char *KBNameSetting;
12 const char *KBNameLabel;
13 const char *KBPlaceholderText;
14 const char *KBDefaultValue;
15 QLabel *KBLabel;
16 QLineEdit *KBLineEdit;
17 };
18
19
20 //
21 enum
22 {
23 KB_TYPEGENERAL = 0,
24 KB_TYPEDEBUGGER = 1,
25 KB_TYPEALPINE = 2
26 };
27
28 // List the keybindings used for the settings
29 enum
30 {
31 KB_START = 0,
32 KBQUIT = 0,
33 KBPICKFILE,
34 KBCONFIGURE,
35 KBEMUSTATUS,
36 KBPAUSE,
37 KBFRAMEADVANCE,
38 KBFULLSCREEN,
39 KBSCREENSHOT,
40 KBRESTART,
41 KBSTEPINTO,
42 KBSTEPOVER,
43 KBFUNCTIONBREAKPOINT,
44 KBBREAKPOINTS,
45 KBDELETEALLBREAKPOINTS,
46 KB_END
47 };
48
49
50 //
51 class KeyBindingsTab: public QWidget
52 {
53 Q_OBJECT
54
55 public:
56 KeyBindingsTab(QWidget * parent = 0);
57 ~KeyBindingsTab();
58 void SetSettings(void);
59 void GetSettings(void);
60 };
61
62
63 //
64 extern KeyBindings KeyBindingsTable[KB_END];
65
66
67 #endif // __KEYBINDINGSTAB_H__