home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 January / maximum-cd-2011-01.iso / DiscContents / calibre-0.7.26.msi / file_1198 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-10-31  |  1.5 KB  |  32 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. from __future__ import with_statement
  5. __license__ = 'GPL v3'
  6. __copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>'
  7. __docformat__ = 'restructuredtext en'
  8. from calibre.gui2.convert.epub_output_ui import Ui_Form
  9. from calibre.gui2.convert import Widget
  10.  
  11. class PluginWidget(Widget, Ui_Form):
  12.     TITLE = _('EPUB Output')
  13.     HELP = _('Options specific to') + ' EPUB ' + _('output')
  14.     COMMIT_NAME = 'epub_output'
  15.     ICON = I('mimetypes/epub.png')
  16.     
  17.     def __init__(self, parent, get_option, get_help, db = None, book_id = None):
  18.         Widget.__init__(self, parent, [
  19.             'dont_split_on_page_breaks',
  20.             'flow_size',
  21.             'no_default_epub_cover',
  22.             'no_svg_cover',
  23.             'preserve_cover_aspect_ratio'])
  24.         for i in range(2):
  25.             self.opt_no_svg_cover.toggle()
  26.         
  27.         self.db = db
  28.         self.book_id = book_id
  29.         self.initialize_options(get_option, get_help, db, book_id)
  30.  
  31.  
  32.