diff options
Diffstat (limited to 'tdepacman/keys.h')
-rw-r--r-- | tdepacman/keys.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/tdepacman/keys.h b/tdepacman/keys.h new file mode 100644 index 0000000..f1c822a --- /dev/null +++ b/tdepacman/keys.h @@ -0,0 +1,44 @@ +#ifndef KEYS_H +#define KEYS_H + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include <kapp.h> + +#include <tqdialog.h> +#include <tqlabel.h> +#include <tqstring.h> +#include <tdeaccel.h> + +class PKeys : public TQDialog +{ + Q_OBJECT +public: + PKeys( TQWidget *parent=0, const char *name=0 ); + +private slots: + void butRight(); + void butLeft(); + void butUp(); + void butDown(); + + void getKey(int); + void defaults(); + void focusIn(TQLabel *); + void focusOut(TQLabel *); + + void ok(); + +protected: + void keyPressEvent( TQKeyEvent * ); + +private: + void init(); + + TQLabel *labels[4]; + TQLabel *lab; +}; + +#endif // KEYS_H |