switched from qsettings to json added editng of actors
This commit is contained in:
@ -6,8 +6,11 @@
|
||||
#include <QListWidgetItem>
|
||||
#include <QTime>
|
||||
#include <vector>
|
||||
#include "alarmtime.h"
|
||||
#include "microcontroller.h"
|
||||
#include "../actors/alarmtime.h"
|
||||
#include "../microcontroller.h"
|
||||
#include "../sensors/sensor.h"
|
||||
#include "../items/itemstore.h"
|
||||
#include "../items/poweritem.h"
|
||||
|
||||
|
||||
namespace Ui
|
||||
@ -20,7 +23,7 @@ class MainWindow : public QMainWindow
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit MainWindow(Microcontroller *micro, bool isRemoteMode = false, QWidget *parent = nullptr);
|
||||
explicit MainWindow(Microcontroller *micro, PowerItem* powerItem, ItemStore* itemStore, SensorStore *sensorStore, QWidget *parent = nullptr);
|
||||
~MainWindow();
|
||||
|
||||
private:
|
||||
@ -30,30 +33,17 @@ private:
|
||||
|
||||
Microcontroller *_micro;
|
||||
|
||||
void remoteMode();
|
||||
|
||||
signals:
|
||||
|
||||
void signalAmpOn();
|
||||
void signalAmpOff();
|
||||
|
||||
void showAlmSettingsDialog();
|
||||
PowerItem *_powerItem;
|
||||
|
||||
private slots:
|
||||
|
||||
//RGB
|
||||
void slotChangedRgb(const QColor color);
|
||||
void slotApplyPreset();
|
||||
|
||||
void changeHeaderLableText(const QString string);
|
||||
|
||||
//door
|
||||
void slotDoorOpenTimeout();
|
||||
void showPowerItemDialog();
|
||||
|
||||
public slots:
|
||||
|
||||
void auxStateChanged(int value);
|
||||
|
||||
void changeHeaderLableText(QString string);
|
||||
};
|
||||
|
||||
#endif // MAINWINDOW_H
|
||||
|
Reference in New Issue
Block a user