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

Method commandDestroyData

Tools/EditorFramework/DataListBaseControl.cpp:90–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88 }
89
90 void DataListBaseControl::commandDestroyData(const MyGUI::UString& _commandName, bool& _result)
91 {
92 if (!checkCommand(_result))
93 return;
94
95 DataPtr data = DataUtility::getSelectedDataByType(mCurrentType);
96 if (data != nullptr)
97 {
98 ActionDestroyData* command = new ActionDestroyData();
99 command->setData(data);
100 command->setUniqueProperty(mPropertyForUnique);
101
102 ActionManager::getInstance().doAction(command);
103 }
104
105 _result = true;
106 }
107
108 void DataListBaseControl::commandRenameData(const MyGUI::UString& _commandName, bool& _result)
109 {

Callers

nothing calls this directly

Calls 3

setDataMethod · 0.45
setUniquePropertyMethod · 0.45
doActionMethod · 0.45

Tested by

no test coverage detected