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