X-Git-Url: http://git.maemo.org/git/?p=irwi;a=blobdiff_plain;f=src%2Fmainwidget.h;h=da0405210c2969c6b586501f836fa6e3438900ae;hp=526299dc354251d7f1ad56e467cdf2c4b9f8b8c8;hb=9cb0ca7e6de20439f0df7c0121061c9f17c632b4;hpb=2296397643b3c16f2775943e1d710245fa408f5d diff --git a/src/mainwidget.h b/src/mainwidget.h index 526299d..da04052 100644 --- a/src/mainwidget.h +++ b/src/mainwidget.h @@ -1,30 +1,46 @@ -#ifndef MAINWIDGET_H -#define MAINWIDGET_H +#ifndef _MAINWIDGET_H_ +#define _MAINWIDGET_H_ #include - #include "irctrl.h" +class IEngine; class QGridLayout; -class QPushButton; +class QToolButton; +class QSettings; class MainWidget : public QWidget { Q_OBJECT + public: MainWidget (QWidget *parent = NULL); + ~MainWidget(); public slots: void showSettingsDialog(); +private slots: + void sendCmdVolUp(); + void sendCmdVolDown(); + void sendCmdChUp(); + void sendCmdChDown(); + void sendCmdPower(); + void sendCmdMute(); + protected: void paintEvent(QPaintEvent *event); - + private: + void resize(); + +private: + IrCtrl irCtrl; + + QSettings *settings; static const int BUTTON_COUNT = 6; QGridLayout *layout; - QPushButton *buttons[BUTTON_COUNT]; - IrCtrl irCtrl; + QToolButton *buttons[BUTTON_COUNT]; }; #endif