mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
0e75e393d5
commit
e7c2d9fbc3
@ -67,7 +67,10 @@ class InterfaceAction(QObject):
|
||||
|
||||
#: Of the form: (text, icon_path, tooltip, keyboard shortcut)
|
||||
#: icon, tooltip and keyboard shortcut can be None
|
||||
#: shortcut must be a translated string if not None
|
||||
#: shortcut must be a string, None or tuple of shortcuts.
|
||||
#: If None, a keyboard shortcut corresponding to the action is not
|
||||
#: registered. If you pass an empty tuple, then the shortcut is registered
|
||||
#: with no default key binding.
|
||||
action_spec = ('text', 'icon', None, None)
|
||||
|
||||
#: If True, a menu is automatically created and added to self.qaction
|
||||
|
@ -11,7 +11,8 @@ class AddToLibraryAction(InterfaceAction):
|
||||
|
||||
name = 'Add To Library'
|
||||
action_spec = (_('Add books to library'), 'add_book.png',
|
||||
_('Add books to your calibre library from the connected device'), None)
|
||||
_('Add books to your calibre library from the connected device'),
|
||||
())
|
||||
dont_add_to = frozenset(['menubar', 'toolbar', 'context-menu', 'toolbar-child'])
|
||||
action_type = 'current'
|
||||
|
||||
|
@ -17,7 +17,7 @@ from calibre.gui2.actions import InterfaceAction
|
||||
class FetchAnnotationsAction(InterfaceAction):
|
||||
|
||||
name = 'Fetch Annotations'
|
||||
action_spec = (_('Fetch annotations (experimental)'), None, None, None)
|
||||
action_spec = (_('Fetch annotations (experimental)'), None, None, ())
|
||||
dont_add_to = frozenset(['menubar', 'toolbar', 'context-menu', 'toolbar-child'])
|
||||
action_type = 'current'
|
||||
|
||||
|
@ -17,7 +17,7 @@ from calibre.gui2.actions import InterfaceAction
|
||||
class GenerateCatalogAction(InterfaceAction):
|
||||
|
||||
name = 'Generate Catalog'
|
||||
action_spec = (_('Create catalog'), 'catalog.png', 'Catalog builder', None)
|
||||
action_spec = (_('Create catalog'), 'catalog.png', 'Catalog builder', ())
|
||||
dont_add_to = frozenset(['menubar-device', 'toolbar-device', 'context-menu-device'])
|
||||
|
||||
def genesis(self):
|
||||
|
@ -11,7 +11,7 @@ class EditCollectionsAction(InterfaceAction):
|
||||
|
||||
name = 'Edit Collections'
|
||||
action_spec = (_('Manage collections'), None,
|
||||
_('Manage the collections on this device'), None)
|
||||
_('Manage the collections on this device'), ())
|
||||
dont_add_to = frozenset(['menubar', 'toolbar', 'context-menu', 'toolbar-child'])
|
||||
action_type = 'current'
|
||||
|
||||
|
@ -15,7 +15,7 @@ from calibre.gui2.dialogs.plugin_updater import (PluginUpdaterDialog,
|
||||
class PluginUpdaterAction(InterfaceAction):
|
||||
|
||||
name = 'Plugin Updater'
|
||||
action_spec = (_('Plugin Updater'), None, None, None)
|
||||
action_spec = (_('Plugin Updater'), None, None, ())
|
||||
action_type = 'current'
|
||||
|
||||
def genesis(self):
|
||||
|
@ -14,7 +14,8 @@ from calibre.gui2.actions import InterfaceAction
|
||||
class PickRandomAction(InterfaceAction):
|
||||
|
||||
name = 'Pick Random Book'
|
||||
action_spec = (_('Pick a random book'), 'random.png', 'Catalog builder', None)
|
||||
action_spec = (_('Pick a random book'), 'random.png',
|
||||
'Select a random book from your calibre library', ())
|
||||
dont_add_to = frozenset(['menubar-device', 'toolbar-device', 'context-menu-device'])
|
||||
|
||||
def genesis(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user