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

Method doAction

UnitTests/TestApp/ActionCreateData.cpp:24–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 }
23
24 void ActionCreateData::doAction()
25 {
26 if (mData == nullptr)
27 {
28 mData = new Data();
29 mData->setType(DataInfoManager::getInstance().getData("ResourceImageSet"));
30 mData->setPropertyValue("Name", mName);
31 }
32
33 DataManager::getInstance().getRoot()->addChild(mData);
34 DataManager::getInstance().invalidateDatas();
35
36 mComplete = true;
37 }
38
39 void ActionCreateData::undoAction()
40 {

Callers

nothing calls this directly

Calls 6

invalidateDatasMethod · 0.80
setTypeMethod · 0.45
getDataMethod · 0.45
setPropertyValueMethod · 0.45
addChildMethod · 0.45
getRootMethod · 0.45

Tested by

no test coverage detected