mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
37 lines
759 B
C++
37 lines
759 B
C++
#pragma once
|
|
#include "macro-action.hpp"
|
|
#include "macro-action-factory.hpp"
|
|
#include "filter-combo-box.hpp"
|
|
|
|
#include <memory>
|
|
|
|
namespace advss {
|
|
|
|
class SwitchButton;
|
|
|
|
class MacroActionEdit : public MacroSegmentEdit {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
MacroActionEdit(QWidget *parent = nullptr,
|
|
std::shared_ptr<MacroAction> * = nullptr);
|
|
void SetupWidgets(bool basicSetup = false);
|
|
void SetEntryData(std::shared_ptr<MacroAction> *);
|
|
|
|
private slots:
|
|
void ActionSelectionChanged(const QString &text);
|
|
void ActionEnableChanged(bool);
|
|
void UpdateActionState();
|
|
|
|
private:
|
|
std::shared_ptr<MacroSegment> Data() const;
|
|
|
|
FilterComboBox *_actionSelection;
|
|
SwitchButton *_enable;
|
|
|
|
std::shared_ptr<MacroAction> *_entryData;
|
|
bool _loading = true;
|
|
};
|
|
|
|
} // namespace advss
|