aboutsummaryrefslogtreecommitdiff
path: root/confui/ui_automation.h
blob: d69c4d704f2c8c60cb75f11322347eb1841bbb43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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);
};