#pragma once #include #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 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(); };