00001 #ifndef KEYVIEW_H
00002 #define KEYVIEW_H
00003 #include <qgrid.h>
00004 #include <qlineedit.h>
00005 #include <qwindowsystem_qws.h>
00006
00007
00008 class Keyview : public QGrid
00009 {
00010 Q_OBJECT
00011
00012 public:
00013 Keyview( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
00014 ~Keyview();
00015
00016 private slots:
00017 void updateItems(int, int, int, bool, bool);
00018
00019 private:
00020
00021 QLineEdit *unicode;
00022 QLineEdit *keycode;
00023 QLineEdit *modifiers;
00024 QLineEdit *isPress;
00025 QLineEdit *autoRepeat;
00026 };
00027
00028 class KeyFilter : public QObject, public QWSServer::KeyboardFilter
00029 {
00030 Q_OBJECT
00031
00032 public:
00033 KeyFilter( QObject* parent, const char* name = 0);
00034 virtual ~KeyFilter();
00035 virtual bool filter(int unicode, int keycode, int modifiers, bool isPress,
00036 bool autoRepeat);
00037
00038 signals:
00039 void keyPressed(int, int, int, bool, bool);
00040
00041 };
00042
00043 #endif