Logo Search packages:      
Sourcecode: calibre version File versions  Download package

look_and_feel_ui.py

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

# Form implementation generated from reading ui file '/home/kovid/work/calibre/src/calibre/gui2/convert/look_and_feel.ui'
#
# Created: Mon Oct 26 10:45:05 2009
#      by: PyQt4 UI code generator 4.5.4
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(600, 500)
        self.gridLayout = QtGui.QGridLayout(Form)
        self.gridLayout.setObjectName("gridLayout")
        self.opt_disable_font_rescaling = QtGui.QCheckBox(Form)
        self.opt_disable_font_rescaling.setObjectName("opt_disable_font_rescaling")
        self.gridLayout.addWidget(self.opt_disable_font_rescaling, 0, 0, 1, 2)
        self.label_18 = QtGui.QLabel(Form)
        self.label_18.setObjectName("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(30.0)
        self.opt_base_font_size.setSingleStep(1.0)
        self.opt_base_font_size.setProperty("value", QtCore.QVariant(15.0))
        self.opt_base_font_size.setObjectName("opt_base_font_size")
        self.gridLayout.addWidget(self.opt_base_font_size, 1, 3, 1, 1)
        self.label_2 = QtGui.QLabel(Form)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("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("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(I("wizard.svg")), 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("button_font_key")
        self.horizontalLayout.addWidget(self.button_font_key)
        self.gridLayout.addLayout(self.horizontalLayout, 2, 2, 1, 2)
        self.label = QtGui.QLabel(Form)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 3, 0, 1, 1)
        self.opt_line_height = QtGui.QDoubleSpinBox(Form)
        self.opt_line_height.setDecimals(1)
        self.opt_line_height.setObjectName("opt_line_height")
        self.gridLayout.addWidget(self.opt_line_height, 3, 3, 1, 1)
        self.label_3 = QtGui.QLabel(Form)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 4, 0, 1, 1)
        self.opt_remove_paragraph_spacing = QtGui.QCheckBox(Form)
        self.opt_remove_paragraph_spacing.setObjectName("opt_remove_paragraph_spacing")
        self.gridLayout.addWidget(self.opt_remove_paragraph_spacing, 5, 0, 1, 3)
        self.opt_insert_blank_line = QtGui.QCheckBox(Form)
        self.opt_insert_blank_line.setObjectName("opt_insert_blank_line")
        self.gridLayout.addWidget(self.opt_insert_blank_line, 6, 0, 1, 1)
        self.opt_dont_justify = QtGui.QCheckBox(Form)
        self.opt_dont_justify.setObjectName("opt_dont_justify")
        self.gridLayout.addWidget(self.opt_dont_justify, 7, 0, 1, 1)
        self.opt_linearize_tables = QtGui.QCheckBox(Form)
        self.opt_linearize_tables.setObjectName("opt_linearize_tables")
        self.gridLayout.addWidget(self.opt_linearize_tables, 8, 0, 1, 1)
        self.opt_asciiize = QtGui.QCheckBox(Form)
        self.opt_asciiize.setObjectName("opt_asciiize")
        self.gridLayout.addWidget(self.opt_asciiize, 9, 0, 1, 3)
        self.groupBox = QtGui.QGroupBox(Form)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout_3 = QtGui.QGridLayout(self.groupBox)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.opt_extra_css = QtGui.QTextEdit(self.groupBox)
        self.opt_extra_css.setObjectName("opt_extra_css")
        self.gridLayout_3.addWidget(self.opt_extra_css, 0, 0, 1, 1)
        self.gridLayout.addWidget(self.groupBox, 10, 0, 1, 4)
        self.opt_input_encoding = QtGui.QLineEdit(Form)
        self.opt_input_encoding.setObjectName("opt_input_encoding")
        self.gridLayout.addWidget(self.opt_input_encoding, 4, 2, 1, 2)
        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.retranslateUi(Form)
        QtCore.QObject.connect(self.opt_disable_font_rescaling, QtCore.SIGNAL("toggled(bool)"), self.opt_base_font_size.setDisabled)
        QtCore.QObject.connect(self.opt_disable_font_rescaling, QtCore.SIGNAL("toggled(bool)"), self.opt_font_size_mapping.setDisabled)
        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.opt_insert_blank_line.setText(_("Insert &blank line"))
        self.opt_dont_justify.setText(_("No text &justification"))
        self.opt_linearize_tables.setText(_("&Linearize tables"))
        self.opt_asciiize.setText(_("&Transliterate unicode characters to ASCII."))
        self.groupBox.setTitle(_("Extra &CSS"))




Generated by  Doxygen 1.6.0   Back to index