cadMousePro-gui/src/MouseMainWindow.h
branchv_0
changeset 17 d37c6dd9aa20
parent 16 2705911938b4
child 18 7323a89c15e9
equal deleted inserted replaced
16:2705911938b4 17:d37c6dd9aa20
    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 <QTabWidget>
    21 #include <QFormLayout>
    22 #include <QFormLayout>
    22 #include <QCheckBox>
    23 #include <QCheckBox>
    23 #include <QRadioButton>
    24 #include <QRadioButton>
    24 #include <QButtonGroup>
    25 #include <QButtonGroup>
    25 #include <QLineEdit>
    26 #include <QLineEdit>
    34 
    35 
    35 	virtual ~MouseMainWindow() {
    36 	virtual ~MouseMainWindow() {
    36 	}
    37 	}
    37 
    38 
    38 private:
    39 private:
    39 	QWidget* centralwidget;
    40 	QTabWidget* tabs = new QTabWidget(this);
    40 	QFormLayout* formLayout;
       
    41 	QCheckBox* statusProxy = new QCheckBox("connected to Daemon", this);
    41 	QCheckBox* statusProxy = new QCheckBox("connected to Daemon", this);
    42 	QCheckBox* statusUPower = new QCheckBox("connected to UPower", this);
    42 	QCheckBox* statusUPower = new QCheckBox("connected to UPower", this);
    43 	QCheckBox* statusDevice = new QCheckBox("present", this);
    43 	QCheckBox* statusDevice = new QCheckBox("present", this);
    44 	
    44 
    45 	QCheckBox* configureSmartScrolling = new QCheckBox("smart scrolling (free wheel)", this);
    45 	QCheckBox* configureSmartScrolling = new QCheckBox("smart scrolling (free wheel)", this);
    46 	QCheckBox* configureLiftOffDetection = new QCheckBox("lift-off detection", this);
    46 	QCheckBox* configureLiftOffDetection = new QCheckBox("lift-off detection", this);
    47 	QRadioButton* configureFrequency125 = new QRadioButton("125 Hz", this);
    47 	QRadioButton* configureFrequency125 = new QRadioButton("125 Hz", this);
    48 	QRadioButton* configureFrequency250 = new QRadioButton("250 Hz", this);
    48 	QRadioButton* configureFrequency250 = new QRadioButton("250 Hz", this);
    49 	QRadioButton* configureFrequency500 = new QRadioButton("500 Hz", this);
    49 	QRadioButton* configureFrequency500 = new QRadioButton("500 Hz", this);
    50 	QRadioButton* configureFrequency1000 = new QRadioButton("1000 Hz", this);
    50 	QRadioButton* configureFrequency1000 = new QRadioButton("1000 Hz", this);
    51 	
    51 
    52 	QLineEdit* message = new QLineEdit(this);
    52 	QLineEdit* message = new QLineEdit(this);
    53 	
    53 
    54 	QDBusConnection connection = QDBusConnection::systemBus();
    54 	QDBusConnection connection = QDBusConnection::systemBus();
    55 	InfoGlobalcodeMouseCadMouseProInterface* proxy;
    55 	InfoGlobalcodeMouseCadMouseProInterface* proxy;
       
    56 
       
    57 	void initStatusPanel();
       
    58 	void initConfigurationPanel();
       
    59 	void initAboutPanel();
    56 
    60 
    57 private slots:
    61 private slots:
    58 	void refresh();
    62 	void refresh();
    59 	void configure();
    63 	void configure();
    60 };
    64 };