# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file '/work/a/ports/deskutils/calibre/work/calibre/src/calibre/gui2/convert/structure_detection.ui'
#
# Created: Tue Feb  1 01:53:06 2011
#      by: PyQt4 UI code generator 4.8.1
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    _fromUtf8 = lambda s: s

class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(657, 479)
        self.gridLayout = QtGui.QGridLayout(Form)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.opt_chapter = XPathEdit(Form)
        self.opt_chapter.setObjectName(_fromUtf8("opt_chapter"))
        self.gridLayout.addWidget(self.opt_chapter, 0, 1, 1, 2)
        self.label = QtGui.QLabel(Form)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 1, 0, 1, 2)
        self.opt_chapter_mark = QtGui.QComboBox(Form)
        self.opt_chapter_mark.setMinimumContentsLength(20)
        self.opt_chapter_mark.setObjectName(_fromUtf8("opt_chapter_mark"))
        self.gridLayout.addWidget(self.opt_chapter_mark, 1, 2, 1, 1)
        self.opt_remove_first_image = QtGui.QCheckBox(Form)
        self.opt_remove_first_image.setObjectName(_fromUtf8("opt_remove_first_image"))
        self.gridLayout.addWidget(self.opt_remove_first_image, 2, 0, 1, 2)
        self.opt_insert_metadata = QtGui.QCheckBox(Form)
        self.opt_insert_metadata.setObjectName(_fromUtf8("opt_insert_metadata"))
        self.gridLayout.addWidget(self.opt_insert_metadata, 5, 0, 1, 2)
        self.opt_page_breaks_before = XPathEdit(Form)
        self.opt_page_breaks_before.setObjectName(_fromUtf8("opt_page_breaks_before"))
        self.gridLayout.addWidget(self.opt_page_breaks_before, 11, 0, 1, 3)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem, 12, 0, 1, 3)
        self.opt_remove_footer = QtGui.QCheckBox(Form)
        self.opt_remove_footer.setObjectName(_fromUtf8("opt_remove_footer"))
        self.gridLayout.addWidget(self.opt_remove_footer, 8, 0, 1, 2)
        self.opt_remove_header = QtGui.QCheckBox(Form)
        self.opt_remove_header.setObjectName(_fromUtf8("opt_remove_header"))
        self.gridLayout.addWidget(self.opt_remove_header, 6, 0, 1, 2)
        self.opt_header_regex = RegexEdit(Form)
        self.opt_header_regex.setObjectName(_fromUtf8("opt_header_regex"))
        self.gridLayout.addWidget(self.opt_header_regex, 7, 0, 1, 3)
        self.opt_footer_regex = RegexEdit(Form)
        self.opt_footer_regex.setObjectName(_fromUtf8("opt_footer_regex"))
        self.gridLayout.addWidget(self.opt_footer_regex, 9, 0, 1, 3)
        self.huf_label = QtGui.QLabel(Form)
        self.huf_label.setObjectName(_fromUtf8("huf_label"))
        self.gridLayout.addWidget(self.huf_label, 4, 1, 1, 1)
        self.opt_html_unwrap_factor = QtGui.QDoubleSpinBox(Form)
        self.opt_html_unwrap_factor.setToolTip(_fromUtf8(""))
        self.opt_html_unwrap_factor.setMaximum(1.0)
        self.opt_html_unwrap_factor.setSingleStep(0.05)
        self.opt_html_unwrap_factor.setProperty(_fromUtf8("value"), 0.4)
        self.opt_html_unwrap_factor.setObjectName(_fromUtf8("opt_html_unwrap_factor"))
        self.gridLayout.addWidget(self.opt_html_unwrap_factor, 4, 2, 1, 1)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem1, 4, 0, 1, 1)
        self.opt_preprocess_html = QtGui.QCheckBox(Form)
        self.opt_preprocess_html.setObjectName(_fromUtf8("opt_preprocess_html"))
        self.gridLayout.addWidget(self.opt_preprocess_html, 3, 0, 1, 2)
        self.label.setBuddy(self.opt_chapter_mark)
        self.huf_label.setBuddy(self.opt_html_unwrap_factor)

        self.retranslateUi(Form)
        QtCore.QObject.connect(self.opt_preprocess_html, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.opt_html_unwrap_factor.setEnabled)
        QtCore.QObject.connect(self.opt_preprocess_html, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.huf_label.setEnabled)
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        Form.setWindowTitle(_("Form"))
        self.label.setText(_("Chapter &mark:"))
        self.opt_remove_first_image.setText(_("Remove first &image"))
        self.opt_insert_metadata.setText(_("Insert &metadata as page at start of book"))
        self.opt_remove_footer.setText(_("Remove F&ooter"))
        self.opt_remove_header.setText(_("Remove H&eader"))
        self.huf_label.setText(_("Line &un-wrap factor during preprocess:"))
        self.opt_preprocess_html.setText(_("&Preprocess input file to possibly improve structure detection"))

from regex_builder import RegexEdit
from calibre.gui2.convert.xpath_wizard import XPathEdit
