1# -*- coding: utf-8 -*- 2 3 4__license__ = 'GPL 3' 5__copyright__ = '2010, Li Fanxi <lifanxi@freemindworld.com>' 6__docformat__ = 'restructuredtext en' 7 8from calibre.gui2.convert.snb_output_ui import Ui_Form 9from calibre.gui2.convert import Widget 10from calibre.ebooks.conversion.config import OPTIONS 11 12newline_model = None 13 14 15class PluginWidget(Widget, Ui_Form): 16 17 TITLE = _('SNB output') 18 HELP = _('Options specific to')+' SNB '+_('output') 19 COMMIT_NAME = 'snb_output' 20 ICON = I('mimetypes/snb.png') 21 22 def __init__(self, parent, get_option, get_help, db=None, book_id=None): 23 Widget.__init__(self, parent, OPTIONS['output']['snb']) 24 self.db, self.book_id = db, book_id 25 self.initialize_options(get_option, get_help, db, book_id) 26