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

Method commandClear

Tools/FontEditor/EditorState.cpp:180–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178 }
179
180 void EditorState::commandClear(const MyGUI::UString& _commandName, bool& _result)
181 {
182 if (!checkCommand())
183 return;
184
185 if (ActionManager::getInstance().getChanges())
186 {
187 MyGUI::Message* message = MessageBoxManager::getInstance().create(
188 replaceTags("Warning"),
189 replaceTags("MessageUnsavedData"),
190 MyGUI::MessageBoxStyle::IconQuest | MyGUI::MessageBoxStyle::Yes | MyGUI::MessageBoxStyle::No |
191 MyGUI::MessageBoxStyle::Cancel);
192 message->eventMessageBoxResult += MyGUI::newDelegate(this, &EditorState::notifyMessageBoxResultClear);
193 }
194 else
195 {
196 clear();
197 }
198
199 _result = true;
200 }
201
202 void EditorState::commandQuit(const MyGUI::UString& _commandName, bool& _result)
203 {

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected