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

Method commandCloneData

Tools/EditorFramework/DataListBaseControl.cpp:72–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70 }
71
72 void DataListBaseControl::commandCloneData(const MyGUI::UString& _commandName, bool& _result)
73 {
74 if (!checkCommand(_result))
75 return;
76
77 DataPtr data = DataUtility::getSelectedDataByType(mCurrentType);
78 if (data != nullptr)
79 {
80 ActionCloneData* command = new ActionCloneData();
81 command->setPrototype(data);
82 command->setUniqueProperty(mPropertyForUnique);
83
84 ActionManager::getInstance().doAction(command);
85 }
86
87 _result = true;
88 }
89
90 void DataListBaseControl::commandDestroyData(const MyGUI::UString& _commandName, bool& _result)
91 {

Callers

nothing calls this directly

Calls 3

setPrototypeMethod · 0.80
setUniquePropertyMethod · 0.45
doActionMethod · 0.45

Tested by

no test coverage detected