summaryrefslogtreecommitdiff
path: root/development/keyview/keyview.h
blob: 87c0d15af5b5373827976e7cc9adb43fd07efce8 (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
#ifndef KEYVIEW_H
#define KEYVIEW_H
#include <qgrid.h>
#include <qlineedit.h>
#include <qwindowsystem_qws.h>


class Keyview : public QGrid
{
    Q_OBJECT

public:
    Keyview( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
    ~Keyview();

private slots:
    void updateItems(int, int, int, bool, bool);

private:

    QLineEdit *unicode;
    QLineEdit *keycode;
    QLineEdit *modifiers;
    QLineEdit *isPress;
    QLineEdit *autoRepeat;
};

class KeyFilter : public QObject, public QWSServer::KeyboardFilter
{
    Q_OBJECT

public:
    KeyFilter( QObject* parent, const char* name = 0);
    virtual ~KeyFilter();
    virtual bool filter(int unicode, int keycode, int modifiers, bool isPress,
                bool autoRepeat);

signals:
    void keyPressed(int, int, int, bool, bool);

};

#endif