| 344 | } |
| 345 | |
| 346 | void EditorState::notifyMessageBoxResultQuit(MyGUI::Message* _sender, MyGUI::MessageBoxStyle _result) |
| 347 | { |
| 348 | if (_result == MyGUI::MessageBoxStyle::Yes) |
| 349 | { |
| 350 | if (mFileName == mDefaultFileName) |
| 351 | { |
| 352 | showSaveAsWindow(); |
| 353 | } |
| 354 | else |
| 355 | { |
| 356 | save(); |
| 357 | StateManager::getInstance().stateEvent(this, "Exit"); |
| 358 | } |
| 359 | } |
| 360 | else if (_result == MyGUI::MessageBoxStyle::No) |
| 361 | { |
| 362 | StateManager::getInstance().stateEvent(this, "Exit"); |
| 363 | } |
| 364 | } |
| 365 | |
| 366 | void EditorState::notifyChanges() |
| 367 | { |
nothing calls this directly
no test coverage detected