|
|
@ -338,25 +338,29 @@ void UBApplicationController::showBoard() |
|
|
|
void UBApplicationController::showInternet() |
|
|
|
void UBApplicationController::showInternet() |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
if (UBApplication::boardController){ |
|
|
|
if (UBApplication::boardController) |
|
|
|
|
|
|
|
{ |
|
|
|
UBApplication::boardController->persistCurrentScene(); |
|
|
|
UBApplication::boardController->persistCurrentScene(); |
|
|
|
UBApplication::boardController->hide(); |
|
|
|
UBApplication::boardController->hide(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (UBSettings::settings()->webUseExternalBrowser->get().toBool()){ |
|
|
|
if (UBSettings::settings()->webUseExternalBrowser->get().toBool()) |
|
|
|
|
|
|
|
{ |
|
|
|
showDesktop(true); |
|
|
|
showDesktop(true); |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else
|
|
|
|
|
|
|
|
{ |
|
|
|
mMainWindow->boardToolBar->hide(); |
|
|
|
mMainWindow->boardToolBar->hide(); |
|
|
|
mMainWindow->documentToolBar->hide(); |
|
|
|
mMainWindow->documentToolBar->hide(); |
|
|
|
mMainWindow->tutorialToolBar->hide(); |
|
|
|
mMainWindow->tutorialToolBar->hide(); |
|
|
|
mMainWindow->webToolBar->show(); |
|
|
|
mMainWindow->webToolBar->show(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mMainMode = Internet; |
|
|
|
|
|
|
|
|
|
|
|
adaptToolBar(); |
|
|
|
adaptToolBar(); |
|
|
|
|
|
|
|
|
|
|
|
mMainWindow->show(); |
|
|
|
mMainWindow->show(); |
|
|
|
mUninoteController->hideWindow(); |
|
|
|
mUninoteController->hideWindow(); |
|
|
|
mMainMode = Internet; |
|
|
|
|
|
|
|
emit mainModeChanged(Internet); |
|
|
|
emit mainModeChanged(Internet); |
|
|
|
} |
|
|
|
} |
|
|
|
UBApplication::webController->show(UBWebController::WebBrowser); |
|
|
|
UBApplication::webController->show(UBWebController::WebBrowser); |
|
|
@ -371,7 +375,6 @@ void UBApplicationController::showDocument() |
|
|
|
mMainWindow->tutorialToolBar->hide(); |
|
|
|
mMainWindow->tutorialToolBar->hide(); |
|
|
|
mMainWindow->documentToolBar->show(); |
|
|
|
mMainWindow->documentToolBar->show(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mMainMode = Document; |
|
|
|
mMainMode = Document; |
|
|
|
|
|
|
|
|
|
|
|
adaptToolBar(); |
|
|
|
adaptToolBar(); |
|
|
|