Conversion dialog complete (I hope)

This commit is contained in:
Kovid Goyal 2009-05-07 22:59:56 -07:00
parent 9cd8856738
commit ea9ad56eae
3 changed files with 74 additions and 78 deletions

View File

@ -305,6 +305,8 @@ class ComicInput(InputFormatPlugin):
('page_breaks_brefore', None, OptionRecommendation.HIGH), ('page_breaks_brefore', None, OptionRecommendation.HIGH),
('use_auto_toc', False, OptionRecommendation.HIGH), ('use_auto_toc', False, OptionRecommendation.HIGH),
('page_breaks_before', None, OptionRecommendation.HIGH), ('page_breaks_before', None, OptionRecommendation.HIGH),
('disable_font_rescaling', True, OptionRecommendation.HIGH),
('linearize_tables', False, OptionRecommendation.HIGH),
]) ])
def get_comics_from_collection(self, stream): def get_comics_from_collection(self, stream):

View File

@ -19,9 +19,9 @@ class LookAndFeelWidget(Widget, Ui_Form):
def __init__(self, parent, get_option, get_help, db=None, book_id=None): def __init__(self, parent, get_option, get_help, db=None, book_id=None):
Widget.__init__(self, parent, 'look_and_feel', Widget.__init__(self, parent, 'look_and_feel',
['dont_justify', 'extra_css', 'base_font_size', ['dont_justify', 'extra_css', 'base_font_size',
'font_size_mapping', 'insert_metadata', 'line_height', 'font_size_mapping', 'line_height',
'linearize_tables', 'remove_first_image', 'linearize_tables',
'disable_font_rescaling', 'disable_font_rescaling', 'insert_blank_line',
'remove_paragraph_spacing', 'input_encoding'] 'remove_paragraph_spacing', 'input_encoding']
) )
self.db, self.book_id = db, book_id self.db, self.book_id = db, book_id

View File

@ -1,3 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0"> <ui version="4.0">
<class>Form</class> <class>Form</class>
<widget class="QWidget" name="Form"> <widget class="QWidget" name="Form">
@ -47,7 +48,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="0" > <item row="3" column="0" colspan="2">
<widget class="QLabel" name="label"> <widget class="QLabel" name="label">
<property name="text"> <property name="text">
<string>Line &amp;height:</string> <string>Line &amp;height:</string>
@ -67,34 +68,27 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="0" colspan="2" > <item row="5" column="0" colspan="3">
<widget class="QCheckBox" name="opt_remove_paragraph_spacing"> <widget class="QCheckBox" name="opt_remove_paragraph_spacing">
<property name="text"> <property name="text">
<string>Remove &amp;spacing between paragraphs</string> <string>Remove &amp;spacing between paragraphs</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="6" column="0" colspan="2" > <item row="7" column="0" colspan="3">
<widget class="QCheckBox" name="opt_dont_justify"> <widget class="QCheckBox" name="opt_dont_justify">
<property name="text"> <property name="text">
<string>No text &amp;justification</string> <string>No text &amp;justification</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="7" column="0" colspan="2" > <item row="8" column="0" colspan="3">
<widget class="QCheckBox" name="opt_linearize_tables"> <widget class="QCheckBox" name="opt_linearize_tables">
<property name="text"> <property name="text">
<string>&amp;Linearize tables</string> <string>&amp;Linearize tables</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="8" column="0" colspan="2" >
<widget class="QCheckBox" name="opt_remove_first_image" >
<property name="text" >
<string>Remove &amp;first image from source file</string>
</property>
</widget>
</item>
<item row="2" column="0"> <item row="2" column="0">
<widget class="QLabel" name="label_2"> <widget class="QLabel" name="label_2">
<property name="text"> <property name="text">
@ -108,13 +102,6 @@
<item row="2" column="1" colspan="2"> <item row="2" column="1" colspan="2">
<widget class="QLineEdit" name="opt_font_size_mapping"/> <widget class="QLineEdit" name="opt_font_size_mapping"/>
</item> </item>
<item row="9" column="0" colspan="2" >
<widget class="QCheckBox" name="opt_insert_metadata" >
<property name="text" >
<string>Insert &amp;metadata at start of book</string>
</property>
</widget>
</item>
<item row="4" column="0" colspan="2"> <item row="4" column="0" colspan="2">
<widget class="QLabel" name="label_3"> <widget class="QLabel" name="label_3">
<property name="text"> <property name="text">
@ -128,13 +115,20 @@
<item row="4" column="2"> <item row="4" column="2">
<widget class="QLineEdit" name="opt_input_encoding"/> <widget class="QLineEdit" name="opt_input_encoding"/>
</item> </item>
<item row="0" column="0" > <item row="0" column="0" colspan="3">
<widget class="QCheckBox" name="opt_disable_font_rescaling"> <widget class="QCheckBox" name="opt_disable_font_rescaling">
<property name="text"> <property name="text">
<string>&amp;Disable font size rescaling</string> <string>&amp;Disable font size rescaling</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="6" column="0" colspan="3">
<widget class="QCheckBox" name="opt_insert_blank_line">
<property name="text">
<string>Insert &amp;blank line</string>
</property>
</widget>
</item>
</layout> </layout>
</item> </item>
<item> <item>