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),
('use_auto_toc', False, 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):

View File

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

View File

@ -1,7 +1,8 @@
<ui version="4.0" >
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Form</class>
<widget class="QWidget" name="Form" >
<property name="geometry" >
<widget class="QWidget" name="Form">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
@ -9,142 +10,135 @@
<height>500</height>
</rect>
</property>
<property name="windowTitle" >
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout" >
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QGridLayout" name="gridLayout_6" >
<item row="1" column="0" colspan="2" >
<widget class="QLabel" name="label_18" >
<property name="text" >
<layout class="QGridLayout" name="gridLayout_6">
<item row="1" column="0" colspan="2">
<widget class="QLabel" name="label_18">
<property name="text">
<string>Base &amp;font size:</string>
</property>
<property name="buddy" >
<property name="buddy">
<cstring>opt_base_font_size</cstring>
</property>
</widget>
</item>
<item row="1" column="2" >
<widget class="QDoubleSpinBox" name="opt_base_font_size" >
<property name="suffix" >
<item row="1" column="2">
<widget class="QDoubleSpinBox" name="opt_base_font_size">
<property name="suffix">
<string> pt</string>
</property>
<property name="decimals" >
<property name="decimals">
<number>1</number>
</property>
<property name="minimum" >
<property name="minimum">
<double>0.000000000000000</double>
</property>
<property name="maximum" >
<property name="maximum">
<double>30.000000000000000</double>
</property>
<property name="singleStep" >
<property name="singleStep">
<double>1.000000000000000</double>
</property>
<property name="value" >
<property name="value">
<double>15.000000000000000</double>
</property>
</widget>
</item>
<item row="3" column="0" >
<widget class="QLabel" name="label" >
<property name="text" >
<item row="3" column="0" colspan="2">
<widget class="QLabel" name="label">
<property name="text">
<string>Line &amp;height:</string>
</property>
<property name="buddy" >
<property name="buddy">
<cstring>opt_line_height</cstring>
</property>
</widget>
</item>
<item row="3" column="2" >
<widget class="QDoubleSpinBox" name="opt_line_height" >
<property name="suffix" >
<item row="3" column="2">
<widget class="QDoubleSpinBox" name="opt_line_height">
<property name="suffix">
<string> pt</string>
</property>
<property name="decimals" >
<property name="decimals">
<number>1</number>
</property>
</widget>
</item>
<item row="5" column="0" colspan="2" >
<widget class="QCheckBox" name="opt_remove_paragraph_spacing" >
<property name="text" >
<item row="5" column="0" colspan="3">
<widget class="QCheckBox" name="opt_remove_paragraph_spacing">
<property name="text">
<string>Remove &amp;spacing between paragraphs</string>
</property>
</widget>
</item>
<item row="6" column="0" colspan="2" >
<widget class="QCheckBox" name="opt_dont_justify" >
<property name="text" >
<item row="7" column="0" colspan="3">
<widget class="QCheckBox" name="opt_dont_justify">
<property name="text">
<string>No text &amp;justification</string>
</property>
</widget>
</item>
<item row="7" column="0" colspan="2" >
<widget class="QCheckBox" name="opt_linearize_tables" >
<property name="text" >
<item row="8" column="0" colspan="3">
<widget class="QCheckBox" name="opt_linearize_tables">
<property name="text">
<string>&amp;Linearize tables</string>
</property>
</widget>
</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" >
<widget class="QLabel" name="label_2" >
<property name="text" >
<item row="2" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Font size &amp;key:</string>
</property>
<property name="buddy" >
<property name="buddy">
<cstring>opt_font_size_mapping</cstring>
</property>
</widget>
</item>
<item row="2" column="1" colspan="2" >
<widget class="QLineEdit" name="opt_font_size_mapping" />
<item row="2" column="1" colspan="2">
<widget class="QLineEdit" name="opt_font_size_mapping"/>
</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" >
<widget class="QLabel" name="label_3" >
<property name="text" >
<item row="4" column="0" colspan="2">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Input character &amp;encoding</string>
</property>
<property name="buddy" >
<property name="buddy">
<cstring>opt_input_encoding</cstring>
</property>
</widget>
</item>
<item row="4" column="2" >
<widget class="QLineEdit" name="opt_input_encoding" />
<item row="4" column="2">
<widget class="QLineEdit" name="opt_input_encoding"/>
</item>
<item row="0" column="0" >
<widget class="QCheckBox" name="opt_disable_font_rescaling" >
<property name="text" >
<item row="0" column="0" colspan="3">
<widget class="QCheckBox" name="opt_disable_font_rescaling">
<property name="text">
<string>&amp;Disable font size rescaling</string>
</property>
</widget>
</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>
</item>
<item>
<widget class="QGroupBox" name="groupBox" >
<property name="title" >
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>Extra &amp;CSS</string>
</property>
<layout class="QGridLayout" name="gridLayout_3" >
<item row="0" column="0" >
<widget class="QTextEdit" name="opt_extra_css" />
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0">
<widget class="QTextEdit" name="opt_extra_css"/>
</item>
</layout>
</widget>
@ -152,8 +146,8 @@
</layout>
</widget>
<resources>
<include location="../images.qrc" />
<include location="../images.qrc" />
<include location="../images.qrc"/>
<include location="../images.qrc"/>
</resources>
<connections>
<connection>
@ -162,11 +156,11 @@
<receiver>opt_base_font_size</receiver>
<slot>setDisabled(bool)</slot>
<hints>
<hint type="sourcelabel" >
<hint type="sourcelabel">
<x>154</x>
<y>16</y>
</hint>
<hint type="destinationlabel" >
<hint type="destinationlabel">
<x>385</x>
<y>40</y>
</hint>
@ -178,11 +172,11 @@
<receiver>opt_font_size_mapping</receiver>
<slot>setDisabled(bool)</slot>
<hints>
<hint type="sourcelabel" >
<hint type="sourcelabel">
<x>80</x>
<y>20</y>
</hint>
<hint type="destinationlabel" >
<hint type="destinationlabel">
<x>285</x>
<y>72</y>
</hint>