#ifndef RELAYDIALOG_H #define RELAYDIALOG_H #include #include #include #include #include "microcontroller.h" #define STARTING_RELAY 4 namespace Ui { class RelayDialog; } class RelayDialog : public QDialog { Q_OBJECT public: explicit RelayDialog(Microcontroller *micro, QWidget *parent = 0); ~RelayDialog(); private: std::vector _relayCheckBoxes; Ui::RelayDialog *ui; Microcontroller *_micro; private slots: void relayCheckBoxToggeled(bool checked); public slots: void relayStateChanged(std::vector relayStates); }; #endif // RELAYDIALOG_H