MCPcopy Create free account
hub / github.com/MyGUI/mygui / executeAction

Method executeAction

Tools/EditorFramework/PropertyUtility.cpp:32–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 }
31
32 void PropertyUtility::executeAction(PropertyPtr _property, std::string_view _value, bool _merge)
33 {
34 if (_property->getValue() == _value)
35 return;
36
37 const std::string& actionName = _property->getType()->getAction();
38
39 ActionChangeDataProperty* action =
40 components::FactoryManager::GetInstance().CreateItem<ActionChangeDataProperty>(actionName);
41 if (action != nullptr)
42 {
43 action->setProperty(_property);
44 action->setValue(_value);
45 action->setMerge(_merge);
46
47 ActionManager::getInstance().doAction(action);
48 }
49 }
50
51 void PropertyUtility::storeUniqueNameProperty(
52 std::string_view _propertyName,

Callers

nothing calls this directly

Calls 6

setMergeMethod · 0.80
getValueMethod · 0.45
getTypeMethod · 0.45
setPropertyMethod · 0.45
setValueMethod · 0.45
doActionMethod · 0.45

Tested by

no test coverage detected