projects
/
irwi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Complete rewrite. Does not work yet.
[irwi]
/
src
/
mainwidget.h
diff --git
a/src/mainwidget.h
b/src/mainwidget.h
index
1f74c10
..
4e211d9
100644
(file)
--- a/
src/mainwidget.h
+++ b/
src/mainwidget.h
@@
-1,10
+1,11
@@
-#ifndef MAINWIDGET_H
-#define MAINWIDGET_H
+#ifndef _MAINWIDGET_H_
+#define _MAINWIDGET_H_
#include <QWidget>
#include <QWidget>
-#include "irctrl.h"
+#include "iremote.h"
+class IEngine;
class QGridLayout;
class QToolButton;
class QSettings;
class QGridLayout;
class QToolButton;
class QSettings;
@@
-12,6
+13,7
@@
class QSettings;
class MainWidget : public QWidget
{
Q_OBJECT
class MainWidget : public QWidget
{
Q_OBJECT
+
public:
MainWidget (QWidget *parent = NULL);
~MainWidget();
public:
MainWidget (QWidget *parent = NULL);
~MainWidget();
@@
-19,16
+21,21
@@
public:
public slots:
void showSettingsDialog();
public slots:
void showSettingsDialog();
+private slots:
+ void sendCmdClicked(IRemote::RemoteCmd cmd);
+
protected:
void paintEvent(QPaintEvent *event);
private:
void resize();
protected:
void paintEvent(QPaintEvent *event);
private:
void resize();
+
+private:
+ IEngine *engine;
+ QSettings *settings;
static const int BUTTON_COUNT = 6;
QGridLayout *layout;
QToolButton *buttons[BUTTON_COUNT];
static const int BUTTON_COUNT = 6;
QGridLayout *layout;
QToolButton *buttons[BUTTON_COUNT];
- IrCtrl irCtrl;
- QSettings *settings;
};
#endif
};
#endif