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

# Form implementation generated from reading ui file '/home/kovid/work/calibre/src/calibre/gui2/convert/look_and_feel.ui'
#
# Created: Sat Apr 30 12:56:24 2011
#      by: PyQt4 UI code generator 4.8.3
#
# 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(600, 500)
        self.gridLayout = QtGui.QGridLayout(Form)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.opt_disable_font_rescaling = QtGui.QCheckBox(Form)
        self.opt_disable_font_rescaling.setObjectName(_fromUtf8("opt_disable_font_rescaling"))
        self.gridLayout.addWidget(self.opt_disable_font_rescaling, 0, 0, 1, 1)
        self.label_18 = QtGui.QLabel(Form)
        self.label_18.setObjectName(_fromUtf8("label_18"))
        self.gridLayout.addWidget(self.label_18, 1, 0, 1, 1)
        self.opt_base_font_size = QtGui.QDoubleSpinBox(Form)
        self.opt_base_font_size.setDecimals(1)
        self.opt_base_font_size.setMinimum(0.0)
        self.opt_base_font_size.setMaximum(50.0)
        self.opt_base_font_size.setSingleStep(1.0)
        self.opt_base_font_size.setProperty(_fromUtf8("value"), 15.0)
        self.opt_base_font_size.setObjectName(_fromUtf8("opt_base_font_size"))
        self.gridLayout.addWidget(self.opt_base_font_size, 1, 1, 1, 2)
        self.label_2 = QtGui.QLabel(Form)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.opt_font_size_mapping = QtGui.QLineEdit(Form)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.opt_font_size_mapping.sizePolicy().hasHeightForWidth())
        self.opt_font_size_mapping.setSizePolicy(sizePolicy)
        self.opt_font_size_mapping.setObjectName(_fromUtf8("opt_font_size_mapping"))
        self.horizontalLayout.addWidget(self.opt_font_size_mapping)
        self.button_font_key = QtGui.QToolButton(Form)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8(I("wizard.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.button_font_key.setIcon(icon)
        self.button_font_key.setIconSize(QtCore.QSize(32, 32))
        self.button_font_key.setObjectName(_fromUtf8("button_font_key"))
        self.horizontalLayout.addWidget(self.button_font_key)
        self.gridLayout.addLayout(self.horizontalLayout, 2, 1, 1, 3)
        self.label = QtGui.QLabel(Form)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 4, 0, 1, 1)
        self.opt_line_height = QtGui.QDoubleSpinBox(Form)
        self.opt_line_height.setDecimals(1)
        self.opt_line_height.setObjectName(_fromUtf8("opt_line_height"))
        self.gridLayout.addWidget(self.opt_line_height, 4, 1, 1, 2)
        self.label_3 = QtGui.QLabel(Form)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout.addWidget(self.label_3, 5, 0, 1, 1)
        self.opt_remove_paragraph_spacing = QtGui.QCheckBox(Form)
        self.opt_remove_paragraph_spacing.setObjectName(_fromUtf8("opt_remove_paragraph_spacing"))
        self.gridLayout.addWidget(self.opt_remove_paragraph_spacing, 6, 0, 1, 2)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.label_4 = QtGui.QLabel(Form)
        self.label_4.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.horizontalLayout_2.addWidget(self.label_4)
        self.opt_remove_paragraph_spacing_indent_size = QtGui.QDoubleSpinBox(Form)
        self.opt_remove_paragraph_spacing_indent_size.setDecimals(1)
        self.opt_remove_paragraph_spacing_indent_size.setObjectName(_fromUtf8("opt_remove_paragraph_spacing_indent_size"))
        self.horizontalLayout_2.addWidget(self.opt_remove_paragraph_spacing_indent_size)
        self.gridLayout.addLayout(self.horizontalLayout_2, 6, 2, 1, 2)
        self.label_5 = QtGui.QLabel(Form)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.gridLayout.addWidget(self.label_5, 7, 0, 1, 1)
        self.opt_linearize_tables = QtGui.QCheckBox(Form)
        self.opt_linearize_tables.setObjectName(_fromUtf8("opt_linearize_tables"))
        self.gridLayout.addWidget(self.opt_linearize_tables, 8, 0, 1, 1)
        self.groupBox = QtGui.QGroupBox(Form)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.gridLayout_3 = QtGui.QGridLayout(self.groupBox)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.opt_extra_css = QtGui.QTextEdit(self.groupBox)
        self.opt_extra_css.setObjectName(_fromUtf8("opt_extra_css"))
        self.gridLayout_3.addWidget(self.opt_extra_css, 0, 0, 1, 1)
        self.gridLayout.addWidget(self.groupBox, 11, 0, 1, 4)
        self.opt_change_justification = QtGui.QComboBox(Form)
        self.opt_change_justification.setObjectName(_fromUtf8("opt_change_justification"))
        self.gridLayout.addWidget(self.opt_change_justification, 7, 2, 1, 2)
        self.opt_asciiize = QtGui.QCheckBox(Form)
        self.opt_asciiize.setObjectName(_fromUtf8("opt_asciiize"))
        self.gridLayout.addWidget(self.opt_asciiize, 8, 1, 1, 3)
        self.opt_insert_blank_line = QtGui.QCheckBox(Form)
        self.opt_insert_blank_line.setObjectName(_fromUtf8("opt_insert_blank_line"))
        self.gridLayout.addWidget(self.opt_insert_blank_line, 9, 0, 1, 1)
        self.opt_keep_ligatures = QtGui.QCheckBox(Form)
        self.opt_keep_ligatures.setObjectName(_fromUtf8("opt_keep_ligatures"))
        self.gridLayout.addWidget(self.opt_keep_ligatures, 9, 1, 1, 2)
        self.opt_smarten_punctuation = QtGui.QCheckBox(Form)
        self.opt_smarten_punctuation.setObjectName(_fromUtf8("opt_smarten_punctuation"))
        self.gridLayout.addWidget(self.opt_smarten_punctuation, 10, 0, 1, 1)
        self.label_6 = QtGui.QLabel(Form)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.gridLayout.addWidget(self.label_6, 3, 0, 1, 1)
        self.opt_minimum_line_height = QtGui.QDoubleSpinBox(Form)
        self.opt_minimum_line_height.setDecimals(1)
        self.opt_minimum_line_height.setMaximum(900.0)
        self.opt_minimum_line_height.setObjectName(_fromUtf8("opt_minimum_line_height"))
        self.gridLayout.addWidget(self.opt_minimum_line_height, 3, 1, 1, 2)
        self.opt_input_encoding = EncodingComboBox(Form)
        self.opt_input_encoding.setEditable(True)
        self.opt_input_encoding.setObjectName(_fromUtf8("opt_input_encoding"))
        self.gridLayout.addWidget(self.opt_input_encoding, 5, 1, 1, 3)
        self.label_18.setBuddy(self.opt_base_font_size)
        self.label_2.setBuddy(self.opt_font_size_mapping)
        self.label.setBuddy(self.opt_line_height)
        self.label_3.setBuddy(self.opt_input_encoding)
        self.label_6.setBuddy(self.opt_minimum_line_height)

        self.retranslateUi(Form)
        QtCore.QObject.connect(self.opt_disable_font_rescaling, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.opt_base_font_size.setDisabled)
        QtCore.QObject.connect(self.opt_disable_font_rescaling, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.opt_font_size_mapping.setDisabled)
        QtCore.QObject.connect(self.opt_remove_paragraph_spacing, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.label_4.setEnabled)
        QtCore.QObject.connect(self.opt_remove_paragraph_spacing, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.opt_remove_paragraph_spacing_indent_size.setEnabled)
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        Form.setWindowTitle(_("Form"))
        self.opt_disable_font_rescaling.setText(_("&Disable font size rescaling"))
        self.label_18.setText(_("Base &font size:"))
        self.opt_base_font_size.setSuffix(_(" pt"))
        self.label_2.setText(_("Font size &key:"))
        self.button_font_key.setToolTip(_("Wizard to help you choose an appropriate font size key"))
        self.button_font_key.setText(_("..."))
        self.label.setText(_("Line &height:"))
        self.opt_line_height.setSuffix(_(" pt"))
        self.label_3.setText(_("Input character &encoding:"))
        self.opt_remove_paragraph_spacing.setText(_("Remove &spacing between paragraphs"))
        self.label_4.setText(_("Indent size:"))
        self.opt_remove_paragraph_spacing_indent_size.setToolTip(_("<p>When calibre removes inter paragraph spacing, it automatically sets a paragraph indent, to ensure that paragraphs can be easily distinguished. This option controls the width of that indent."))
        self.opt_remove_paragraph_spacing_indent_size.setSuffix(_(" em"))
        self.label_5.setText(_("Text justification:"))
        self.opt_linearize_tables.setText(_("&Linearize tables"))
        self.groupBox.setTitle(_("Extra &CSS"))
        self.opt_asciiize.setText(_("&Transliterate unicode characters to ASCII"))
        self.opt_insert_blank_line.setText(_("Insert &blank line"))
        self.opt_keep_ligatures.setText(_("Keep &ligatures"))
        self.opt_smarten_punctuation.setText(_("Smarten &punctuation"))
        self.label_6.setText(_("Minimum &line height:"))
        self.opt_minimum_line_height.setSuffix(_(" %"))

from calibre.gui2.widgets import EncodingComboBox


