Relay dialog hooked up

This commit is contained in:
IMback
2017-11-07 20:26:16 +01:00
parent 08dc57d385
commit 2c46e6ffb6
6 changed files with 102 additions and 13 deletions

View File

@ -2,6 +2,12 @@
#define RELAYDIALOG_H
#include <QDialog>
#include <QList>
#include <vector>
#include <QAbstractButton>
#include "microcontroller.h"
#define STARTING_RELAY 4
namespace Ui {
class RelayDialog;
@ -12,11 +18,22 @@ class RelayDialog : public QDialog
Q_OBJECT
public:
explicit RelayDialog(QWidget *parent = 0);
explicit RelayDialog(Microcontroller *micro, QWidget *parent = 0);
~RelayDialog();
private:
std::vector<QAbstractButton*> _relayCheckBoxes;
Ui::RelayDialog *ui;
Microcontroller *_micro;
private slots:
void relayCheckBoxToggeled(bool checked);
public slots:
void relayStateChanged(std::vector<bool> relayStates);
};
#endif // RELAYDIALOG_H