| 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 | { |
nothing calls this directly
no test coverage detected