mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 23:34:06 +00:00
Added menu accelerators.
This commit is contained in:
parent
747b227653
commit
321df3c224
|
@ -11,7 +11,7 @@ using std::vector;
|
||||||
|
|
||||||
DictionaryBar::DictionaryBar( QWidget * parent,
|
DictionaryBar::DictionaryBar( QWidget * parent,
|
||||||
Config::Events & events, QString const & _editDictionaryCommand ):
|
Config::Events & events, QString const & _editDictionaryCommand ):
|
||||||
QToolBar( tr( "Dictionary Bar" ), parent ),
|
QToolBar( tr( "&Dictionary Bar" ), parent ),
|
||||||
mutedDictionaries( 0 ),
|
mutedDictionaries( 0 ),
|
||||||
configEvents( events ),
|
configEvents( events ),
|
||||||
editDictionaryCommand( _editDictionaryCommand ),
|
editDictionaryCommand( _editDictionaryCommand ),
|
||||||
|
|
|
@ -59,8 +59,8 @@ MainWindow::MainWindow( Config::Class & cfg_ ):
|
||||||
closeRestTabAction( this ),
|
closeRestTabAction( this ),
|
||||||
switchToNextTabAction( this ),
|
switchToNextTabAction( this ),
|
||||||
switchToPrevTabAction( this ),
|
switchToPrevTabAction( this ),
|
||||||
showDictBarNamesAction( tr( "Show Names in Dictionary Bar" ), this ),
|
showDictBarNamesAction( tr( "Show Names in Dictionary &Bar" ), this ),
|
||||||
useSmallIconsInToolbarsAction( tr( "Show Small Icons in Toolbars" ), this ),
|
useSmallIconsInToolbarsAction( tr( "Show Small Icons in &Toolbars" ), this ),
|
||||||
toggleMenuBarAction( tr( "&Menubar" ), this ),
|
toggleMenuBarAction( tr( "&Menubar" ), this ),
|
||||||
switchExpandModeAction( this ),
|
switchExpandModeAction( this ),
|
||||||
trayIconMenu( this ),
|
trayIconMenu( this ),
|
||||||
|
@ -90,7 +90,7 @@ MainWindow::MainWindow( Config::Class & cfg_ ):
|
||||||
mainStatusBar = new MainStatusBar( this );
|
mainStatusBar = new MainStatusBar( this );
|
||||||
|
|
||||||
// Make the toolbar
|
// Make the toolbar
|
||||||
navToolbar = addToolBar( tr( "Navigation" ) );
|
navToolbar = addToolBar( tr( "&Navigation" ) );
|
||||||
navToolbar->setObjectName( "navToolbar" );
|
navToolbar->setObjectName( "navToolbar" );
|
||||||
|
|
||||||
navBack = navToolbar->addAction( QIcon( ":/icons/previous.png" ), tr( "Back" ) );
|
navBack = navToolbar->addAction( QIcon( ":/icons/previous.png" ), tr( "Back" ) );
|
||||||
|
|
|
@ -128,7 +128,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QDockWidget" name="searchPane">
|
<widget class="QDockWidget" name="searchPane">
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Search Pane</string>
|
<string>&Search Pane</string>
|
||||||
</property>
|
</property>
|
||||||
<attribute name="dockWidgetArea">
|
<attribute name="dockWidgetArea">
|
||||||
<number>1</number>
|
<number>1</number>
|
||||||
|
@ -255,7 +255,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QDockWidget" name="dictsPane">
|
<widget class="QDockWidget" name="dictsPane">
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Results Navigation Pane</string>
|
<string>&Results Navigation Pane</string>
|
||||||
</property>
|
</property>
|
||||||
<attribute name="dockWidgetArea">
|
<attribute name="dockWidgetArea">
|
||||||
<number>2</number>
|
<number>2</number>
|
||||||
|
@ -378,12 +378,12 @@
|
||||||
</action>
|
</action>
|
||||||
<action name="printPreview">
|
<action name="printPreview">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Print Preview</string>
|
<string>Print Pre&view</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="rescanFiles">
|
<action name="rescanFiles">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Rescan Files</string>
|
<string>&Rescan Files</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="shortcut">
|
<property name="shortcut">
|
||||||
<string>Ctrl+F5</string>
|
<string>Ctrl+F5</string>
|
||||||
|
@ -400,7 +400,7 @@
|
||||||
<normaloff>:/icons/addtab.png</normaloff>:/icons/addtab.png</iconset>
|
<normaloff>:/icons/addtab.png</normaloff>:/icons/addtab.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>New Tab</string>
|
<string>&New Tab</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="shortcut">
|
<property name="shortcut">
|
||||||
<string>Ctrl+T</string>
|
<string>Ctrl+T</string>
|
||||||
|
@ -437,7 +437,7 @@
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Always on Top</string>
|
<string>&Always on Top</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>Always on Top</string>
|
<string>Always on Top</string>
|
||||||
|
|
Loading…
Reference in a new issue