Qt: Add missing main menu mnemonics.

The GTK+ main menu had quite a few keyboard mnemonics which were missing
in the Qt UI, most notably File → Open, File → Close, and File → Quit.
Update ui/qt/main_window.ui from a list generated by running

`grep -E 'NULL, +".*_.*"' ui/gtk/main_menubar.c`

in a current master-2.6 checkout.

BTW, the proper terminology to use here is unclear. Most places use
"mnemonics":

GTK+: Access keys
https://developer.gnome.org/hig/stable/keyboard-input.html.en

Qt: Mnemonics or accelerator keys
http://doc.qt.io/qt-5/qkeysequence.html
http://doc.qt.io/qt-5/accelerators.html

Wikipedia: Mnemonics
https://en.wikipedia.org/wiki/Keyboard_shortcut

Windows: Menu access keys or mnemonics
https://docs.microsoft.com/en-us/windows/desktop/menurc/about-menus

Bug: 15475
Change-Id: Ibacbe066d4acfcea91125a980977d1610e3c0908
Reviewed-on: https://code.wireshark.org/review/31871
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Gerald Combs 2019-02-03 11:42:02 -08:00 committed by Anders Broman
parent bfceb99f93
commit cdfc56b340
1 changed files with 29 additions and 29 deletions

View File

@ -153,7 +153,7 @@
</property> </property>
<widget class="QMenu" name="menuOpenRecentCaptureFile"> <widget class="QMenu" name="menuOpenRecentCaptureFile">
<property name="title"> <property name="title">
<string>Open Recent</string> <string>Open &amp;Recent</string>
</property> </property>
<addaction name="actionDummyNoFilesFound"/> <addaction name="actionDummyNoFilesFound"/>
</widget> </widget>
@ -311,7 +311,7 @@
</widget> </widget>
<widget class="QMenu" name="menuName_Resolution"> <widget class="QMenu" name="menuName_Resolution">
<property name="title"> <property name="title">
<string>Name Resolution</string> <string>Name Resol&amp;ution</string>
</property> </property>
<addaction name="actionViewEditResolvedName"/> <addaction name="actionViewEditResolvedName"/>
<addaction name="separator"/> <addaction name="separator"/>
@ -525,7 +525,7 @@
</widget> </widget>
<widget class="QMenu" name="menuServiceResponseTime"> <widget class="QMenu" name="menuServiceResponseTime">
<property name="title"> <property name="title">
<string>Service Response Time</string> <string>Service &amp;Response Time</string>
</property> </property>
</widget> </widget>
<addaction name="actionStatisticsCaptureFileProperties"/> <addaction name="actionStatisticsCaptureFileProperties"/>
@ -564,39 +564,39 @@
</widget> </widget>
<widget class="QMenu" name="menuRTP"> <widget class="QMenu" name="menuRTP">
<property name="title"> <property name="title">
<string>RTP</string> <string>&amp;RTP</string>
</property> </property>
<addaction name="actionTelephonyRTPStreams"/> <addaction name="actionTelephonyRTPStreams"/>
<addaction name="actionTelephonyRTPStreamAnalysis"/> <addaction name="actionTelephonyRTPStreamAnalysis"/>
</widget> </widget>
<widget class="QMenu" name="menuTelephonySCTP"> <widget class="QMenu" name="menuTelephonySCTP">
<property name="title"> <property name="title">
<string>SCTP</string> <string>S&amp;CTP</string>
</property> </property>
<addaction name="actionSCTPAnalyseThisAssociation"/> <addaction name="actionSCTPAnalyseThisAssociation"/>
<addaction name="actionSCTPShowAllAssociations"/> <addaction name="actionSCTPShowAllAssociations"/>
</widget> </widget>
<widget class="QMenu" name="menuANSI"> <widget class="QMenu" name="menuANSI">
<property name="title"> <property name="title">
<string>ANSI</string> <string>&amp;ANSI</string>
</property> </property>
<addaction name="actionTelephonyANSIPlaceholder"/> <addaction name="actionTelephonyANSIPlaceholder"/>
</widget> </widget>
<widget class="QMenu" name="menuGSM"> <widget class="QMenu" name="menuGSM">
<property name="title"> <property name="title">
<string>GSM</string> <string>&amp;GSM</string>
</property> </property>
<addaction name="actionTelephonyGSMPlaceholder"/> <addaction name="actionTelephonyGSMPlaceholder"/>
</widget> </widget>
<widget class="QMenu" name="menuLTE"> <widget class="QMenu" name="menuLTE">
<property name="title"> <property name="title">
<string>LTE</string> <string>&amp;LTE</string>
</property> </property>
<addaction name="actionTelephonyLTEPlaceholder"/> <addaction name="actionTelephonyLTEPlaceholder"/>
</widget> </widget>
<widget class="QMenu" name="menuMTP3"> <widget class="QMenu" name="menuMTP3">
<property name="title"> <property name="title">
<string>MTP3</string> <string>&amp;MTP3</string>
</property> </property>
<addaction name="actionTelephonyMTP3Placeholder"/> <addaction name="actionTelephonyMTP3Placeholder"/>
</widget> </widget>
@ -785,7 +785,7 @@
</widget> </widget>
<action name="actionFileOpen"> <action name="actionFileOpen">
<property name="text"> <property name="text">
<string>Open</string> <string>&amp;Open</string>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>Open a capture file</string> <string>Open a capture file</string>
@ -799,7 +799,7 @@
</action> </action>
<action name="actionFileQuit"> <action name="actionFileQuit">
<property name="text"> <property name="text">
<string>Quit</string> <string>&amp;Quit</string>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>Quit Wireshark</string> <string>Quit Wireshark</string>
@ -838,7 +838,7 @@
</action> </action>
<action name="actionFileClose"> <action name="actionFileClose">
<property name="text"> <property name="text">
<string>Close</string> <string>&amp;Close</string>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>Close this capture file</string> <string>Close this capture file</string>
@ -1281,27 +1281,27 @@
</action> </action>
<action name="actionFileExportAsCSV"> <action name="actionFileExportAsCSV">
<property name="text"> <property name="text">
<string>As CSV…</string> <string>As &amp;CSV…</string>
</property> </property>
</action> </action>
<action name="actionFileExportAsCArrays"> <action name="actionFileExportAsCArrays">
<property name="text"> <property name="text">
<string>As &quot;C&quot; Arrays…</string> <string>As &quot;C&quot; &amp;Arrays…</string>
</property> </property>
</action> </action>
<action name="actionFileExportAsPSML"> <action name="actionFileExportAsPSML">
<property name="text"> <property name="text">
<string>As PSML XML…</string> <string>As P&amp;SML XML…</string>
</property> </property>
</action> </action>
<action name="actionFileExportAsPDML"> <action name="actionFileExportAsPDML">
<property name="text"> <property name="text">
<string>As PDML XML…</string> <string>As P&amp;DML XML…</string>
</property> </property>
</action> </action>
<action name="actionFileExportAsJSON"> <action name="actionFileExportAsJSON">
<property name="text"> <property name="text">
<string>As JSON…</string> <string>As &amp;JSON…</string>
</property> </property>
</action> </action>
<action name="actionEditCopyDescription"> <action name="actionEditCopyDescription">
@ -1453,7 +1453,7 @@
</action> </action>
<action name="actionAnalyzeDisplayFilters"> <action name="actionAnalyzeDisplayFilters">
<property name="text"> <property name="text">
<string>Display Filters…</string> <string>Display &amp;Filters…</string>
</property> </property>
</action> </action>
<action name="actionAnalyzeDisplayFilterMacros"> <action name="actionAnalyzeDisplayFilterMacros">
@ -1529,7 +1529,7 @@
</action> </action>
<action name="actionEditUnmarkAllDisplayed"> <action name="actionEditUnmarkAllDisplayed">
<property name="text"> <property name="text">
<string>Unmark All Displayed</string> <string>&amp;Unmark All Displayed</string>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>Unmark all displayed packets</string> <string>Unmark all displayed packets</string>
@ -1587,7 +1587,7 @@
<string>Unignore All Displayed</string> <string>Unignore All Displayed</string>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>Unignore all displayed packets</string> <string>U&amp;nignore all displayed packets</string>
</property> </property>
<property name="shortcut"> <property name="shortcut">
<string notr="true">Ctrl+Alt+D</string> <string notr="true">Ctrl+Alt+D</string>
@ -1672,7 +1672,7 @@
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="text"> <property name="text">
<string>Configuration Profiles…</string> <string>&amp;Configuration Profiles…</string>
</property> </property>
<property name="iconText"> <property name="iconText">
<string>Configuration profiles</string> <string>Configuration profiles</string>
@ -2151,7 +2151,7 @@
</action> </action>
<action name="actionStatisticsConversations"> <action name="actionStatisticsConversations">
<property name="text"> <property name="text">
<string>Conversations</string> <string>&amp;Conversations</string>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>Conversations at different protocol levels</string> <string>Conversations at different protocol levels</string>
@ -2159,7 +2159,7 @@
</action> </action>
<action name="actionStatisticsEndpoints"> <action name="actionStatisticsEndpoints">
<property name="text"> <property name="text">
<string>Endpoints</string> <string>&amp;Endpoints</string>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>Endpoints at different protocol levels</string> <string>Endpoints at different protocol levels</string>
@ -2537,7 +2537,7 @@
</action> </action>
<action name="actionViewInternalsConversationHashTables"> <action name="actionViewInternalsConversationHashTables">
<property name="text"> <property name="text">
<string>Conversation Hash Tables</string> <string>&amp;Conversation Hash Tables</string>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>Show each conversation hash table</string> <string>Show each conversation hash table</string>
@ -2545,7 +2545,7 @@
</action> </action>
<action name="actionViewInternalsDissectorTables"> <action name="actionViewInternalsDissectorTables">
<property name="text"> <property name="text">
<string>Dissector Tables</string> <string>&amp;Dissector Tables</string>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>Show each dissector table and its entries</string> <string>Show each dissector table and its entries</string>
@ -2553,7 +2553,7 @@
</action> </action>
<action name="actionViewInternalsSupportedProtocols"> <action name="actionViewInternalsSupportedProtocols">
<property name="text"> <property name="text">
<string>Supported Protocols</string> <string>&amp;Supported Protocols</string>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>Show the currently supported protocols and display filter fields</string> <string>Show the currently supported protocols and display filter fields</string>
@ -2585,7 +2585,7 @@
</action> </action>
<action name="actionTelephonyLteRlcGraph"> <action name="actionTelephonyLteRlcGraph">
<property name="text"> <property name="text">
<string>RLC Graph</string> <string>RLC &amp;Graph</string>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>LTE RLC graph</string> <string>LTE RLC graph</string>
@ -2879,7 +2879,7 @@
</action> </action>
<action name="actionTelephonyIax2StreamAnalysis"> <action name="actionTelephonyIax2StreamAnalysis">
<property name="text"> <property name="text">
<string>IAX2 Stream Analysis</string> <string>IA&amp;X2 Stream Analysis</string>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>IAX2 Stream Analysis</string> <string>IAX2 Stream Analysis</string>
@ -2930,7 +2930,7 @@
</action> </action>
<action name="actionGoGoToLinkedPacket"> <action name="actionGoGoToLinkedPacket">
<property name="text"> <property name="text">
<string>Go to Linked Packet</string> <string>Go to &amp;Linked Packet</string>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>Go to the packet referenced by the selected field.</string> <string>Go to the packet referenced by the selected field.</string>