MCPcopy Create free account
hub / github.com/MyGUI/mygui / command_Load

Method command_Load

Tools/LayoutEditor/EditorState.cpp:145–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 4

replaceTagsFunction · 0.85
newDelegateFunction · 0.85
isUnsavedMethod · 0.80
createMethod · 0.45

Tested by

no test coverage detected