X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Fcontrollertab.h;h=5862eb37a5bddad3208a398202ceb93637ae7198;hb=c9d57b57d70ab2ae842144828175820fb207a3b0;hp=545e5bc3a6beb5cf304385abcec1f77a84a87124;hpb=b74298f2a4540168f8e4a2bbc9fc6fdc7f4afa57;p=virtualjaguar diff --git a/src/gui/controllertab.h b/src/gui/controllertab.h index 545e5bc..5862eb3 100644 --- a/src/gui/controllertab.h +++ b/src/gui/controllertab.h @@ -1,9 +1,11 @@ #ifndef __CONTROLLERTAB_H__ #define __CONTROLLERTAB_H__ -#include +#include #include +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__