| 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 | { |
nothing calls this directly
no test coverage detected