| 188 | } |
| 189 | |
| 190 | void EditorState::commandQuit(const MyGUI::UString& _commandName, bool& _result) |
| 191 | { |
| 192 | if (!checkCommand()) |
| 193 | return; |
| 194 | |
| 195 | if (ActionManager::getInstance().getChanges()) |
| 196 | { |
| 197 | MyGUI::Message* message = MessageBoxManager::getInstance().create( |
| 198 | replaceTags("Warning"), |
| 199 | replaceTags("MessageUnsavedData"), |
| 200 | MyGUI::MessageBoxStyle::IconQuest | MyGUI::MessageBoxStyle::Yes | MyGUI::MessageBoxStyle::No | |
| 201 | MyGUI::MessageBoxStyle::Cancel); |
| 202 | message->eventMessageBoxResult += MyGUI::newDelegate(this, &EditorState::notifyMessageBoxResultQuit); |
| 203 | } |
| 204 | else |
| 205 | { |
| 206 | StateManager::getInstance().stateEvent(this, "Exit"); |
| 207 | } |
| 208 | |
| 209 | _result = true; |
| 210 | } |
| 211 | |
| 212 | void EditorState::commandFileDrop(const MyGUI::UString& _commandName, bool& _result) |
| 213 | { |
nothing calls this directly
no test coverage detected