Showing the changes to interface/src/Application.cpp (1 of 3 files). Show all
Unified · Split
| @@ -548,6 +548,7 @@ const float DEFAULT_HMD_TABLET_SCALE_PERCENT = 100.0f; · 547 unmodified lines | ||
| 548 | 548 | const float DEFAULT_DESKTOP_TABLET_SCALE_PERCENT = 75.0f; |
| 549 | 549 | const bool DEFAULT_DESKTOP_TABLET_BECOMES_TOOLBAR = true; |
| 550 | 550 | const bool DEFAULT_HMD_TABLET_BECOMES_TOOLBAR = false; |
| 551 | +const bool DEFAULT_TABLET_VISIBLE_TO_OTHERS = false; | |
| 551 | 552 | |
| 552 | 553 | Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bool runServer, QString runServerPathOption) : |
| 553 | 554 | QApplication(argc, argv), |
| @@ -570,6 +571,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 16 unmodified lines | ||
| 570 | 571 | _desktopTabletScale("desktopTabletScale", DEFAULT_DESKTOP_TABLET_SCALE_PERCENT), |
| 571 | 572 | _desktopTabletBecomesToolbarSetting("desktopTabletBecomesToolbar", DEFAULT_DESKTOP_TABLET_BECOMES_TOOLBAR), |
| 572 | 573 | _hmdTabletBecomesToolbarSetting("hmdTabletBecomesToolbar", DEFAULT_HMD_TABLET_BECOMES_TOOLBAR), |
| 574 | + _tabletVisibleToOthersSetting("tabletVisibleToOthers", DEFAULT_TABLET_VISIBLE_TO_OTHERS), | |
| 573 | 575 | _constrainToolbarPosition("toolbar/constrainToolbarToCenterX", true), |
| 574 | 576 | _scaleMirror(1.0f), |
| 575 | 577 | _rotateMirror(0.0f), |
| @@ -2348,6 +2350,11 @@ void Application::setHmdTabletBecomesToolbarSetting(bool value) { · 1772 unmodified lines | ||
| 2348 | 2350 | updateSystemTabletMode(); |
| 2349 | 2351 | } |
| 2350 | 2352 | |
| 2353 | +void Application::setTabletVisibleToOthersSetting(bool value) { | |
| 2354 | + _tabletVisibleToOthersSetting.set(value); | |
| 2355 | + updateSystemTabletMode(); | |
| 2356 | +} | |
| 2357 | + | |
| 2351 | 2358 | void Application::setSettingConstrainToolbarPosition(bool setting) { |
| 2352 | 2359 | _constrainToolbarPosition.set(setting); |
| 2353 | 2360 | DependencyManager::get<OffscreenUi>()->setConstrainToolbarToCenterX(setting); |