Manager: Add keyboard mnemonics and ellipses to menu entries
This commit is contained in:
@@ -30,7 +30,7 @@ msgstr ""
|
||||
msgid "Re&sume"
|
||||
msgstr ""
|
||||
|
||||
msgid "E&xit..."
|
||||
msgid "E&xit"
|
||||
msgstr ""
|
||||
|
||||
msgid "&View"
|
||||
|
||||
@@ -30,8 +30,8 @@ msgstr "&Pausa"
|
||||
msgid "Re&sume"
|
||||
msgstr ""
|
||||
|
||||
msgid "E&xit..."
|
||||
msgstr "&Sortir ..."
|
||||
msgid "E&xit"
|
||||
msgstr "&Sortir"
|
||||
|
||||
msgid "&View"
|
||||
msgstr "&Vista"
|
||||
|
||||
@@ -30,7 +30,7 @@ msgstr "P&ozastavit"
|
||||
msgid "Re&sume"
|
||||
msgstr ""
|
||||
|
||||
msgid "E&xit..."
|
||||
msgid "E&xit"
|
||||
msgstr "&Ukončit"
|
||||
|
||||
msgid "&View"
|
||||
|
||||
@@ -30,8 +30,8 @@ msgstr "&Pause"
|
||||
msgid "Re&sume"
|
||||
msgstr ""
|
||||
|
||||
msgid "E&xit..."
|
||||
msgstr "Be&enden..."
|
||||
msgid "E&xit"
|
||||
msgstr "Be&enden"
|
||||
|
||||
msgid "&View"
|
||||
msgstr "&Ansicht"
|
||||
|
||||
@@ -30,8 +30,8 @@ msgstr "&Pausa"
|
||||
msgid "Re&sume"
|
||||
msgstr ""
|
||||
|
||||
msgid "E&xit..."
|
||||
msgstr "&Salir..."
|
||||
msgid "E&xit"
|
||||
msgstr "&Salir"
|
||||
|
||||
msgid "&View"
|
||||
msgstr "&Vista"
|
||||
|
||||
@@ -30,8 +30,8 @@ msgstr "&Tauko"
|
||||
msgid "Re&sume"
|
||||
msgstr ""
|
||||
|
||||
msgid "E&xit..."
|
||||
msgstr "&Poistu..."
|
||||
msgid "E&xit"
|
||||
msgstr "&Poistu"
|
||||
|
||||
msgid "&View"
|
||||
msgstr "&Näytä"
|
||||
|
||||
@@ -30,8 +30,8 @@ msgstr "&Pause"
|
||||
msgid "Re&sume"
|
||||
msgstr ""
|
||||
|
||||
msgid "E&xit..."
|
||||
msgstr "&Quitter..."
|
||||
msgid "E&xit"
|
||||
msgstr "&Quitter"
|
||||
|
||||
msgid "&View"
|
||||
msgstr "&Vue"
|
||||
|
||||
@@ -30,8 +30,8 @@ msgstr "&Pauza"
|
||||
msgid "Re&sume"
|
||||
msgstr ""
|
||||
|
||||
msgid "E&xit..."
|
||||
msgstr "Iz&laz..."
|
||||
msgid "E&xit"
|
||||
msgstr "Iz&laz"
|
||||
|
||||
msgid "&View"
|
||||
msgstr "&Pogled"
|
||||
|
||||
@@ -30,8 +30,8 @@ msgstr "&Szüneteltetés"
|
||||
msgid "Re&sume"
|
||||
msgstr ""
|
||||
|
||||
msgid "E&xit..."
|
||||
msgstr "&Kilépés..."
|
||||
msgid "E&xit"
|
||||
msgstr "&Kilépés"
|
||||
|
||||
msgid "&View"
|
||||
msgstr "&Nézet"
|
||||
|
||||
@@ -30,8 +30,8 @@ msgstr "&Pausa"
|
||||
msgid "Re&sume"
|
||||
msgstr ""
|
||||
|
||||
msgid "E&xit..."
|
||||
msgstr "E&sci..."
|
||||
msgid "E&xit"
|
||||
msgstr "E&sci"
|
||||
|
||||
msgid "&View"
|
||||
msgstr "&Visualizza"
|
||||
|
||||
@@ -30,8 +30,8 @@ msgstr "一時停止(&P)"
|
||||
msgid "Re&sume"
|
||||
msgstr ""
|
||||
|
||||
msgid "E&xit..."
|
||||
msgstr "終了(&X)..."
|
||||
msgid "E&xit"
|
||||
msgstr "終了(&X)"
|
||||
|
||||
msgid "&View"
|
||||
msgstr "表示(&V)"
|
||||
|
||||
@@ -30,8 +30,8 @@ msgstr "일시정지(&P)"
|
||||
msgid "Re&sume"
|
||||
msgstr ""
|
||||
|
||||
msgid "E&xit..."
|
||||
msgstr "끝내기(&X)..."
|
||||
msgid "E&xit"
|
||||
msgstr "끝내기(&X)"
|
||||
|
||||
msgid "&View"
|
||||
msgstr "표시(&V)"
|
||||
|
||||
@@ -30,8 +30,8 @@ msgstr "&Pauze"
|
||||
msgid "Re&sume"
|
||||
msgstr ""
|
||||
|
||||
msgid "E&xit..."
|
||||
msgstr "&Afsluiten..."
|
||||
msgid "E&xit"
|
||||
msgstr "&Afsluiten"
|
||||
|
||||
msgid "&View"
|
||||
msgstr "&Beeld"
|
||||
|
||||
@@ -30,8 +30,8 @@ msgstr "&Pauza"
|
||||
msgid "Re&sume"
|
||||
msgstr ""
|
||||
|
||||
msgid "E&xit..."
|
||||
msgstr "W&yjdź..."
|
||||
msgid "E&xit"
|
||||
msgstr "W&yjdź"
|
||||
|
||||
msgid "&View"
|
||||
msgstr "&Widok"
|
||||
|
||||
@@ -30,8 +30,8 @@ msgstr "&Pausar"
|
||||
msgid "Re&sume"
|
||||
msgstr ""
|
||||
|
||||
msgid "E&xit..."
|
||||
msgstr "&Sair..."
|
||||
msgid "E&xit"
|
||||
msgstr "&Sair"
|
||||
|
||||
msgid "&View"
|
||||
msgstr "&Exibir"
|
||||
|
||||
@@ -30,8 +30,8 @@ msgstr "&Pausa"
|
||||
msgid "Re&sume"
|
||||
msgstr ""
|
||||
|
||||
msgid "E&xit..."
|
||||
msgstr "&Sair..."
|
||||
msgid "E&xit"
|
||||
msgstr "&Sair"
|
||||
|
||||
msgid "&View"
|
||||
msgstr "&Ver"
|
||||
|
||||
@@ -30,8 +30,8 @@ msgstr "&Пауза"
|
||||
msgid "Re&sume"
|
||||
msgstr "В&озобновить"
|
||||
|
||||
msgid "E&xit..."
|
||||
msgstr "&Выход..."
|
||||
msgid "E&xit"
|
||||
msgstr "&Выход"
|
||||
|
||||
msgid "&View"
|
||||
msgstr "&Вид"
|
||||
|
||||
@@ -30,7 +30,7 @@ msgstr "P&ozastaviť"
|
||||
msgid "Re&sume"
|
||||
msgstr ""
|
||||
|
||||
msgid "E&xit..."
|
||||
msgid "E&xit"
|
||||
msgstr "&Ukončiť"
|
||||
|
||||
msgid "&View"
|
||||
|
||||
@@ -30,8 +30,8 @@ msgstr "&Premor"
|
||||
msgid "Re&sume"
|
||||
msgstr ""
|
||||
|
||||
msgid "E&xit..."
|
||||
msgstr "Iz&hod..."
|
||||
msgid "E&xit"
|
||||
msgstr "Iz&hod"
|
||||
|
||||
msgid "&View"
|
||||
msgstr "&Pogled"
|
||||
|
||||
@@ -30,8 +30,8 @@ msgstr "&Pausa"
|
||||
msgid "Re&sume"
|
||||
msgstr ""
|
||||
|
||||
msgid "E&xit..."
|
||||
msgstr "A&vsluta..."
|
||||
msgid "E&xit"
|
||||
msgstr "A&vsluta"
|
||||
|
||||
msgid "&View"
|
||||
msgstr "&Visa"
|
||||
|
||||
@@ -30,8 +30,8 @@ msgstr "&Duraklat"
|
||||
msgid "Re&sume"
|
||||
msgstr ""
|
||||
|
||||
msgid "E&xit..."
|
||||
msgstr "&Çıkış yap..."
|
||||
msgid "E&xit"
|
||||
msgstr "&Çıkış yap"
|
||||
|
||||
msgid "&View"
|
||||
msgstr "&Görünüm"
|
||||
|
||||
@@ -30,8 +30,8 @@ msgstr "&Пауза"
|
||||
msgid "Re&sume"
|
||||
msgstr ""
|
||||
|
||||
msgid "E&xit..."
|
||||
msgstr "&Вихід..."
|
||||
msgid "E&xit"
|
||||
msgstr "&Вихід"
|
||||
|
||||
msgid "&View"
|
||||
msgstr "&Вигляд"
|
||||
|
||||
@@ -30,8 +30,8 @@ msgstr "Tạm &dừng"
|
||||
msgid "Re&sume"
|
||||
msgstr ""
|
||||
|
||||
msgid "E&xit..."
|
||||
msgstr "Th&oát..."
|
||||
msgid "E&xit"
|
||||
msgstr "Th&oát"
|
||||
|
||||
msgid "&View"
|
||||
msgstr "&Xem"
|
||||
|
||||
@@ -30,8 +30,8 @@ msgstr "暂停(&P)"
|
||||
msgid "Re&sume"
|
||||
msgstr ""
|
||||
|
||||
msgid "E&xit..."
|
||||
msgstr "退出(&X)..."
|
||||
msgid "E&xit"
|
||||
msgstr "退出(&X)"
|
||||
|
||||
msgid "&View"
|
||||
msgstr "查看(&V)"
|
||||
|
||||
@@ -30,8 +30,8 @@ msgstr "暫停(&P)"
|
||||
msgid "Re&sume"
|
||||
msgstr ""
|
||||
|
||||
msgid "E&xit..."
|
||||
msgstr "退出(&X)..."
|
||||
msgid "E&xit"
|
||||
msgstr "退出(&X)"
|
||||
|
||||
msgid "&View"
|
||||
msgstr "檢視(&V)"
|
||||
|
||||
@@ -354,7 +354,7 @@
|
||||
</action>
|
||||
<action name="actionExit">
|
||||
<property name="text">
|
||||
<string>Exit</string>
|
||||
<string>E&xit</string>
|
||||
</property>
|
||||
<property name="menuRole">
|
||||
<enum>QAction::QuitRole</enum>
|
||||
|
||||
@@ -53,7 +53,7 @@ VMManagerMain::VMManagerMain(QWidget *parent) :
|
||||
if (indexAt.isValid()) {
|
||||
QMenu contextMenu(tr("Context Menu"), ui->listView);
|
||||
|
||||
QAction nameChangeAction(tr("Change display name"));
|
||||
QAction nameChangeAction(tr("Change &display name..."));
|
||||
contextMenu.addAction(&nameChangeAction);
|
||||
// Use a lambda to call a function so indexAt can be passed
|
||||
connect(&nameChangeAction, &QAction::triggered, ui->listView, [this, indexAt] {
|
||||
@@ -61,7 +61,7 @@ VMManagerMain::VMManagerMain(QWidget *parent) :
|
||||
});
|
||||
nameChangeAction.setEnabled(!selected_sysconfig->window_obscured);
|
||||
|
||||
QAction openSystemFolderAction(tr("Open folder"));
|
||||
QAction openSystemFolderAction(tr("&Open folder..."));
|
||||
contextMenu.addAction(&openSystemFolderAction);
|
||||
connect(&openSystemFolderAction, &QAction::triggered, [indexAt] {
|
||||
if (const auto configDir = indexAt.data(VMManagerModel::Roles::ConfigDir).toString(); !configDir.isEmpty()) {
|
||||
@@ -73,7 +73,7 @@ VMManagerMain::VMManagerMain(QWidget *parent) :
|
||||
}
|
||||
});
|
||||
|
||||
QAction setSystemIcon(tr("Set icon"));
|
||||
QAction setSystemIcon(tr("Set &icon..."));
|
||||
contextMenu.addAction(&setSystemIcon);
|
||||
connect(&setSystemIcon, &QAction::triggered, [this] {
|
||||
IconSelectionDialog dialog(":/systemicons/");
|
||||
@@ -98,7 +98,7 @@ VMManagerMain::VMManagerMain(QWidget *parent) :
|
||||
|
||||
contextMenu.addSeparator();
|
||||
|
||||
QAction showRawConfigFile(tr("Show config file"));
|
||||
QAction showRawConfigFile(tr("Show &config file"));
|
||||
contextMenu.addAction(&showRawConfigFile);
|
||||
connect(&showRawConfigFile, &QAction::triggered, [this, indexAt] {
|
||||
if (const auto configFile = indexAt.data(VMManagerModel::Roles::ConfigFile).toString(); !configFile.isEmpty()) {
|
||||
|
||||
@@ -46,11 +46,11 @@ VMManagerMainWindow(QWidget *parent)
|
||||
setCentralWidget(vmm);
|
||||
|
||||
// Set up the buttons
|
||||
connect(ui->actionNew_Machine, &QAction::triggered, vmm, &VMManagerMain::newMachineWizard);
|
||||
connect(ui->actionStartPause, &QAction::triggered, vmm, &VMManagerMain::startButtonPressed);
|
||||
connect(ui->actionSettings, &QAction::triggered, vmm, &VMManagerMain::settingsButtonPressed);
|
||||
connect(ui->actionHard_Reset, &QAction::triggered, vmm, &VMManagerMain::restartButtonPressed);
|
||||
connect(ui->actionForce_Shutdown, &QAction::triggered, vmm, &VMManagerMain::shutdownForceButtonPressed);
|
||||
connect(ui->actionNew_Machine, &QAction::triggered, vmm, &VMManagerMain::newMachineWizard);
|
||||
|
||||
// Set up menu actions
|
||||
// (Disable this if the EMU_BUILD_NUM == 0)
|
||||
|
||||
@@ -25,14 +25,14 @@
|
||||
</property>
|
||||
<widget class="QMenu" name="menuTools">
|
||||
<property name="title">
|
||||
<string>Tools</string>
|
||||
<string>&Tools</string>
|
||||
</property>
|
||||
<addaction name="actionPreferences"/>
|
||||
<addaction name="actionCheck_for_updates"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuFile">
|
||||
<property name="title">
|
||||
<string>File</string>
|
||||
<string>&File</string>
|
||||
</property>
|
||||
<addaction name="actionNew_Machine"/>
|
||||
<addaction name="separator"/>
|
||||
@@ -73,12 +73,13 @@
|
||||
<attribute name="toolBarBreak">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
<addaction name="actionNew_Machine"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionStartPause"/>
|
||||
<addaction name="actionHard_Reset"/>
|
||||
<addaction name="actionForce_Shutdown"/>
|
||||
<addaction name="actionCtrl_Alt_Del"/>
|
||||
<addaction name="actionSettings"/>
|
||||
<addaction name="actionNew_Machine"/>
|
||||
</widget>
|
||||
<action name="actionStartPause">
|
||||
<property name="checkable">
|
||||
@@ -89,7 +90,7 @@
|
||||
<normaloff>:/menuicons/qt/icons/run.ico</normaloff>:/menuicons/qt/icons/run.ico</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Start</string>
|
||||
<string>&Start</string>
|
||||
</property>
|
||||
<property name="iconVisibleInMenu">
|
||||
<bool>false</bool>
|
||||
@@ -116,7 +117,7 @@
|
||||
<normaloff>:/menuicons/qt/icons/acpi_shutdown.ico</normaloff>:/menuicons/qt/icons/acpi_shutdown.ico</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Force shutdown</string>
|
||||
<string>&Force shutdown</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Force shutdown</string>
|
||||
@@ -173,18 +174,18 @@
|
||||
<normaloff>:/settings/qt/icons/86Box-yellow.ico</normaloff>:/settings/qt/icons/86Box-yellow.ico</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>New Machine</string>
|
||||
<string>&New machine...</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>New Machine</string>
|
||||
<string>New machine...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionPreferences">
|
||||
<property name="text">
|
||||
<string>Preferences</string>
|
||||
<string>&Preferences...</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Preferences</string>
|
||||
<string>Preferences...</string>
|
||||
</property>
|
||||
<property name="menuRole">
|
||||
<enum>QAction::PreferencesRole</enum>
|
||||
@@ -199,7 +200,7 @@
|
||||
<normaloff>:/menuicons/qt/icons/run.ico</normaloff>:/menuicons/qt/icons/run.ico</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Start</string>
|
||||
<string>&Start</string>
|
||||
</property>
|
||||
<property name="iconVisibleInMenu">
|
||||
<bool>false</bool>
|
||||
@@ -207,7 +208,7 @@
|
||||
</action>
|
||||
<action name="actionCheck_for_updates">
|
||||
<property name="text">
|
||||
<string>Check for updates</string>
|
||||
<string>&Check for updates...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionExit">
|
||||
@@ -215,7 +216,7 @@
|
||||
<iconset theme="QIcon::ApplicationExit"/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Exit</string>
|
||||
<string>E&xit</string>
|
||||
</property>
|
||||
<property name="menuRole">
|
||||
<enum>QAction::QuitRole</enum>
|
||||
@@ -236,7 +237,7 @@
|
||||
</action>
|
||||
<action name="actionAbout_Qt">
|
||||
<property name="text">
|
||||
<string>About Qt</string>
|
||||
<string>About &Qt</string>
|
||||
</property>
|
||||
<property name="visible">
|
||||
<bool>false</bool>
|
||||
|
||||
Reference in New Issue
Block a user