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

Method showInternet

src/core/UBApplicationController.cpp:394–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392
393
394void UBApplicationController::showInternet()
395{
396
397 if (UBApplication::boardController)
398 {
399 UBApplication::boardController->persistCurrentScene();
400 UBApplication::boardController->hide();
401 }
402
403 if (UBSettings::settings()->webUseExternalBrowser->get().toBool())
404 {
405 showDesktop(true);
406 UBApplication::webController->show();
407 }
408 else
409 {
410 mMainWindow->boardToolBar->hide();
411 mMainWindow->documentToolBar->hide();
412 mMainWindow->webToolBar->show();
413
414 mMainMode = Internet;
415
416 adaptToolBar();
417
418 mMainWindow->show();
419 mUninoteController->hideWindow();
420
421 UBApplication::webController->show();
422
423 UBApplication::displayManager->adjustScreens();
424
425 emit mainModeChanged(Internet);
426 }
427}
428
429
430void UBApplicationController::showDocument()

Callers

nothing calls this directly

Calls 6

hideWindowMethod · 0.80
adjustScreensMethod · 0.80
persistCurrentSceneMethod · 0.45
hideMethod · 0.45
getMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected