New Sensor-> Actor -> Item system (half implemented, relay support
only), new ui, Relay dehardcoeding.
This commit is contained in:
59
src/ui/mainwindow.h
Normal file
59
src/ui/mainwindow.h
Normal file
@ -0,0 +1,59 @@
|
||||
#ifndef MAINWINDOW_H
|
||||
#define MAINWINDOW_H
|
||||
|
||||
#include <QMainWindow>
|
||||
#include <QColorDialog>
|
||||
#include <QListWidgetItem>
|
||||
#include <QTime>
|
||||
#include <vector>
|
||||
#include "alarmtime.h"
|
||||
#include "microcontroller.h"
|
||||
|
||||
|
||||
namespace Ui
|
||||
{
|
||||
class MainWindow;
|
||||
}
|
||||
|
||||
class MainWindow : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit MainWindow(Microcontroller *micro, bool isRemoteMode = false, QWidget *parent = nullptr);
|
||||
~MainWindow();
|
||||
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
|
||||
QColorDialog colorChooser;
|
||||
|
||||
Microcontroller *_micro;
|
||||
|
||||
void remoteMode();
|
||||
|
||||
signals:
|
||||
|
||||
void signalAmpOn();
|
||||
void signalAmpOff();
|
||||
|
||||
void showAlmSettingsDialog();
|
||||
|
||||
private slots:
|
||||
|
||||
//RGB
|
||||
void slotChangedRgb(const QColor color);
|
||||
void slotApplyPreset();
|
||||
|
||||
void changeHeaderLableText(const QString string);
|
||||
|
||||
//door
|
||||
void slotDoorOpenTimeout();
|
||||
|
||||
public slots:
|
||||
|
||||
void auxStateChanged(int value);
|
||||
|
||||
};
|
||||
|
||||
#endif // MAINWINDOW_H
|
Reference in New Issue
Block a user