~ubuntu-branches/ubuntu/karmic/calibre/karmic

« back to all changes in this revision

Viewing changes to src/calibre/gui2/convert/comic_input.py

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-07-30 12:49:41 UTC
  • mto: This revision was merged to the branch mainline in revision 13.
  • Revision ID: james.westby@ubuntu.com-20090730124941-kviipg9ypwgppulc
Tags: upstream-0.6.3+dfsg
ImportĀ upstreamĀ versionĀ 0.6.3+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
 
3
from __future__ import with_statement
 
4
 
 
5
__license__   = 'GPL v3'
 
6
__copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>'
 
7
__docformat__ = 'restructuredtext en'
 
8
 
 
9
 
 
10
from calibre.gui2.convert.comic_input_ui import Ui_Form
 
11
from calibre.gui2.convert import Widget
 
12
 
 
13
class PluginWidget(Widget, Ui_Form):
 
14
 
 
15
    TITLE = _('Comic Input')
 
16
    HELP = _('Options specific to')+' comic '+_('input')
 
17
 
 
18
    def __init__(self, parent, get_option, get_help, db=None, book_id=None):
 
19
        Widget.__init__(self, parent, 'comic_input',
 
20
                ['colors', 'dont_normalize', 'keep_aspect_ratio', 'right2left',
 
21
                    'despeckle', 'no_sort', 'no_process', 'landscape',
 
22
                    'dont_sharpen', 'disable_trim', 'wide']
 
23
                )
 
24
        self.db, self.book_id = db, book_id
 
25
        self.initialize_options(get_option, get_help, db, book_id)
 
26
        self.opt_no_process.toggle()
 
27
        self.opt_no_process.toggle()
 
28
 
 
29