Refactor macro signal handling
Some checks failed
debian-build / build (push) Has been cancelled
Check locale / ubuntu64 (push) Has been cancelled
Push to master / Check Formatting 🔍 (push) Has been cancelled
Push to master / Build Project 🧱 (push) Has been cancelled
Push to master / Create Release 🛫 (push) Has been cancelled

Also drop support for scene group signals in macro, which hopefully
aren't used much anymore
This commit is contained in:
WarmUpTill
2025-10-19 13:27:30 +02:00
committed by WarmUpTill
parent a82662c8f4
commit 5d6a693f36
18 changed files with 101 additions and 92 deletions

View File

@@ -7,6 +7,7 @@
#include "macro-segment-copy-paste.hpp"
#include "macro-segment-list.hpp"
#include "macro-settings.hpp"
#include "macro-signals.hpp"
#include "math-helpers.hpp"
#include "name-dialog.hpp"
#include "path-helpers.hpp"
@@ -108,6 +109,16 @@ MacroEdit::MacroEdit(QWidget *parent, QStringList helpMsg)
connect(ui->conditionsList, &QWidget::customContextMenuRequested, this,
&MacroEdit::ShowMacroConditionsContextMenu);
connect(this, &MacroEdit::MacroAdded, MacroSignalManager::Instance(),
&MacroSignalManager::Add);
connect(this, &MacroEdit::MacroRemoved, MacroSignalManager::Instance(),
&MacroSignalManager::Remove);
connect(this, &MacroEdit::MacroRenamed, MacroSignalManager::Instance(),
&MacroSignalManager::Rename);
connect(this, &MacroEdit::MacroSegmentOrderChanged,
MacroSignalManager::Instance(),
&MacroSignalManager::SegmentOrderChanged);
// Set action and condition toolbars
const std::string pathPrefix =
GetDataFilePath("res/images/" + GetThemeTypeName());