New Sensor-> Actor -> Item system (half implemented, relay support
only), new ui, Relay dehardcoeding.
This commit is contained in:
33
src/ui/relaywidget.h
Normal file
33
src/ui/relaywidget.h
Normal file
@ -0,0 +1,33 @@
|
||||
#ifndef RELAYWIDGET_H
|
||||
#define RELAYWIDGET_H
|
||||
|
||||
#include <QWidget>
|
||||
#include "relaysettingsdialog.h"
|
||||
#include "relay.h"
|
||||
|
||||
namespace Ui {
|
||||
class RelayWidget;
|
||||
}
|
||||
|
||||
class RelayWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
private:
|
||||
Relay* relay_;
|
||||
|
||||
private slots:
|
||||
void showSettingsDialog();
|
||||
|
||||
public:
|
||||
explicit RelayWidget(Relay* relay_, QWidget *parent = nullptr);
|
||||
Relay* getRelay();
|
||||
~RelayWidget();
|
||||
|
||||
public slots:
|
||||
void stateChanged(bool state);
|
||||
|
||||
private:
|
||||
Ui::RelayWidget *ui;
|
||||
};
|
||||
|
||||
#endif // RELAYWIDGET_H
|
Reference in New Issue
Block a user