rename multixkbd -> multypo; get rid of UI magic
[multypo.git] / qt / multypo.cpp
similarity index 85%
rename from qt/multikbd.cpp
rename to qt/multypo.cpp
index fb30f2125bf923e4748ae6fd955a7185dcecd1aa..6e461e3abb35d461027bcdf3ac3e0be4897aff99 100644 (file)
@@ -1,5 +1,4 @@
-#include "multikbd.h"
-#include "ui_multikbd.h"
+#include "multypo.h"
 
 #include <QX11Info>
 #include <QDebug>
@@ -8,20 +7,18 @@
 #include <X11/extensions/XInput2.h>
 #include <X11/Xutil.h>
 
-MultiKBD::MultiKBD(QWidget *parent) :
+MultypoWindow::MultypoWindow(QWidget *parent) :
        QWidget(parent),
-       ui(new Ui::MultiKBD),
        xiInited(false)
 {
-       ui->setupUi(this);
+       
 }
 
-MultiKBD::~MultiKBD()
+MultypoWindow::~MultypoWindow()
 {
-       delete ui;
 }
 
-void MultiKBD::showEvent ( QShowEvent * )
+void MultypoWindow::showEvent ( QShowEvent * )
 {
        if (xiInited) return;
 
@@ -59,12 +56,12 @@ void MultiKBD::showEvent ( QShowEvent * )
        setFocus(Qt::OtherFocusReason);*/
 }
 
-void MultiKBD::handleKeyPress(int device, QString string)
+void MultypoWindow::handleKeyPress(int device, QString string)
 {
        qDebug() << "Device" << device << "String" << string;
 }
 
-bool MultiKBD::handleX11Event(XEvent *event)
+bool MultypoWindow::handleX11Event(XEvent *event)
 {
        if (!xiInited) return false;
        Display *dpy = x11Info().display();