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

Method showBoard

src/core/UBApplicationController.cpp:354–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352
353
354void UBApplicationController::showBoard()
355{
356 mMainWindow->webToolBar->hide();
357 mMainWindow->documentToolBar->hide();
358 mMainWindow->boardToolBar->show();
359
360 if (mMainMode == Document)
361 {
362// int selectedSceneIndex = UBApplication::documentController->getSelectedItemIndex();
363// if (selectedSceneIndex != -1)
364// {
365// UBApplication::boardController->setActiveDocumentScene(UBApplication::documentController->selectedDocument(), selectedSceneIndex);
366// }
367 }
368
369 mMainMode = Board;
370
371 adaptToolBar();
372
373 mirroringEnabled(false);
374
375 mMainWindow->switchToBoardWidget();
376
377 if (UBApplication::boardController)
378 UBApplication::boardController->show();
379
380 mIsShowingDesktop = false;
381 UBPlatformUtils::hideMenuBarAndDock();
382 UBDrawingController::drawingController()->setInDesktopMode(false);
383
384 mUninoteController->hideWindow();
385
386 UBPlatformUtils::showFullScreen(mMainWindow);
387
388 emit mainModeChanged(Board);
389
390 UBApplication::boardController->freezeW3CWidgets(false);
391}
392
393
394void UBApplicationController::showInternet()

Callers

nothing calls this directly

Calls 6

switchToBoardWidgetMethod · 0.80
setInDesktopModeMethod · 0.80
hideWindowMethod · 0.80
freezeW3CWidgetsMethod · 0.80
hideMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected