This commit is contained in:
Kovid Goyal 2019-12-24 14:02:44 +05:30
parent 89ee458377
commit fb7154b67c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 18 additions and 30 deletions

View File

@ -27,10 +27,6 @@ class DebugWidget(Widget, Ui_Form):
self.db, self.book_id = db, book_id self.db, self.book_id = db, book_id
self.initialize_options(get_option, get_help, db, book_id) self.initialize_options(get_option, get_help, db, book_id)
self.button_debug_dir.clicked.connect(self.set_debug_dir) self.button_debug_dir.clicked.connect(self.set_debug_dir)
self.button_clear.clicked.connect(self.clear_debug_dir)
def clear_debug_dir(self):
self.opt_debug_pipeline.setText('')
def set_debug_dir(self): def set_debug_dir(self):
x = choose_dir(self, 'conversion debug dir', _('Choose debug folder')) x = choose_dir(self, 'conversion debug dir', _('Choose debug folder'))

View File

@ -14,24 +14,7 @@
<string>Form</string> <string>Form</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout">
<item row="0" column="0" colspan="3"> <item row="1" column="1">
<widget class="QLabel" name="label">
<property name="text">
<string>Choose a folder to put the debug output into. If you specify a folder, calibre will place a lot of debug output into it. This will be useful in understanding the conversion process and figuring out the correct values for conversion parameters like Table of Contents and Chapter Detection.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLineEdit" name="opt_debug_pipeline">
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QToolButton" name="button_debug_dir"> <widget class="QToolButton" name="button_debug_dir">
<property name="toolTip"> <property name="toolTip">
<string>Choose debug folder</string> <string>Choose debug folder</string>
@ -40,7 +23,7 @@
<string>...</string> <string>...</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../../../work/calibre/resources/images.qrc"> <iconset resource="../../../../resources/images.qrc">
<normaloff>:/images/document_open.png</normaloff>:/images/document_open.png</iconset> <normaloff>:/images/document_open.png</normaloff>:/images/document_open.png</iconset>
</property> </property>
</widget> </widget>
@ -58,14 +41,13 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="1" column="1"> <item row="0" column="0" colspan="2">
<widget class="QToolButton" name="button_clear"> <widget class="QLabel" name="label">
<property name="text"> <property name="text">
<string>...</string> <string>Choose a folder to put the debug output into. If you specify a folder, calibre will place a lot of debug output into it. This will be useful in understanding the conversion process and figuring out the correct values for conversion parameters like Table of Contents and Chapter Detection.</string>
</property> </property>
<property name="icon"> <property name="wordWrap">
<iconset resource="../../../work/calibre/resources/images.qrc"> <bool>true</bool>
<normaloff>:/images/clear_left.png</normaloff>:/images/clear_left.png</iconset>
</property> </property>
</widget> </widget>
</item> </item>
@ -79,10 +61,20 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="0">
<widget class="QLineEdit" name="opt_debug_pipeline">
<property name="readOnly">
<bool>true</bool>
</property>
<property name="clearButtonEnabled">
<bool>true</bool>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
<resources> <resources>
<include location="../../../work/calibre/resources/images.qrc"/> <include location="../../../../resources/images.qrc"/>
</resources> </resources>
<connections/> <connections/>
</ui> </ui>