diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-08-17 18:58:43 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-08-17 18:58:43 +0200 |
commit | 6f2c87870081718731cccee678e1e89869826de2 (patch) | |
tree | 942f97a4b9d4126d385e8bdc0aee30ff3dc6ed6d /kpacman/keys.h | |
download | tdepacman-6f2c87870081718731cccee678e1e89869826de2.tar.gz tdepacman-6f2c87870081718731cccee678e1e89869826de2.zip |
Initial import of version 0.3.2 from the source package.
https://sourceforge.net/projects/kpacman/files/kpacman/0.3.2/kpacman-0.3.2.tar.gz
Original package is licenced under GPL 2.0.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
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 |