526299dc354251d7f1ad56e467cdf2c4b9f8b8c8
[irwi] / src / mainwidget.h
1 #ifndef MAINWIDGET_H
2 #define MAINWIDGET_H
3
4 #include <QWidget>
5
6 #include "irctrl.h"
7
8 class QGridLayout;
9 class QPushButton;
10
11 class MainWidget : public QWidget
12 {
13     Q_OBJECT
14 public:
15     MainWidget (QWidget *parent = NULL);
16
17 public slots:
18     void showSettingsDialog();
19
20 protected:
21     void paintEvent(QPaintEvent *event);
22  
23 private:
24     static const int BUTTON_COUNT = 6;
25     QGridLayout *layout;
26     QPushButton *buttons[BUTTON_COUNT];
27     IrCtrl irCtrl;
28 };
29
30 #endif
31