]> Shamusworld >> Repos - virtualjaguar/blob - src/gui/keygrabber.h
Fixed OP regression in Rayman, probably others.
[virtualjaguar] / src / gui / keygrabber.h
1 //
2 // keygrabber.h - Widget to grab a key and dismiss itself
3 //
4 // by James L. Hammons
5 // (C) 2011 Underground Software
6 //
7
8 #ifndef __KEYGRABBER_H__
9 #define __KEYGRABBER_H__
10
11 #include <QtGui>
12
13 //class GeneralTab;
14 //class ControllerTab;
15 //class AlpineTab;
16
17 class KeyGrabber: public QDialog
18 {
19         Q_OBJECT
20
21         public:
22                 KeyGrabber(QWidget * parent = 0);
23                 ~KeyGrabber();
24 //              void UpdateVJSettings(void);
25                 void SetText(QString);
26 //              int GetKeyGrabbed(void);
27
28         protected:
29                 void keyPressEvent(QKeyEvent *);
30
31 //      private:
32 //              void LoadDialogFromSettings(void);
33
34         private:
35 //              QTabWidget * tabWidget;
36 //              QDialogButtonBox * buttonBox;
37                 QLabel * label;
38
39         public:
40                 int key;
41 //              GeneralTab * generalTab;
42 //              ControllerTab * controllerTab;
43 //              AlpineTab * alpineTab;
44 };
45
46 #endif  // __KEYGRABBER_H__