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

Method command_QuitApp

Tools/LayoutEditor/Application.cpp:395–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393 }
394
395 void Application::command_QuitApp(const MyGUI::UString& _commandName, bool& _result)
396 {
397 if (DialogManager::getInstance().getAnyDialog())
398 {
399 DialogManager::getInstance().endTopDialog();
400 }
401 else
402 {
403 if (MessageBoxManager::getInstance().hasAny())
404 {
405 MessageBoxManager::getInstance().endTop(MyGUI::MessageBoxStyle::Cancel);
406 }
407 else
408 {
409 CommandManager::getInstance().executeCommand("Command_Quit");
410 }
411 }
412
413 _result = true;
414 }
415
416 void Application::command_UpdateAppCaption(const MyGUI::UString& _commandName, bool& _result)
417 {

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