Document updates for the R3 release
[clinton/Virtual-Jaguar-Rx.git] / src / gui / keybindingstab.h
1 #ifndef __KEYBINDINGSTAB_H__
2 #define __KEYBINDINGSTAB_H__
3
4 #include <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 KBRESTART,
39 KBSTEPINTO,
40 KBSTEPOVER,
41 KBFULLSCREEN,
42 KB_END
43 };
44
45
46 //
47 class KeyBindingsTab: public QWidget
48 {
49 Q_OBJECT
50
51 public:
52 KeyBindingsTab(QWidget * parent = 0);
53 ~KeyBindingsTab();
54 void SetSettings(void);
55 void GetSettings(void);
56 };
57
58
59 //
60 extern KeyBindings KeyBindingsTable[KB_END];
61
62
63 #endif // __KEYBINDINGSTAB_H__