aboutsummaryrefslogtreecommitdiff
path: root/confui/ui_tab_automations.h
blob: 04eac22dc94ba9aa316719b8b02bb4a0d6989dff (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 <QMainWindow>

#include "mainwindow.h"
#include "ui_automation.h"
#include "ui_scroll_container.h"

class CDAddAutomationWidget;
/** @brief automations tab content widget */
class CDAutomationsTabWidget : public QWidget {
	Q_OBJECT

private:
	CDScrollContainerLayout *main_layout;
	QVBoxLayout *automations;
	CDAddAutomationWidget *new_automation_button;
	map<cd_link_t, CDAutomationWidget *> automation_widgets;

public:
	CDMainWindow *mainwindow = nullptr;

	CDAutomationsTabWidget(CDMainWindow *main_window = nullptr);
	virtual ~CDAutomationsTabWidget();
	/** @brief cascading ui update (add/remove/update automations in scrolling
	 * view) */
	virtual void update();
};