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

Method command_QuitApp

Tools/SkinEditor/Application.cpp:336–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334 }
335
336 void Application::command_QuitApp(const MyGUI::UString& _commandName, bool& _result)
337 {
338 if (DialogManager::getInstance().getAnyDialog())
339 {
340 DialogManager::getInstance().endTopDialog();
341 }
342 else
343 {
344 if (MessageBoxManager::getInstance().hasAny())
345 {
346 MessageBoxManager::getInstance().endTop(MyGUI::MessageBoxStyle::Cancel);
347 }
348 else
349 {
350 CommandManager::getInstance().executeCommand("Command_Quit");
351 }
352 }
353
354 _result = true;
355 }
356
357 void Application::command_ScreenShot(const MyGUI::UString& _commandName, bool& _result)
358 {

Callers

nothing calls this directly

Calls 5

hasAnyMethod · 0.80
endTopMethod · 0.80
getAnyDialogMethod · 0.45
endTopDialogMethod · 0.45
executeCommandMethod · 0.45

Tested by

no test coverage detected