aboutsummaryrefslogtreecommitdiff
path: root/confui/ui_automation.h
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-12-05 12:39:12 +0100
committerlonkaars <loek@pipeframe.xyz>2022-12-05 12:39:12 +0100
commit51bfa6adf76353a4ac0f7941bae138cc5cb665c5 (patch)
tree481234586c22f7e0927072b6c965ef240e9976a0 /confui/ui_automation.h
parentcd89c506cf45b6de221f89388fb146efca96599c (diff)
automation widget + renaming
Diffstat (limited to 'confui/ui_automation.h')
-rw-r--r--confui/ui_automation.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/confui/ui_automation.h b/confui/ui_automation.h
new file mode 100644
index 0000000..d69c4d7
--- /dev/null
+++ b/confui/ui_automation.h
@@ -0,0 +1,28 @@
+#pragma once
+
+#include <QWidget>
+#include <QHBoxLayout>
+#include <QPushButton>
+#include <QString>
+#include <QComboBox>
+
+#include "mesh_connector.h"
+
+class CDAutomationWidget : public QWidget {
+ Q_OBJECT
+
+private:
+ cd_s_automation* _automation;
+
+ QHBoxLayout* main_layout;
+ QComboBox* dropdown_button;
+ QComboBox* dropdown_action;
+ QComboBox* dropdown_light;
+ QPushButton* button_remove;
+
+public:
+ CDAutomationWidget(cd_s_automation* automation, QWidget *parent = nullptr);
+ virtual ~CDAutomationWidget();
+ virtual void update();
+ virtual void set_automation(cd_s_automation* automation);
+};