diff options
Diffstat (limited to 'kpacman/keys.h')
-rw-r--r-- | kpacman/keys.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/kpacman/keys.h b/kpacman/keys.h new file mode 100644 index 0000000..955afea --- /dev/null +++ b/kpacman/keys.h @@ -0,0 +1,45 @@ +#ifndef KEYS_H +#define KEYS_H + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#include <kapp.h> + +#include <qdialog.h> +#include <qlabel.h> +#include <qstring.h> + +#include <kaccel.h> + +class Keys : public QDialog +{ + Q_OBJECT +public: + Keys( QWidget *parent=0, const char *name=0 ); + +private slots: + void butRight(); + void butLeft(); + void butUp(); + void butDown(); + + void getKey(int); + void defaults(); + void focusIn(QLabel *); + void focusOut(QLabel *); + + void ok(); + +protected: + void keyPressEvent( QKeyEvent * ); + +private: + void init(); + + QLabel *labels[4]; + QLabel *lab; +}; + +#endif // KEYS_H |