mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Conversion dialog complete (I hope)
This commit is contained in:
parent
9cd8856738
commit
ea9ad56eae
@ -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):
|
||||||
|
@ -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
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
<ui version="4.0" >
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ui version="4.0">
|
||||||
<class>Form</class>
|
<class>Form</class>
|
||||||
<widget class="QWidget" name="Form" >
|
<widget class="QWidget" name="Form">
|
||||||
<property name="geometry" >
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
@ -9,142 +10,135 @@
|
|||||||
<height>500</height>
|
<height>500</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle" >
|
<property name="windowTitle">
|
||||||
<string>Form</string>
|
<string>Form</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout" >
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<item>
|
<item>
|
||||||
<layout class="QGridLayout" name="gridLayout_6" >
|
<layout class="QGridLayout" name="gridLayout_6">
|
||||||
<item row="1" column="0" colspan="2" >
|
<item row="1" column="0" colspan="2">
|
||||||
<widget class="QLabel" name="label_18" >
|
<widget class="QLabel" name="label_18">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>Base &font size:</string>
|
<string>Base &font size:</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy" >
|
<property name="buddy">
|
||||||
<cstring>opt_base_font_size</cstring>
|
<cstring>opt_base_font_size</cstring>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="2" >
|
<item row="1" column="2">
|
||||||
<widget class="QDoubleSpinBox" name="opt_base_font_size" >
|
<widget class="QDoubleSpinBox" name="opt_base_font_size">
|
||||||
<property name="suffix" >
|
<property name="suffix">
|
||||||
<string> pt</string>
|
<string> pt</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="decimals" >
|
<property name="decimals">
|
||||||
<number>1</number>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimum" >
|
<property name="minimum">
|
||||||
<double>0.000000000000000</double>
|
<double>0.000000000000000</double>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximum" >
|
<property name="maximum">
|
||||||
<double>30.000000000000000</double>
|
<double>30.000000000000000</double>
|
||||||
</property>
|
</property>
|
||||||
<property name="singleStep" >
|
<property name="singleStep">
|
||||||
<double>1.000000000000000</double>
|
<double>1.000000000000000</double>
|
||||||
</property>
|
</property>
|
||||||
<property name="value" >
|
<property name="value">
|
||||||
<double>15.000000000000000</double>
|
<double>15.000000000000000</double>
|
||||||
</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 &height:</string>
|
<string>Line &height:</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy" >
|
<property name="buddy">
|
||||||
<cstring>opt_line_height</cstring>
|
<cstring>opt_line_height</cstring>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="2" >
|
<item row="3" column="2">
|
||||||
<widget class="QDoubleSpinBox" name="opt_line_height" >
|
<widget class="QDoubleSpinBox" name="opt_line_height">
|
||||||
<property name="suffix" >
|
<property name="suffix">
|
||||||
<string> pt</string>
|
<string> pt</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="decimals" >
|
<property name="decimals">
|
||||||
<number>1</number>
|
<number>1</number>
|
||||||
</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 &spacing between paragraphs</string>
|
<string>Remove &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 &justification</string>
|
<string>No text &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>&Linearize tables</string>
|
<string>&Linearize tables</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="8" column="0" colspan="2" >
|
<item row="2" column="0">
|
||||||
<widget class="QCheckBox" name="opt_remove_first_image" >
|
<widget class="QLabel" name="label_2">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>Remove &first image from source file</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="0" >
|
|
||||||
<widget class="QLabel" name="label_2" >
|
|
||||||
<property name="text" >
|
|
||||||
<string>Font size &key:</string>
|
<string>Font size &key:</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy" >
|
<property name="buddy">
|
||||||
<cstring>opt_font_size_mapping</cstring>
|
<cstring>opt_font_size_mapping</cstring>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<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" >
|
<item row="4" column="0" colspan="2">
|
||||||
<widget class="QCheckBox" name="opt_insert_metadata" >
|
<widget class="QLabel" name="label_3">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>Insert &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" >
|
|
||||||
<string>Input character &encoding</string>
|
<string>Input character &encoding</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy" >
|
<property name="buddy">
|
||||||
<cstring>opt_input_encoding</cstring>
|
<cstring>opt_input_encoding</cstring>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<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>&Disable font size rescaling</string>
|
<string>&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 &blank line</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="groupBox" >
|
<widget class="QGroupBox" name="groupBox">
|
||||||
<property name="title" >
|
<property name="title">
|
||||||
<string>Extra &CSS</string>
|
<string>Extra &CSS</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_3" >
|
<layout class="QGridLayout" name="gridLayout_3">
|
||||||
<item row="0" column="0" >
|
<item row="0" column="0">
|
||||||
<widget class="QTextEdit" name="opt_extra_css" />
|
<widget class="QTextEdit" name="opt_extra_css"/>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
@ -152,8 +146,8 @@
|
|||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<resources>
|
<resources>
|
||||||
<include location="../images.qrc" />
|
<include location="../images.qrc"/>
|
||||||
<include location="../images.qrc" />
|
<include location="../images.qrc"/>
|
||||||
</resources>
|
</resources>
|
||||||
<connections>
|
<connections>
|
||||||
<connection>
|
<connection>
|
||||||
@ -162,11 +156,11 @@
|
|||||||
<receiver>opt_base_font_size</receiver>
|
<receiver>opt_base_font_size</receiver>
|
||||||
<slot>setDisabled(bool)</slot>
|
<slot>setDisabled(bool)</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel" >
|
<hint type="sourcelabel">
|
||||||
<x>154</x>
|
<x>154</x>
|
||||||
<y>16</y>
|
<y>16</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel" >
|
<hint type="destinationlabel">
|
||||||
<x>385</x>
|
<x>385</x>
|
||||||
<y>40</y>
|
<y>40</y>
|
||||||
</hint>
|
</hint>
|
||||||
@ -178,11 +172,11 @@
|
|||||||
<receiver>opt_font_size_mapping</receiver>
|
<receiver>opt_font_size_mapping</receiver>
|
||||||
<slot>setDisabled(bool)</slot>
|
<slot>setDisabled(bool)</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel" >
|
<hint type="sourcelabel">
|
||||||
<x>80</x>
|
<x>80</x>
|
||||||
<y>20</y>
|
<y>20</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel" >
|
<hint type="destinationlabel">
|
||||||
<x>285</x>
|
<x>285</x>
|
||||||
<y>72</y>
|
<y>72</y>
|
||||||
</hint>
|
</hint>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user