]> Shamusworld >> Repos - virtualjaguar/blob - src/gui/controllertab.h
d0749d2d70f63af547398a27644a3e10f98f48d1
[virtualjaguar] / src / gui / controllertab.h
1 #ifndef __CONTROLLERTAB_H__
2 #define __CONTROLLERTAB_H__
3
4 #include <QtGui>
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(void);
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                 QCheckBox * controller1;
35                 QCheckBox * controller2;
36                 QPushButton * addMapName;
37                 QPushButton * deleteMapName;
38                 QPushButton * redefineAll;
39
40         public:
41                 ControllerWidget * controllerWidget;
42                 int profileNum;
43 };
44
45 #endif  // __CONTROLLERTAB_H__