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

Method doAction

Tools/EditorFramework/ActionDestroyData.cpp:16–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14{
15
16 void ActionDestroyData::doAction()
17 {
18 mParent = mData->getParent();
19 mIndex = mParent->getChildIndex(mData);
20 mParent->removeChild(mData);
21
22 DataSelectorManager::getInstance().changeParent(mParent);
23
24 if (!mUniqueProperty.empty())
25 PropertyUtility::storeUniqueNameProperty("Name", mUniqueProperty, mParent, mOldValues);
26 }
27
28 void ActionDestroyData::undoAction()
29 {

Callers

nothing calls this directly

Calls 5

getChildIndexMethod · 0.80
changeParentMethod · 0.80
getParentMethod · 0.45
removeChildMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected