cadMousePro-gui/src/MouseMainWindow.h
branchv_0
changeset 16 2705911938b4
parent 15 00783e323e66
child 17 d37c6dd9aa20
equal deleted inserted replaced
15:00783e323e66 16:2705911938b4
    16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
    16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
    17  */
    17  */
    18 #pragma once
    18 #pragma once
    19 
    19 
    20 #include <QMainWindow>
    20 #include <QMainWindow>
       
    21 #include <QFormLayout>
       
    22 #include <QCheckBox>
       
    23 #include <QRadioButton>
       
    24 #include <QButtonGroup>
       
    25 #include <QLineEdit>
       
    26 #include <QtDBus/QDBusConnection>
       
    27 
       
    28 #include "generated-sources/Proxy.h"
    21 
    29 
    22 class MouseMainWindow : public QMainWindow {
    30 class MouseMainWindow : public QMainWindow {
    23 
       
    24 	Q_OBJECT
    31 	Q_OBJECT
    25 public:
    32 public:
    26 	MouseMainWindow() {
    33 	MouseMainWindow();
    27 		resize(640, 480);
       
    28 		setWindowTitle("cadMousePro");
       
    29 		
       
    30 	}
       
    31 
    34 
    32 	virtual ~MouseMainWindow() {
    35 	virtual ~MouseMainWindow() {
    33 	}
    36 	}
    34 
    37 
       
    38 private:
       
    39 	QWidget* centralwidget;
       
    40 	QFormLayout* formLayout;
       
    41 	QCheckBox* statusProxy = new QCheckBox("connected to Daemon", this);
       
    42 	QCheckBox* statusUPower = new QCheckBox("connected to UPower", this);
       
    43 	QCheckBox* statusDevice = new QCheckBox("present", this);
       
    44 	
       
    45 	QCheckBox* configureSmartScrolling = new QCheckBox("smart scrolling (free wheel)", this);
       
    46 	QCheckBox* configureLiftOffDetection = new QCheckBox("lift-off detection", this);
       
    47 	QRadioButton* configureFrequency125 = new QRadioButton("125 Hz", this);
       
    48 	QRadioButton* configureFrequency250 = new QRadioButton("250 Hz", this);
       
    49 	QRadioButton* configureFrequency500 = new QRadioButton("500 Hz", this);
       
    50 	QRadioButton* configureFrequency1000 = new QRadioButton("1000 Hz", this);
       
    51 	
       
    52 	QLineEdit* message = new QLineEdit(this);
       
    53 	
       
    54 	QDBusConnection connection = QDBusConnection::systemBus();
       
    55 	InfoGlobalcodeMouseCadMouseProInterface* proxy;
       
    56 
       
    57 private slots:
       
    58 	void refresh();
       
    59 	void configure();
    35 };
    60 };