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

Method showWindow

src/desktop/UBDesktopAnnotationController.cpp:309–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307
308
309void UBDesktopAnnotationController::showWindow()
310{
311 mDesktopPalette->setDisplaySelectButtonVisible(true);
312
313 connect(UBApplication::applicationController, SIGNAL(desktopMode(bool))
314 , mDesktopPalette, SLOT(setDisplaySelectButtonVisible(bool)));
315
316 mDesktopPalette->show();
317
318 bool showDisplay = UBSettings::settings()->webShowPageImmediatelyOnMirroredScreen->get().toBool();
319
320 mDesktopPalette->showHideClick(showDisplay);
321 mDesktopPalette->updateShowHideState(showDisplay);
322
323 if (!mWindowPositionInitialized)
324 {
325 QRect desktopRect = UBApplication::displayManager->screenGeometry(ScreenRole::Desktop);
326
327 mDesktopPalette->move(5, desktopRect.top() + 150);
328
329 mWindowPositionInitialized = true;
330 mDesktopPalette->maximizeMe();
331 }
332
333 updateBackground();
334
335 mBoardStylusTool = UBDrawingController::drawingController()->stylusTool();
336
337 UBDrawingController::drawingController()->setStylusTool(mDesktopStylusTool);
338
339#ifndef Q_OS_LINUX
340 UBPlatformUtils::showFullScreen(mTransparentDrawingView);
341#else
342 // this is necessary to avoid hiding the panels on Unity and Cinnamon
343 // if finer control is necessary, use qgetenv("XDG_CURRENT_DESKTOP")
344 mTransparentDrawingView->show();
345#endif
346 UBPlatformUtils::hideMenuBarAndDock();
347
348 mDesktopPalette->appear();
349
350#ifdef UB_REQUIRES_MASK_UPDATE
351 updateMask(true);
352#endif // UB_REQUIRES_MASK_UPDATE
353}
354
355
356void UBDesktopAnnotationController::close()

Callers 1

showDesktopMethod · 0.80

Calls 11

showHideClickMethod · 0.80
screenGeometryMethod · 0.80
maximizeMeMethod · 0.80
stylusToolMethod · 0.80
setStylusToolMethod · 0.80
showMethod · 0.45
getMethod · 0.45
updateShowHideStateMethod · 0.45
moveMethod · 0.45
appearMethod · 0.45

Tested by

no test coverage detected