First commit
[clinton/Virtual-Jaguar-Rx.git] / src / gui / controllertab.h
1 #ifndef __CONTROLLERTAB_H__
2 #define __CONTROLLERTAB_H__
3
4 #include <QtWidgets>
5 #include <stdint.h>
6
7 class ControllerWidget;
8
9 class ControllerTab: public QWidget
10 {
11 Q_OBJECT
12
13 public:
14 ControllerTab(QWidget * parent = 0);
15 ~ControllerTab();
16
17 void SetupLastUsedProfile(void);
18
19 protected slots:
20 void DefineAllKeys(void);
21 void UpdateProfileKeys(int, uint32_t);
22 void UpdateProfileConnections(int);
23 void ChangeDevice(int);
24 void ChangeMapName(int);
25 void AddMapName(void);
26 void DeleteMapName(void);
27
28 private:
29 QLabel * label1;
30 QLabel * label2;
31 QLabel * label3;
32 QComboBox * deviceList;
33 QComboBox * mapNameList;
34 QComboBox * mapToList;
35 QCheckBox * controller1;
36 QCheckBox * controller2;
37 QPushButton * addMapName;
38 QPushButton * deleteMapName;
39 QPushButton * redefineAll;
40
41 public:
42 ControllerWidget * controllerWidget;
43 int profileNum;
44 };
45
46 #endif // __CONTROLLERTAB_H__