summaryrefslogtreecommitdiff
path: root/noncore/games/kpacman/keys.h
blob: c0c9d8200dfdf67d5d646920d1196df70d3e15f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef KEYS_H
#define KEYS_H

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include "portable.h"

#if defined( KDE2_PORT )
#include <kapp.h>
#include <kaccel.h>
#endif

#include <qdialog.h>
#include <qlabel.h>
#include <qstring.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