home *** CD-ROM | disk | FTP | other *** search
Wrap
# Source Generated with Decompyle++ # File: in.pyc (Python 2.6) 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, 1) 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) self.opt_base_font_size.setMaximum(30) self.opt_base_font_size.setSingleStep(1) self.opt_base_font_size.setProperty('value', 15) self.opt_base_font_size.setObjectName('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('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, 1, 1, 3) 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, 1, 1, 2) self.label_3 = QtGui.QLabel(Form) self.label_3.setObjectName('label_3') self.gridLayout.addWidget(self.label_3, 4, 0, 1, 1) self.opt_input_encoding = QtGui.QLineEdit(Form) self.opt_input_encoding.setObjectName('opt_input_encoding') self.gridLayout.addWidget(self.opt_input_encoding, 4, 1, 1, 3) 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, 2) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName('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('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('opt_remove_paragraph_spacing_indent_size') self.horizontalLayout_2.addWidget(self.opt_remove_paragraph_spacing_indent_size) self.gridLayout.addLayout(self.horizontalLayout_2, 5, 2, 1, 2) self.label_5 = QtGui.QLabel(Form) self.label_5.setObjectName('label_5') self.gridLayout.addWidget(self.label_5, 6, 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, 7, 0, 1, 1) 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, 9, 0, 1, 4) self.opt_change_justification = QtGui.QComboBox(Form) self.opt_change_justification.setObjectName('opt_change_justification') self.gridLayout.addWidget(self.opt_change_justification, 6, 2, 1, 2) self.opt_asciiize = QtGui.QCheckBox(Form) self.opt_asciiize.setObjectName('opt_asciiize') self.gridLayout.addWidget(self.opt_asciiize, 7, 1, 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, 8, 0, 1, 1) self.opt_keep_ligatures = QtGui.QCheckBox(Form) self.opt_keep_ligatures.setObjectName('opt_keep_ligatures') self.gridLayout.addWidget(self.opt_keep_ligatures, 8, 1, 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.QObject.connect(self.opt_remove_paragraph_spacing, QtCore.SIGNAL('toggled(bool)'), self.label_4.setEnabled) QtCore.QObject.connect(self.opt_remove_paragraph_spacing, QtCore.SIGNAL('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'))