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

Method doAction

Tools/EditorFramework/ActionCreateData.cpp:23–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21 }
22
23 void ActionCreateData::doAction()
24 {
25 if (mData == nullptr)
26 {
27 mData = Data::CreateInstance();
28 mData->setType(DataTypeManager::getInstance().getType(mType));
29 }
30
31 mParent->addChild(mData);
32
33 DataSelectorManager::getInstance().changeParent(mParent);
34
35 if (!mUniqueProperty.empty())
36 PropertyUtility::storeUniqueNameProperty("Name", mUniqueProperty, mParent, mOldValues);
37 }
38
39 void ActionCreateData::undoAction()
40 {

Callers

nothing calls this directly

Calls 5

changeParentMethod · 0.80
setTypeMethod · 0.45
getTypeMethod · 0.45
addChildMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected