| 178 | } |
| 179 | |
| 180 | void EditorState::commandClear(const MyGUI::UString& _commandName, bool& _result) |
| 181 | { |
| 182 | if (!checkCommand()) |
| 183 | return; |
| 184 | |
| 185 | if (ActionManager::getInstance().getChanges()) |
| 186 | { |
| 187 | MyGUI::Message* message = MessageBoxManager::getInstance().create( |
| 188 | replaceTags("Warning"), |
| 189 | replaceTags("MessageUnsavedData"), |
| 190 | MyGUI::MessageBoxStyle::IconQuest | MyGUI::MessageBoxStyle::Yes | MyGUI::MessageBoxStyle::No | |
| 191 | MyGUI::MessageBoxStyle::Cancel); |
| 192 | message->eventMessageBoxResult += MyGUI::newDelegate(this, &EditorState::notifyMessageBoxResultClear); |
| 193 | } |
| 194 | else |
| 195 | { |
| 196 | clear(); |
| 197 | } |
| 198 | |
| 199 | _result = true; |
| 200 | } |
| 201 | |
| 202 | void EditorState::commandQuit(const MyGUI::UString& _commandName, bool& _result) |
| 203 | { |
nothing calls this directly
no test coverage detected