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