home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 January / maximum-cd-2011-01.iso / DiscContents / calibre-0.7.26.msi / file_1194 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-10-31  |  1.6 KB  |  42 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.comic_input_ui import Ui_Form
  9. from calibre.gui2.convert import Widget
  10.  
  11. class PluginWidget(Widget, Ui_Form):
  12.     TITLE = _('Comic Input')
  13.     HELP = _('Options specific to') + ' comic ' + _('input')
  14.     COMMIT_NAME = 'comic_input'
  15.     ICON = I('mimetypes/png.png')
  16.     
  17.     def __init__(self, parent, get_option, get_help, db = None, book_id = None):
  18.         Widget.__init__(self, parent, [
  19.             'colors',
  20.             'dont_normalize',
  21.             'keep_aspect_ratio',
  22.             'right2left',
  23.             'despeckle',
  24.             'no_sort',
  25.             'no_process',
  26.             'landscape',
  27.             'dont_sharpen',
  28.             'disable_trim',
  29.             'wide',
  30.             'output_format',
  31.             'dont_grayscale'])
  32.         self.db = db
  33.         self.book_id = book_id
  34.         for x in get_option('output_format').option.choices:
  35.             self.opt_output_format.addItem(x)
  36.         
  37.         self.initialize_options(get_option, get_help, db, book_id)
  38.         self.opt_no_process.toggle()
  39.         self.opt_no_process.toggle()
  40.  
  41.  
  42.