Remote class implementation
[irwi] / src / mainwidget.h
1 #ifndef _MAINWIDGET_H_
2 #define _MAINWIDGET_H_
3
4 #include <QWidget>
5
6 #include "iremote.h"
7
8 class IEngine;
9 class QGridLayout;
10 class QToolButton;
11 class QSettings;
12
13 class MainWidget : public QWidget
14 {
15     Q_OBJECT
16
17 public:
18     MainWidget (QWidget *parent = NULL);
19     ~MainWidget();
20
21 public slots:
22     void showSettingsDialog();
23
24 private slots:
25     void sendCmdClicked(IRemote::RemoteCmd cmd);
26
27 protected:
28     void paintEvent(QPaintEvent *event);
29
30 private:
31     void resize();
32
33 private:
34     IEngine *engine;
35     QSettings *settings;
36     static const int BUTTON_COUNT = 6;
37     QGridLayout *layout;
38     QToolButton *buttons[BUTTON_COUNT];
39 };
40
41 #endif
42