MCPcopy Create free account
hub / github.com/OpenBoard-org/OpenBoard / showDocument

Method showDocument

src/core/UBApplicationController.cpp:430–463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428
429
430void 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
465void UBApplicationController::showDesktop(bool dontSwitchFrontProcess)
466{

Callers

nothing calls this directly

Calls 7

selectedDocumentMethod · 0.80
hideWindowMethod · 0.80
hideMethod · 0.45
showMethod · 0.45
persistCurrentSceneMethod · 0.45

Tested by

no test coverage detected