Add alt based shortcuts to access menus

This adds alt-f shortcut to access file menu as well as other similar
alt based shortcuts for other menu items.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2013-10-27 08:24:57 +02:00 committed by Dirk Hohndel
parent 899f077abd
commit 1a4d098ef2

View file

@ -214,12 +214,12 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>763</width> <width>763</width>
<height>18</height> <height>29</height>
</rect> </rect>
</property> </property>
<widget class="QMenu" name="menuFile"> <widget class="QMenu" name="menuFile">
<property name="title"> <property name="title">
<string>File</string> <string>&amp;File</string>
</property> </property>
<addaction name="actionNew"/> <addaction name="actionNew"/>
<addaction name="actionOpen"/> <addaction name="actionOpen"/>
@ -239,11 +239,11 @@
</widget> </widget>
<widget class="QMenu" name="menuLog"> <widget class="QMenu" name="menuLog">
<property name="title"> <property name="title">
<string>Log</string> <string>&amp;Log</string>
</property> </property>
<widget class="QMenu" name="menuDownloads"> <widget class="QMenu" name="menuDownloads">
<property name="title"> <property name="title">
<string>Downloads/Uploads</string> <string>&amp;Downloads/Uploads</string>
</property> </property>
<addaction name="actionDownloadDC"/> <addaction name="actionDownloadDC"/>
<addaction name="actionDownloadWeb"/> <addaction name="actionDownloadWeb"/>
@ -262,7 +262,7 @@
</widget> </widget>
<widget class="QMenu" name="menuView"> <widget class="QMenu" name="menuView">
<property name="title"> <property name="title">
<string>View</string> <string>&amp;View</string>
</property> </property>
<addaction name="actionViewAll"/> <addaction name="actionViewAll"/>
<addaction name="actionViewList"/> <addaction name="actionViewList"/>
@ -277,13 +277,13 @@
</widget> </widget>
<widget class="QMenu" name="menuFilter"> <widget class="QMenu" name="menuFilter">
<property name="title"> <property name="title">
<string>Filter</string> <string>F&amp;ilter</string>
</property> </property>
<addaction name="actionSelectEvents"/> <addaction name="actionSelectEvents"/>
</widget> </widget>
<widget class="QMenu" name="menuHelp"> <widget class="QMenu" name="menuHelp">
<property name="title"> <property name="title">
<string>Help</string> <string>&amp;Help</string>
</property> </property>
<addaction name="actionAboutSubsurface"/> <addaction name="actionAboutSubsurface"/>
<addaction name="actionUserManual"/> <addaction name="actionUserManual"/>
@ -296,6 +296,9 @@
</widget> </widget>
<action name="actionNew"> <action name="actionNew">
<property name="text"> <property name="text">
<string>&amp;New</string>
</property>
<property name="toolTip">
<string>New</string> <string>New</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
@ -304,6 +307,9 @@
</action> </action>
<action name="actionOpen"> <action name="actionOpen">
<property name="text"> <property name="text">
<string>&amp;Open</string>
</property>
<property name="toolTip">
<string>Open</string> <string>Open</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
@ -312,6 +318,9 @@
</action> </action>
<action name="actionSave"> <action name="actionSave">
<property name="text"> <property name="text">
<string>&amp;Save</string>
</property>
<property name="toolTip">
<string>Save</string> <string>Save</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
@ -320,6 +329,9 @@
</action> </action>
<action name="actionSaveAs"> <action name="actionSaveAs">
<property name="text"> <property name="text">
<string>Save &amp;as</string>
</property>
<property name="toolTip">
<string>Save as</string> <string>Save as</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
@ -328,6 +340,9 @@
</action> </action>
<action name="actionClose"> <action name="actionClose">
<property name="text"> <property name="text">
<string>&amp;Close</string>
</property>
<property name="toolTip">
<string>Close</string> <string>Close</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
@ -336,7 +351,10 @@
</action> </action>
<action name="actionImport"> <action name="actionImport">
<property name="text"> <property name="text">
<string>Import Files</string> <string>&amp;Import Files</string>
</property>
<property name="toolTip">
<string>&amp;Import Files</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Ctrl+I</string> <string>Ctrl+I</string>
@ -344,12 +362,12 @@
</action> </action>
<action name="actionExportUDDF"> <action name="actionExportUDDF">
<property name="text"> <property name="text">
<string>Export UDDF</string> <string>Export &amp;UDDF</string>
</property> </property>
</action> </action>
<action name="actionPrint"> <action name="actionPrint">
<property name="text"> <property name="text">
<string>Print</string> <string>&amp;Print</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Ctrl+P</string> <string>Ctrl+P</string>
@ -357,12 +375,12 @@
</action> </action>
<action name="actionPreferences"> <action name="actionPreferences">
<property name="text"> <property name="text">
<string>Preferences</string> <string>Pr&amp;eferences</string>
</property> </property>
</action> </action>
<action name="actionQuit"> <action name="actionQuit">
<property name="text"> <property name="text">
<string>Quit</string> <string>&amp;Quit</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Ctrl+Q</string> <string>Ctrl+Q</string>
@ -370,7 +388,7 @@
</action> </action>
<action name="actionDownloadDC"> <action name="actionDownloadDC">
<property name="text"> <property name="text">
<string>Dive computer</string> <string>Dive &amp;computer</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Ctrl+D</string> <string>Ctrl+D</string>
@ -378,22 +396,22 @@
</action> </action>
<action name="actionDownloadWeb"> <action name="actionDownloadWeb">
<property name="text"> <property name="text">
<string>Subsurface Service</string> <string>&amp;Subsurface Service</string>
</property> </property>
</action> </action>
<action name="actionEditDeviceNames"> <action name="actionEditDeviceNames">
<property name="text"> <property name="text">
<string>Edit Device Names</string> <string>&amp;Edit Device Names</string>
</property> </property>
</action> </action>
<action name="actionAddDive"> <action name="actionAddDive">
<property name="text"> <property name="text">
<string>Add Dive</string> <string>&amp;Add Dive</string>
</property> </property>
</action> </action>
<action name="actionRenumber"> <action name="actionRenumber">
<property name="text"> <property name="text">
<string>Renumber</string> <string>&amp;Renumber</string>
</property> </property>
</action> </action>
<action name="actionAutoGroup"> <action name="actionAutoGroup">
@ -401,22 +419,22 @@
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="text"> <property name="text">
<string>Auto Group</string> <string>Auto &amp;Group</string>
</property> </property>
</action> </action>
<action name="actionToggleZoom"> <action name="actionToggleZoom">
<property name="text"> <property name="text">
<string>Toggle Zoom</string> <string>Toggle &amp;Zoom</string>
</property> </property>
</action> </action>
<action name="actionYearlyStatistics"> <action name="actionYearlyStatistics">
<property name="text"> <property name="text">
<string>Yearly Statistics</string> <string>&amp;Yearly Statistics</string>
</property> </property>
</action> </action>
<action name="actionViewList"> <action name="actionViewList">
<property name="text"> <property name="text">
<string>View List</string> <string>View &amp;List</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Ctrl+2</string> <string>Ctrl+2</string>
@ -424,7 +442,7 @@
</action> </action>
<action name="actionViewProfile"> <action name="actionViewProfile">
<property name="text"> <property name="text">
<string>View Profile</string> <string>View &amp;Profile</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Ctrl+3</string> <string>Ctrl+3</string>
@ -432,7 +450,7 @@
</action> </action>
<action name="actionViewInfo"> <action name="actionViewInfo">
<property name="text"> <property name="text">
<string>View Info</string> <string>View &amp;Info</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Ctrl+4</string> <string>Ctrl+4</string>
@ -440,7 +458,7 @@
</action> </action>
<action name="actionViewAll"> <action name="actionViewAll">
<property name="text"> <property name="text">
<string>View All</string> <string>View &amp;All</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>Ctrl+1</string> <string>Ctrl+1</string>
@ -464,7 +482,7 @@
</action> </action>
<action name="actionSelectEvents"> <action name="actionSelectEvents">
<property name="text"> <property name="text">
<string>Select Events</string> <string>&amp;Select Events</string>
</property> </property>
</action> </action>
<action name="actionInputPlan"> <action name="actionInputPlan">
@ -474,12 +492,12 @@
</action> </action>
<action name="actionAboutSubsurface"> <action name="actionAboutSubsurface">
<property name="text"> <property name="text">
<string>About Subsurface</string> <string>&amp;About Subsurface</string>
</property> </property>
</action> </action>
<action name="actionUserManual"> <action name="actionUserManual">
<property name="text"> <property name="text">
<string>User Manual</string> <string>User &amp;Manual</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string>F1</string> <string>F1</string>
@ -495,7 +513,7 @@
</action> </action>
<action name="actionDivePlanner"> <action name="actionDivePlanner">
<property name="text"> <property name="text">
<string>Dive Planner</string> <string>&amp;Dive Planner</string>
</property> </property>
</action> </action>
<action name="actionImportCSV"> <action name="actionImportCSV">
@ -503,12 +521,12 @@
<string>Import CSV</string> <string>Import CSV</string>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>Import CSV</string> <string>Import CS&amp;V</string>
</property> </property>
</action> </action>
<action name="actionDivelogs_de"> <action name="actionDivelogs_de">
<property name="text"> <property name="text">
<string>Divelogs.de</string> <string>&amp;Divelogs.de</string>
</property> </property>
</action> </action>
</widget> </widget>