Add support to resolve variables on action queue add

This commit is contained in:
WarmUpTill
2024-03-01 23:42:12 +01:00
committed by WarmUpTill
parent f8dadd38b4
commit 03e71e9183
82 changed files with 835 additions and 248 deletions

View File

@@ -266,6 +266,23 @@ std::string MacroActionSource::GetShortDesc() const
return "";
}
std::shared_ptr<MacroAction> MacroActionSource::Create(Macro *m)
{
return std::make_shared<MacroActionSource>(m);
}
std::shared_ptr<MacroAction> MacroActionSource::Copy() const
{
return std::make_shared<MacroActionSource>(*this);
}
void MacroActionSource::ResolveVariablesToFixedValues()
{
_source.ResolveVariables();
_settingsString.ResolveVariables();
_manualSettingValue.ResolveVariables();
}
static inline void populateActionSelection(QComboBox *list)
{
for (auto &[actionType, name] : actionTypes) {