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

Method commandLoad

Tools/SkinEditor/EditorState.cpp:120–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 4

replaceTagsFunction · 0.85
newDelegateFunction · 0.85
getChangesMethod · 0.45
createMethod · 0.45

Tested by

no test coverage detected