mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 16:26:40 -04:00
rearrange and clarify menus
This commit is contained in:
parent
7ad0686928
commit
44b5b1670a
2 changed files with 61 additions and 51 deletions
|
@ -1311,9 +1311,6 @@ Error was:\n%(f1)s\n...\n%(f2)s""") % {'f1': fmt1, 'f2': fmt2})
|
|||
|
||||
deckRelatedMenus = (
|
||||
"Tools",
|
||||
"Advanced",
|
||||
"Plugins",
|
||||
"Current",
|
||||
)
|
||||
|
||||
def connectMenuActions(self):
|
||||
|
@ -1423,7 +1420,8 @@ Error was:\n%(f1)s\n...\n%(f2)s""") % {'f1': fmt1, 'f2': fmt2})
|
|||
self.maybeShowKanjiStats()
|
||||
self.mainWin.actionEditCurrent.setEnabled(False)
|
||||
self.mainWin.actionMarkCard.setEnabled(False)
|
||||
self.mainWin.menuCurrent.setEnabled(False)
|
||||
self.mainWin.actionSuspendCard.setEnabled(False)
|
||||
self.mainWin.actionDelete.setEnabled(False)
|
||||
|
||||
def enableCardMenuItems(self):
|
||||
self.maybeEnableUndo()
|
||||
|
@ -1435,7 +1433,8 @@ Error was:\n%(f1)s\n...\n%(f2)s""") % {'f1': fmt1, 'f2': fmt2})
|
|||
self.mainWin.actionRepeatAudio.setEnabled(snd)
|
||||
self.mainWin.actionEditCurrent.setEnabled(True)
|
||||
self.mainWin.actionMarkCard.setEnabled(True)
|
||||
self.mainWin.menuCurrent.setEnabled(True)
|
||||
self.mainWin.actionSuspendCard.setEnabled(True)
|
||||
self.mainWin.actionDelete.setEnabled(True)
|
||||
|
||||
def maybeShowKanjiStats(self):
|
||||
if not self.deck:
|
||||
|
|
103
designer/main.ui
103
designer/main.ui
|
@ -643,15 +643,12 @@
|
|||
<addaction name="actionRedo" />
|
||||
<addaction name="separator" />
|
||||
<addaction name="actionAddcards" />
|
||||
<addaction name="actionEditCurrent" />
|
||||
<addaction name="actionEditdeck" />
|
||||
<addaction name="separator" />
|
||||
<addaction name="actionActiveTags" />
|
||||
<addaction name="separator" />
|
||||
<addaction name="actionDisplayProperties" />
|
||||
<addaction name="actionModelProperties" />
|
||||
<addaction name="actionDeckProperties" />
|
||||
<addaction name="separator" />
|
||||
<addaction name="actionPreferences" />
|
||||
<addaction name="actionMarkCard" />
|
||||
<addaction name="actionSuspendCard" />
|
||||
<addaction name="actionDelete" />
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuDeck" >
|
||||
<property name="title" >
|
||||
|
@ -700,59 +697,63 @@
|
|||
<addaction name="actionLookup_es" />
|
||||
<addaction name="actionLookup_esk" />
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuAdvanced" >
|
||||
<property name="title" >
|
||||
<string>&Advanced</string>
|
||||
</property>
|
||||
<addaction name="actionCheckDatabaseIntegrity" />
|
||||
<addaction name="actionCheckMediaDatabase" />
|
||||
<addaction name="separator" />
|
||||
<addaction name="actionOptimizeDatabase" />
|
||||
<addaction name="separator" />
|
||||
<addaction name="actionMergeModels" />
|
||||
</widget>
|
||||
<addaction name="actionGraphs" />
|
||||
<addaction name="actionDstats" />
|
||||
<addaction name="actionKstats" />
|
||||
<addaction name="actionCstats" />
|
||||
<addaction name="separator" />
|
||||
<addaction name="actionRepeatAudio" />
|
||||
<addaction name="menu_Lookup" />
|
||||
<addaction name="separator" />
|
||||
<addaction name="menuAdvanced" />
|
||||
<addaction name="separator" />
|
||||
<addaction name="actionCram" />
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuAdvanced" >
|
||||
<widget class="QMenu" name="menu_Settings" >
|
||||
<property name="title" >
|
||||
<string>&Advanced</string>
|
||||
<string>&Settings</string>
|
||||
</property>
|
||||
<addaction name="actionCheckDatabaseIntegrity" />
|
||||
<addaction name="actionCheckMediaDatabase" />
|
||||
<addaction name="actionOptimizeDatabase" />
|
||||
<addaction name="separator" />
|
||||
<addaction name="actionMergeModels" />
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuPlugins" >
|
||||
<property name="title" >
|
||||
<string>&Plugins</string>
|
||||
</property>
|
||||
<widget class="QMenu" name="menuStartup" >
|
||||
<widget class="QMenu" name="menuPlugins" >
|
||||
<property name="title" >
|
||||
<string>Startup</string>
|
||||
<string>P&lugins</string>
|
||||
</property>
|
||||
<addaction name="actionEnableAllPlugins" />
|
||||
<addaction name="actionDisableAllPlugins" />
|
||||
<widget class="QMenu" name="menuStartup" >
|
||||
<property name="title" >
|
||||
<string>Startup</string>
|
||||
</property>
|
||||
<addaction name="actionEnableAllPlugins" />
|
||||
<addaction name="actionDisableAllPlugins" />
|
||||
<addaction name="separator" />
|
||||
</widget>
|
||||
<addaction name="actionGetPlugins" />
|
||||
<addaction name="actionOpenPluginFolder" />
|
||||
<addaction name="separator" />
|
||||
<addaction name="menuStartup" />
|
||||
</widget>
|
||||
<addaction name="actionGetPlugins" />
|
||||
<addaction name="actionOpenPluginFolder" />
|
||||
<addaction name="actionActiveTags" />
|
||||
<addaction name="separator" />
|
||||
<addaction name="menuStartup" />
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuCurrent" >
|
||||
<property name="title" >
|
||||
<string>&Current</string>
|
||||
</property>
|
||||
<addaction name="actionRepeatAudio" />
|
||||
<addaction name="actionDisplayProperties" />
|
||||
<addaction name="actionModelProperties" />
|
||||
<addaction name="actionDeckProperties" />
|
||||
<addaction name="separator" />
|
||||
<addaction name="actionEditCurrent" />
|
||||
<addaction name="actionMarkCard" />
|
||||
<addaction name="actionSuspendCard" />
|
||||
<addaction name="actionDelete" />
|
||||
<addaction name="menuPlugins" />
|
||||
<addaction name="actionPreferences" />
|
||||
</widget>
|
||||
<addaction name="menuDeck" />
|
||||
<addaction name="menuEdit" />
|
||||
<addaction name="menuCurrent" />
|
||||
<addaction name="menuTools" />
|
||||
<addaction name="menuPlugins" />
|
||||
<addaction name="menuAdvanced" />
|
||||
<addaction name="menu_Settings" />
|
||||
<addaction name="menuHelp" />
|
||||
</widget>
|
||||
<widget class="QStatusBar" name="statusbar" >
|
||||
|
@ -911,7 +912,7 @@
|
|||
<normaloff>:/icons/configure.png</normaloff>:/icons/configure.png</iconset>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<string>&Preferences...</string>
|
||||
<string>&Preferences</string>
|
||||
</property>
|
||||
<property name="statusTip" >
|
||||
<string>Application-wide preferences.</string>
|
||||
|
@ -1068,7 +1069,7 @@
|
|||
<normaloff>:/icons/preferences-desktop-font.png</normaloff>:/icons/preferences-desktop-font.png</iconset>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<string>Disp&lay Properties...</string>
|
||||
<string>&Fonts and Colours...</string>
|
||||
</property>
|
||||
<property name="statusTip" >
|
||||
<string>Customize fonts, colours and alignment.</string>
|
||||
|
@ -1088,7 +1089,7 @@
|
|||
<normaloff>:/icons/rating.png</normaloff>:/icons/rating.png</iconset>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<string>&Mark</string>
|
||||
<string>&Mark Fact</string>
|
||||
</property>
|
||||
<property name="shortcut" >
|
||||
<string>Ctrl+M</string>
|
||||
|
@ -1100,7 +1101,7 @@
|
|||
<normaloff>:/icons/media-playback-pause.png</normaloff>:/icons/media-playback-pause.png</iconset>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<string>&Suspend</string>
|
||||
<string>&Suspend Fact</string>
|
||||
</property>
|
||||
<property name="statusTip" >
|
||||
<string>Stop reviewing this card until it's unsuspended in the editor.</string>
|
||||
|
@ -1112,7 +1113,7 @@
|
|||
<normaloff>:/icons/kpersonalizer.png</normaloff>:/icons/kpersonalizer.png</iconset>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<string>&Model Properties...</string>
|
||||
<string>Current &Model...</string>
|
||||
</property>
|
||||
<property name="statusTip" >
|
||||
<string>Customize card layout, fields, etc.</string>
|
||||
|
@ -1288,7 +1289,7 @@
|
|||
<normaloff>:/icons/edit-rename.png</normaloff>:/icons/edit-rename.png</iconset>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<string>&Edit...</string>
|
||||
<string>Edit &Current...</string>
|
||||
</property>
|
||||
<property name="shortcut" >
|
||||
<string>Ctrl+E</string>
|
||||
|
@ -1309,7 +1310,17 @@
|
|||
<normaloff>:/icons/editdelete.png</normaloff>:/icons/editdelete.png</iconset>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<string>&Delete</string>
|
||||
<string>&Delete Card</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="action123" >
|
||||
<property name="text" >
|
||||
<string>123</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="action_Delete_Fact" >
|
||||
<property name="text" >
|
||||
<string>&Delete Fact</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
|
|
Loading…
Reference in a new issue