| 166 | } |
| 167 | |
| 168 | void EditorState::commandClear(const MyGUI::UString& _commandName, bool& _result) |
| 169 | { |
| 170 | if (!checkCommand()) |
| 171 | return; |
| 172 | |
| 173 | if (ActionManager::getInstance().getChanges()) |
| 174 | { |
| 175 | MyGUI::Message* message = MessageBoxManager::getInstance().create( |
| 176 | replaceTags("Warning"), |
| 177 | replaceTags("MessageUnsavedData"), |
| 178 | MyGUI::MessageBoxStyle::IconQuest | MyGUI::MessageBoxStyle::Yes | MyGUI::MessageBoxStyle::No | |
| 179 | MyGUI::MessageBoxStyle::Cancel); |
| 180 | message->eventMessageBoxResult += MyGUI::newDelegate(this, &EditorState::notifyMessageBoxResultClear); |
| 181 | } |
| 182 | else |
| 183 | { |
| 184 | clear(); |
| 185 | } |
| 186 | |
| 187 | _result = true; |
| 188 | } |
| 189 | |
| 190 | void EditorState::commandQuit(const MyGUI::UString& _commandName, bool& _result) |
| 191 | { |
nothing calls this directly
no test coverage detected