| 143 | } |
| 144 | |
| 145 | void EditorState::command_Load(const MyGUI::UString& _commandName, bool& _result) |
| 146 | { |
| 147 | if (!checkCommand()) |
| 148 | return; |
| 149 | |
| 150 | if (UndoManager::getInstance().isUnsaved()) |
| 151 | { |
| 152 | MyGUI::Message* message = MessageBoxManager::getInstance().create( |
| 153 | replaceTags("Warning"), |
| 154 | replaceTags("MessageUnsavedData"), |
| 155 | MyGUI::MessageBoxStyle::IconQuest | MyGUI::MessageBoxStyle::Yes | MyGUI::MessageBoxStyle::No | |
| 156 | MyGUI::MessageBoxStyle::Cancel); |
| 157 | message->eventMessageBoxResult += MyGUI::newDelegate(this, &EditorState::notifyMessageBoxResultLoad); |
| 158 | } |
| 159 | else |
| 160 | { |
| 161 | showLoadWindow(); |
| 162 | } |
| 163 | |
| 164 | _result = true; |
| 165 | } |
| 166 | |
| 167 | void EditorState::command_Save(const MyGUI::UString& _commandName, bool& _result) |
| 168 | { |
nothing calls this directly
no test coverage detected