projects
/
irwi
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Tests for remotelistwidgetitem
[irwi]
/
src
/
mainwidget.h
1
#ifndef _MAINWIDGET_H_
2
#define _MAINWIDGET_H_
3
4
#include <QWidget>
5
#include "irctrl.h"
6
7
class IEngine;
8
class QGridLayout;
9
class QToolButton;
10
class QSettings;
11
12
class MainWidget : public QWidget
13
{
14
Q_OBJECT
15
16
public:
17
MainWidget (QWidget *parent = NULL);
18
~MainWidget();
19
20
public slots:
21
void showSettingsDialog();
22
23
private slots:
24
void sendCmdVolUp();
25
void sendCmdVolDown();
26
void sendCmdChUp();
27
void sendCmdChDown();
28
void sendCmdPower();
29
void sendCmdMute();
30
31
protected:
32
void paintEvent(QPaintEvent *event);
33
34
private:
35
void resize();
36
37
private:
38
IrCtrl irCtrl;
39
40
QSettings *settings;
41
static const int BUTTON_COUNT = 6;
42
QGridLayout *layout;
43
QToolButton *buttons[BUTTON_COUNT];
44
};
45
46
#endif
47