mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 04:24:09 +00:00
Move Print and Save buttons further down.
The buttons are rarerly used and there is no point in keeping them close to the beginning of the toolbar.
This commit is contained in:
parent
26c17f73cd
commit
26f87ddcc6
|
@ -91,12 +91,8 @@ MainWindow::MainWindow( Config::Class & cfg_ ):
|
||||||
navBack = navToolbar->addAction( QIcon( ":/icons/previous.png" ), tr( "Back" ) );
|
navBack = navToolbar->addAction( QIcon( ":/icons/previous.png" ), tr( "Back" ) );
|
||||||
navForward = navToolbar->addAction( QIcon( ":/icons/next.png" ), tr( "Forward" ) );
|
navForward = navToolbar->addAction( QIcon( ":/icons/next.png" ), tr( "Forward" ) );
|
||||||
|
|
||||||
navToolbar->addSeparator();
|
beforeScanPopupSeparator = navToolbar->addSeparator();
|
||||||
navToolbar->addAction( ui.print );
|
beforeScanPopupSeparator->setVisible( cfg.preferences.enableScanPopup );
|
||||||
navToolbar->addAction( ui.saveArticle );
|
|
||||||
|
|
||||||
scanPopupSeparator = navToolbar->addSeparator();
|
|
||||||
scanPopupSeparator->setVisible( cfg.preferences.enableScanPopup );
|
|
||||||
|
|
||||||
enableScanPopup = navToolbar->addAction( QIcon( ":/icons/wizard.png" ), tr( "Scan Popup" ) );
|
enableScanPopup = navToolbar->addAction( QIcon( ":/icons/wizard.png" ), tr( "Scan Popup" ) );
|
||||||
enableScanPopup->setCheckable( true );
|
enableScanPopup->setCheckable( true );
|
||||||
|
@ -107,6 +103,9 @@ MainWindow::MainWindow( Config::Class & cfg_ ):
|
||||||
connect( enableScanPopup, SIGNAL( toggled( bool ) ),
|
connect( enableScanPopup, SIGNAL( toggled( bool ) ),
|
||||||
this, SLOT( scanEnableToggled( bool ) ) );
|
this, SLOT( scanEnableToggled( bool ) ) );
|
||||||
|
|
||||||
|
afterScanPopupSeparator = navToolbar->addSeparator();
|
||||||
|
afterScanPopupSeparator->setVisible( cfg.preferences.enableScanPopup );
|
||||||
|
|
||||||
groupListInToolbar = new GroupComboBox( navToolbar );
|
groupListInToolbar = new GroupComboBox( navToolbar );
|
||||||
|
|
||||||
groupListInToolbar->setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed );
|
groupListInToolbar->setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed );
|
||||||
|
@ -116,7 +115,6 @@ MainWindow::MainWindow( Config::Class & cfg_ ):
|
||||||
translateBox->setSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::Fixed );
|
translateBox->setSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::Fixed );
|
||||||
navToolbar->addWidget( translateBox );
|
navToolbar->addWidget( translateBox );
|
||||||
|
|
||||||
navToolbar->addSeparator();
|
|
||||||
navPronounce = navToolbar->addAction( QIcon( ":/icons/playsound.png" ), tr( "Pronounce Word (Alt+S)" ) );
|
navPronounce = navToolbar->addAction( QIcon( ":/icons/playsound.png" ), tr( "Pronounce Word (Alt+S)" ) );
|
||||||
navPronounce->setShortcut( QKeySequence( "Alt+S" ) );
|
navPronounce->setShortcut( QKeySequence( "Alt+S" ) );
|
||||||
navPronounce->setEnabled( false );
|
navPronounce->setEnabled( false );
|
||||||
|
@ -133,6 +131,10 @@ MainWindow::MainWindow( Config::Class & cfg_ ):
|
||||||
zoomBase = navToolbar->addAction( QIcon( ":/icons/icon32_zoombase.png" ), tr( "Normal Size" ) );
|
zoomBase = navToolbar->addAction( QIcon( ":/icons/icon32_zoombase.png" ), tr( "Normal Size" ) );
|
||||||
zoomBase->setShortcut( QKeySequence( "Ctrl+0" ) );
|
zoomBase->setShortcut( QKeySequence( "Ctrl+0" ) );
|
||||||
|
|
||||||
|
navToolbar->addSeparator();
|
||||||
|
navToolbar->addAction( ui.saveArticle );
|
||||||
|
navToolbar->addAction( ui.print );
|
||||||
|
|
||||||
// Make the search pane's titlebar
|
// Make the search pane's titlebar
|
||||||
groupLabel.setText( tr( "Look up in:" ) );
|
groupLabel.setText( tr( "Look up in:" ) );
|
||||||
groupListInDock = new GroupComboBox( &searchPaneTitleBar );
|
groupListInDock = new GroupComboBox( &searchPaneTitleBar );
|
||||||
|
@ -1558,10 +1560,9 @@ void MainWindow::editPreferences()
|
||||||
|
|
||||||
cfg.preferences = p;
|
cfg.preferences = p;
|
||||||
|
|
||||||
if ( searchInDock )
|
beforeScanPopupSeparator->setVisible( cfg.preferences.enableScanPopup );
|
||||||
scanPopupSeparator->setVisible( cfg.preferences.enableScanPopup );
|
|
||||||
|
|
||||||
enableScanPopup->setVisible( cfg.preferences.enableScanPopup );
|
enableScanPopup->setVisible( cfg.preferences.enableScanPopup );
|
||||||
|
afterScanPopupSeparator->setVisible( cfg.preferences.enableScanPopup );
|
||||||
|
|
||||||
if ( !cfg.preferences.enableScanPopup )
|
if ( !cfg.preferences.enableScanPopup )
|
||||||
enableScanPopup->setChecked( false );
|
enableScanPopup->setChecked( false );
|
||||||
|
|
|
@ -108,7 +108,8 @@ private:
|
||||||
showDictBarNamesAction, useSmallIconsInToolbarsAction, toggleMenuBarAction, switchExpandModeAction;
|
showDictBarNamesAction, useSmallIconsInToolbarsAction, toggleMenuBarAction, switchExpandModeAction;
|
||||||
QToolBar * navToolbar;
|
QToolBar * navToolbar;
|
||||||
MainStatusBar * mainStatusBar;
|
MainStatusBar * mainStatusBar;
|
||||||
QAction * navBack, * navForward, * navPronounce, * enableScanPopup, * scanPopupSeparator;
|
QAction * navBack, * navForward, * navPronounce, * enableScanPopup;
|
||||||
|
QAction * beforeScanPopupSeparator, * afterScanPopupSeparator;
|
||||||
QAction * zoomIn, * zoomOut, * zoomBase;
|
QAction * zoomIn, * zoomOut, * zoomBase;
|
||||||
QAction * wordsZoomIn, * wordsZoomOut, * wordsZoomBase;
|
QAction * wordsZoomIn, * wordsZoomOut, * wordsZoomBase;
|
||||||
QMenu trayIconMenu;
|
QMenu trayIconMenu;
|
||||||
|
|
Loading…
Reference in a new issue