Relay dialog hooked up
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user