]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/gui/controllertab.h
Made keyboard handling a bit more sane.
[virtualjaguar] / src / gui / controllertab.h
index 545e5bc3a6beb5cf304385abcec1f77a84a87124..c72507d3ab1da1ced7a288fd5b421c74edce6011 100644 (file)
@@ -4,6 +4,8 @@
 #include <QtGui>
 #include <stdint.h>
 
+class ControllerWidget;
+
 class ControllerTab: public QWidget
 {
        Q_OBJECT
@@ -11,24 +13,34 @@ class ControllerTab: public QWidget
        public:
                ControllerTab(QWidget * parent = 0);
                ~ControllerTab();
-               void UpdateLabel(void);
+
+               void SetupLastUsedProfile(void);
 
        protected slots:
                void DefineAllKeys(void);
+               void UpdateProfileKeys(int, uint32_t);
+               void UpdateProfileConnections(int);
+               void ChangeDevice(int);
+               void ChangeMapName(int);
+               void AddMapName(void);
+               void DeleteMapName(void);
 
        private:
+               QLabel * label1;
+               QLabel * label2;
+               QLabel * label3;
+               QComboBox * deviceList;
+               QComboBox * mapNameList;
+               QComboBox * mapToList;
+               QCheckBox * controller1;
+               QCheckBox * controller2;
+               QPushButton * addMapName;
+               QPushButton * deleteMapName;
                QPushButton * redefineAll;
-               void DrawBorderedText(QPainter &, int, int, QString);
 
        public:
-               uint32_t p1Keys[21];
-
-       private:
-               QLabel * controllerPic;
-
-               // Class data
-               static char keyName1[96][16];
-               static char keyName2[64][16];
+               ControllerWidget * controllerWidget;
+               int profileNum;
 };
 
 #endif // __CONTROLLERTAB_H__