rename multixkbd -> multypo; get rid of UI magic
[multypo.git] / qt / multypo.h
diff --git a/qt/multypo.h b/qt/multypo.h
new file mode 100644 (file)
index 0000000..400d4c9
--- /dev/null
@@ -0,0 +1,27 @@
+#ifndef MULTIKBD_H
+#define MULTIKBD_H
+
+#include <QWidget>
+
+class MultypoWindow : public QWidget
+{
+       Q_OBJECT
+       
+public:
+       explicit MultypoWindow(QWidget *parent = 0);
+       ~MultypoWindow();
+
+       bool handleX11Event(XEvent *event);
+
+protected:
+       virtual void showEvent (QShowEvent *);
+
+private:
+       void handleKeyPress(int device, QString string);
+
+private:
+       bool xiInited;
+       int xiOpcode;
+};
+
+#endif // MULTIKBD_H