cadMousePro-gui/src/MouseMainWindow.h
branchv_0
changeset 17 d37c6dd9aa20
parent 16 2705911938b4
child 18 7323a89c15e9
--- a/cadMousePro-gui/src/MouseMainWindow.h	Fri Aug 30 01:22:12 2019 +0200
+++ b/cadMousePro-gui/src/MouseMainWindow.h	Mon Sep 02 00:23:37 2019 +0200
@@ -18,6 +18,7 @@
 #pragma once
 
 #include <QMainWindow>
+#include <QTabWidget>
 #include <QFormLayout>
 #include <QCheckBox>
 #include <QRadioButton>
@@ -36,24 +37,27 @@
 	}
 
 private:
-	QWidget* centralwidget;
-	QFormLayout* formLayout;
+	QTabWidget* tabs = new QTabWidget(this);
 	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;
 
+	void initStatusPanel();
+	void initConfigurationPanel();
+	void initAboutPanel();
+
 private slots:
 	void refresh();
 	void configure();