| 428 | |
| 429 | |
| 430 | void UBApplicationController::showDocument() |
| 431 | { |
| 432 | mMainWindow->webToolBar->hide(); |
| 433 | mMainWindow->boardToolBar->hide(); |
| 434 | UBPlatformUtils::hideMenuBarAndDock(); |
| 435 | mMainWindow->documentToolBar->show(); |
| 436 | |
| 437 | mMainMode = Document; |
| 438 | |
| 439 | adaptToolBar(); |
| 440 | |
| 441 | mirroringEnabled(false); |
| 442 | |
| 443 | mMainWindow->switchToDocumentsWidget(); |
| 444 | |
| 445 | if (UBApplication::boardController) |
| 446 | { |
| 447 | UBApplication::boardController->persistCurrentScene(); |
| 448 | UBPersistenceManager::persistenceManager()->persistDocumentMetadata(UBApplication::boardController->selectedDocument()); |
| 449 | |
| 450 | UBApplication::boardController->hide(); |
| 451 | } |
| 452 | |
| 453 | if (UBApplication::documentController) |
| 454 | { |
| 455 | UBApplication::documentController->show(); |
| 456 | } |
| 457 | |
| 458 | mMainWindow->show(); |
| 459 | |
| 460 | mUninoteController->hideWindow(); |
| 461 | |
| 462 | emit mainModeChanged(Document); |
| 463 | } |
| 464 | |
| 465 | void UBApplicationController::showDesktop(bool dontSwitchFrontProcess) |
| 466 | { |
nothing calls this directly
no test coverage detected