mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
GwR wip tweak_epub
This commit is contained in:
parent
c01cc6c1ff
commit
4416264c02
@ -666,13 +666,17 @@ class ActionCopyToLibrary(InterfaceActionBase):
|
||||
name = 'Copy To Library'
|
||||
actual_plugin = 'calibre.gui2.actions.copy_to_library:CopyToLibraryAction'
|
||||
|
||||
class ActionTweakEpub(InterfaceActionBase):
|
||||
name = 'Tweak ePub'
|
||||
actual_plugin = 'calibre.gui2.actions.tweak_epub:TweakEpubAction'
|
||||
|
||||
plugins += [ActionAdd, ActionFetchAnnotations, ActionGenerateCatalog,
|
||||
ActionConvert, ActionDelete, ActionEditMetadata, ActionView,
|
||||
ActionFetchNews, ActionSaveToDisk, ActionShowBookDetails,
|
||||
ActionRestart, ActionOpenFolder, ActionConnectShare,
|
||||
ActionSendToDevice, ActionHelp, ActionPreferences, ActionSimilarBooks,
|
||||
ActionAddToLibrary, ActionEditCollections, ActionChooseLibrary,
|
||||
ActionCopyToLibrary]
|
||||
ActionCopyToLibrary, ActionTweakEpub]
|
||||
|
||||
# }}}
|
||||
|
||||
|
34
src/calibre/gui2/actions/tweak_epub.py
Executable file
34
src/calibre/gui2/actions/tweak_epub.py
Executable file
@ -0,0 +1,34 @@
|
||||
#!/usr/bin/env python
|
||||
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
|
||||
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
|
||||
__docformat__ = 'restructuredtext en'
|
||||
|
||||
from calibre.gui2.actions import InterfaceAction
|
||||
|
||||
class TweakEpubAction(InterfaceAction):
|
||||
|
||||
name = 'Tweak ePub'
|
||||
action_spec = (_('Edit ePub in situ'), 'document_open.png', None, None)
|
||||
dont_add_to = frozenset(['toolbar-device', 'context-menu-device'])
|
||||
action_type = 'current'
|
||||
|
||||
def genesis(self):
|
||||
self.qaction.triggered.connect(self.edit_epub_in_situ)
|
||||
print "gui2.actions.tweak_epub:TweakEpubAction.genesis()"
|
||||
|
||||
def initialization_complete(self):
|
||||
print "gui2.actions.tweak_epub:TweakEpubAction.initialization_complete()"
|
||||
|
||||
def library_changed(self, db):
|
||||
print "gui2.actions.tweak_epub:TweakEpubAction.library_changed()"
|
||||
|
||||
def location_selected(self, loc):
|
||||
print "gui2.actions.tweak_epub:TweakEpubAction.location_selected()"
|
||||
|
||||
def shutting_down(self):
|
||||
print "gui2.actions.tweak_epub:TweakEpubAction.shutting_down()"
|
||||
|
||||
def edit_epub_in_situ(self, *args):
|
||||
print "gui2.actions.tweak_epub:TweakEpubAction.edit_epub_in_situ()"
|
Loading…
x
Reference in New Issue
Block a user