Sankore 427

preferencesAboutTextFull
Ivan Ilin 13 years ago
parent 4e75d6d28c
commit 45ec8db85e
  1. 2
      src/core/UBApplicationController.cpp
  2. 4
      src/web/UBWebController.cpp
  3. 10
      src/web/browser/WBBrowserWindow.cpp
  4. 1
      src/web/browser/WBTabWidget.cpp
  5. 8
      src/web/browser/WBTabWidget.h

@ -460,6 +460,7 @@ void UBApplicationController::showTutorial()
UBApplication::boardController->hide(); UBApplication::boardController->hide();
} }
// it's needed not to duplicate webbrowser search in web mode. If I've breaked smbd's code let Ivan know
UBApplication::webController->show(UBWebController::Tutorial); UBApplication::webController->show(UBWebController::Tutorial);
mMainWindow->webToolBar->hide(); mMainWindow->webToolBar->hide();
@ -488,6 +489,7 @@ void UBApplicationController::showSankoreEditor()
UBApplication::boardController->hide(); UBApplication::boardController->hide();
} }
// it's needed not to duplicate webbrowser search in web mode. If I've breaked smbd's code let Ivan know
UBApplication::webController->show(UBWebController::Paraschool); UBApplication::webController->show(UBWebController::Paraschool);
mMainWindow->webToolBar->hide(); mMainWindow->webToolBar->hide();

@ -148,6 +148,8 @@ void UBWebController::webBrowserInstance()
(*mCurrentWebBrowser)->tabWidget()->tabBar()->show(); (*mCurrentWebBrowser)->tabWidget()->tabBar()->show();
(*mCurrentWebBrowser)->tabWidget()->lineEdits()->show(); (*mCurrentWebBrowser)->tabWidget()->lineEdits()->show();
// (*mCurrentWebBrowser)->tabWidget()->tabBar()->hide();
// (*mCurrentWebBrowser)->tabWidget()->lineEdits()->hide();
} }
UBApplication::applicationController->setMirrorSourceWidget((*mCurrentWebBrowser)->paintWidget()); UBApplication::applicationController->setMirrorSourceWidget((*mCurrentWebBrowser)->paintWidget());
@ -192,7 +194,7 @@ void UBWebController::tutorialWebInstance()
else else
{ {
mCurrentWebBrowser = &mWebBrowserList[Tutorial]; mCurrentWebBrowser = &mWebBrowserList[Tutorial];
mToolsCurrentPalette = &mToolsPaletteList[Tutorial]; // mToolsCurrentPalette = &mToolsPaletteList[Tutorial];
// mKeyboardCurrentPalette = &mKeyboardPaletteList[Tutorial]; // mKeyboardCurrentPalette = &mKeyboardPaletteList[Tutorial];
mToolsPalettePositionned = &mToolsPalettePositionnedList[Tutorial]; mToolsPalettePositionned = &mToolsPalettePositionnedList[Tutorial];
if (!(*mCurrentWebBrowser)) if (!(*mCurrentWebBrowser))

@ -97,11 +97,11 @@ WBBrowserWindow::WBBrowserWindow(QWidget *parent, Ui::MainWindow* uniboardMainWi
defaultSettings->setAttribute(QWebSettings::PluginsEnabled, true); defaultSettings->setAttribute(QWebSettings::PluginsEnabled, true);
setupMenu(); setupMenu();
// if(!isViewerWebInstance) if(!isViewerWebInstance)
setupToolBar(); setupToolBar();
// else{ else{
// setupToolBarForTutorial(); setupToolBarForTutorial();
// } }
QVBoxLayout *layout = new QVBoxLayout; QVBoxLayout *layout = new QVBoxLayout;
layout->setSpacing(0); layout->setSpacing(0);
@ -205,8 +205,6 @@ void WBBrowserWindow::setupToolBar()
connect(mSearchToolBar, SIGNAL(search(const QUrl&)), SLOT(loadUrl(const QUrl&))); connect(mSearchToolBar, SIGNAL(search(const QUrl&)), SLOT(loadUrl(const QUrl&)));
mChaseWidget = new WBChaseWidget(this); mChaseWidget = new WBChaseWidget(this);
mWebToolBar->insertWidget(mUniboardMainWindow->actionWebBigger, mChaseWidget);
mWebToolBar->insertSeparator(mUniboardMainWindow->actionWebBigger); mWebToolBar->insertSeparator(mUniboardMainWindow->actionWebBigger);
connect(mUniboardMainWindow->actionHome, SIGNAL(triggered()), this , SLOT(slotHome())); connect(mUniboardMainWindow->actionHome, SIGNAL(triggered()), this , SLOT(slotHome()));

@ -251,7 +251,6 @@ WBTabWidget::WBTabWidget(QWidget *parent)
mLineEdits->setMinimumWidth(200); mLineEdits->setMinimumWidth(200);
QSizePolicy spolicy = mLineEdits->sizePolicy(); QSizePolicy spolicy = mLineEdits->sizePolicy();
mLineEdits->setSizePolicy(QSizePolicy::Maximum, spolicy.verticalPolicy()); mLineEdits->setSizePolicy(QSizePolicy::Maximum, spolicy.verticalPolicy());
} }
void WBTabWidget::clear() void WBTabWidget::clear()

@ -138,7 +138,7 @@ class WBWebActionMapper : public QObject
*/ */
class WBTabWidget : public QTabWidget class WBTabWidget : public QTabWidget
{ {
Q_OBJECT; Q_OBJECT
signals: signals:
// tab widget signals // tab widget signals
@ -171,8 +171,10 @@ class WBTabWidget : public QTabWidget
QByteArray saveState() const; QByteArray saveState() const;
bool restoreState(const QByteArray &state); bool restoreState(const QByteArray &state);
WBTabBar* tabBar() { return mTabBar; }; WBTabBar* tabBar() { return mTabBar; }
QStackedWidget* lineEdits() { return mLineEdits; }; QStackedWidget* lineEdits() { return mLineEdits; }
void setLineEditStackVisible(bool visible) {mLineEdits->setVisible(visible);mLineEdits->hide();}
protected: protected:
void mouseDoubleClickEvent(QMouseEvent *event); void mouseDoubleClickEvent(QMouseEvent *event);
void contextMenuEvent(QContextMenuEvent *event); void contextMenuEvent(QContextMenuEvent *event);

Loading…
Cancel
Save