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

Method commandLoad

Tools/FontEditor/EditorState.cpp:122–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

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