| 466 | } |
| 467 | |
| 468 | void EditorState::notifyMessageBoxResultQuit(MyGUI::Message* _sender, MyGUI::MessageBoxStyle _result) |
| 469 | { |
| 470 | if (_result == MyGUI::MessageBoxStyle::Yes) |
| 471 | { |
| 472 | if (mFileName == mDefaultFileName) |
| 473 | { |
| 474 | showSaveAsWindow(); |
| 475 | } |
| 476 | else |
| 477 | { |
| 478 | if (save()) |
| 479 | { |
| 480 | StateManager::getInstance().stateEvent(this, "Exit"); |
| 481 | } |
| 482 | } |
| 483 | } |
| 484 | else if (_result == MyGUI::MessageBoxStyle::No) |
| 485 | { |
| 486 | StateManager::getInstance().stateEvent(this, "Exit"); |
| 487 | } |
| 488 | } |
| 489 | |
| 490 | bool EditorState::checkCommand() |
| 491 | { |
nothing calls this directly
no test coverage detected