| 118 | } |
| 119 | |
| 120 | void EditorState::commandLoad(const MyGUI::UString& _commandName, bool& _result) |
| 121 | { |
| 122 | if (!checkCommand()) |
| 123 | return; |
| 124 | |
| 125 | if (ActionManager::getInstance().getChanges()) |
| 126 | { |
| 127 | MyGUI::Message* message = MessageBoxManager::getInstance().create( |
| 128 | replaceTags("Warning"), |
| 129 | replaceTags("MessageUnsavedData"), |
| 130 | MyGUI::MessageBoxStyle::IconQuest | MyGUI::MessageBoxStyle::Yes | MyGUI::MessageBoxStyle::No | |
| 131 | MyGUI::MessageBoxStyle::Cancel); |
| 132 | message->eventMessageBoxResult += MyGUI::newDelegate(this, &EditorState::notifyMessageBoxResultLoad); |
| 133 | } |
| 134 | else |
| 135 | { |
| 136 | showLoadWindow(); |
| 137 | } |
| 138 | |
| 139 | _result = true; |
| 140 | } |
| 141 | |
| 142 | void EditorState::commandSave(const MyGUI::UString& _commandName, bool& _result) |
| 143 | { |
nothing calls this directly
no test coverage detected