cadMousePro-gui/src/MouseMainWindow.h
branchv_0
changeset 16 2705911938b4
parent 15 00783e323e66
child 17 d37c6dd9aa20
--- a/cadMousePro-gui/src/MouseMainWindow.h	Thu Aug 29 22:20:18 2019 +0200
+++ b/cadMousePro-gui/src/MouseMainWindow.h	Fri Aug 30 01:22:12 2019 +0200
@@ -18,18 +18,43 @@
 #pragma once
 
 #include <QMainWindow>
+#include <QFormLayout>
+#include <QCheckBox>
+#include <QRadioButton>
+#include <QButtonGroup>
+#include <QLineEdit>
+#include <QtDBus/QDBusConnection>
+
+#include "generated-sources/Proxy.h"
 
 class MouseMainWindow : public QMainWindow {
-
 	Q_OBJECT
 public:
-	MouseMainWindow() {
-		resize(640, 480);
-		setWindowTitle("cadMousePro");
-		
-	}
+	MouseMainWindow();
 
 	virtual ~MouseMainWindow() {
 	}
 
+private:
+	QWidget* centralwidget;
+	QFormLayout* formLayout;
+	QCheckBox* statusProxy = new QCheckBox("connected to Daemon", this);
+	QCheckBox* statusUPower = new QCheckBox("connected to UPower", this);
+	QCheckBox* statusDevice = new QCheckBox("present", this);
+	
+	QCheckBox* configureSmartScrolling = new QCheckBox("smart scrolling (free wheel)", this);
+	QCheckBox* configureLiftOffDetection = new QCheckBox("lift-off detection", this);
+	QRadioButton* configureFrequency125 = new QRadioButton("125 Hz", this);
+	QRadioButton* configureFrequency250 = new QRadioButton("250 Hz", this);
+	QRadioButton* configureFrequency500 = new QRadioButton("500 Hz", this);
+	QRadioButton* configureFrequency1000 = new QRadioButton("1000 Hz", this);
+	
+	QLineEdit* message = new QLineEdit(this);
+	
+	QDBusConnection connection = QDBusConnection::systemBus();
+	InfoGlobalcodeMouseCadMouseProInterface* proxy;
+
+private slots:
+	void refresh();
+	void configure();
 };
\ No newline at end of file