]> Shamusworld >> Repos - virtualjaguar/blob - src/gui/controllertab.h
Minor changes to make the key definition dialog a bit nicer.
[virtualjaguar] / src / gui / controllertab.h
1 #ifndef __CONTROLLERTAB_H__
2 #define __CONTROLLERTAB_H__
3
4 #include <QtGui>
5 #include <stdint.h>
6
7 class ControllerTab: public QWidget
8 {
9         Q_OBJECT
10
11         public:
12                 ControllerTab(QWidget * parent = 0);
13                 ~ControllerTab();
14                 void UpdateLabel(void);
15
16         protected slots:
17                 void DefineAllKeys(void);
18
19         private:
20                 QPushButton * redefineAll;
21                 void DrawBorderedText(QPainter &, int, int, QString);
22
23         public:
24                 uint32_t p1Keys[21];
25
26         private:
27                 QLabel * controllerPic;
28
29                 // Class data
30                 static char keyName1[96][16];
31                 static char keyName2[64][16];
32 };
33
34 #endif  // __CONTROLLERTAB_H__