home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 January / maximum-cd-2011-01.iso / DiscContents / calibre-0.7.26.msi / file_1208 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-10-31  |  6.4 KB  |  147 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. from PyQt4 import QtCore, QtGui
  5.  
  6. try:
  7.     _fromUtf8 = QtCore.QString.fromUtf8
  8. except AttributeError:
  9.     
  10.     _fromUtf8 = lambda s: s
  11.  
  12.  
  13. class Ui_Form(object):
  14.     
  15.     def setupUi(self, Form):
  16.         Form.setObjectName(_fromUtf8('Form'))
  17.         Form.resize(600, 500)
  18.         self.gridLayout = QtGui.QGridLayout(Form)
  19.         self.gridLayout.setObjectName(_fromUtf8('gridLayout'))
  20.         self.opt_disable_font_rescaling = QtGui.QCheckBox(Form)
  21.         self.opt_disable_font_rescaling.setObjectName(_fromUtf8('opt_disable_font_rescaling'))
  22.         self.gridLayout.addWidget(self.opt_disable_font_rescaling, 0, 0, 1, 1)
  23.         self.label_18 = QtGui.QLabel(Form)
  24.         self.label_18.setObjectName(_fromUtf8('label_18'))
  25.         self.gridLayout.addWidget(self.label_18, 1, 0, 1, 1)
  26.         self.opt_base_font_size = QtGui.QDoubleSpinBox(Form)
  27.         self.opt_base_font_size.setDecimals(1)
  28.         self.opt_base_font_size.setMinimum(0)
  29.         self.opt_base_font_size.setMaximum(30)
  30.         self.opt_base_font_size.setSingleStep(1)
  31.         self.opt_base_font_size.setProperty(_fromUtf8('value'), 15)
  32.         self.opt_base_font_size.setObjectName(_fromUtf8('opt_base_font_size'))
  33.         self.gridLayout.addWidget(self.opt_base_font_size, 1, 1, 1, 2)
  34.         self.label_2 = QtGui.QLabel(Form)
  35.         self.label_2.setObjectName(_fromUtf8('label_2'))
  36.         self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1)
  37.         self.horizontalLayout = QtGui.QHBoxLayout()
  38.         self.horizontalLayout.setObjectName(_fromUtf8('horizontalLayout'))
  39.         self.opt_font_size_mapping = QtGui.QLineEdit(Form)
  40.         sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
  41.         sizePolicy.setHorizontalStretch(0)
  42.         sizePolicy.setVerticalStretch(0)
  43.         sizePolicy.setHeightForWidth(self.opt_font_size_mapping.sizePolicy().hasHeightForWidth())
  44.         self.opt_font_size_mapping.setSizePolicy(sizePolicy)
  45.         self.opt_font_size_mapping.setObjectName(_fromUtf8('opt_font_size_mapping'))
  46.         self.horizontalLayout.addWidget(self.opt_font_size_mapping)
  47.         self.button_font_key = QtGui.QToolButton(Form)
  48.         icon = QtGui.QIcon()
  49.         icon.addPixmap(QtGui.QPixmap(_fromUtf8(I('wizard.png'))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  50.         self.button_font_key.setIcon(icon)
  51.         self.button_font_key.setIconSize(QtCore.QSize(32, 32))
  52.         self.button_font_key.setObjectName(_fromUtf8('button_font_key'))
  53.         self.horizontalLayout.addWidget(self.button_font_key)
  54.         self.gridLayout.addLayout(self.horizontalLayout, 2, 1, 1, 3)
  55.         self.label = QtGui.QLabel(Form)
  56.         self.label.setObjectName(_fromUtf8('label'))
  57.         self.gridLayout.addWidget(self.label, 3, 0, 1, 1)
  58.         self.opt_line_height = QtGui.QDoubleSpinBox(Form)
  59.         self.opt_line_height.setDecimals(1)
  60.         self.opt_line_height.setObjectName(_fromUtf8('opt_line_height'))
  61.         self.gridLayout.addWidget(self.opt_line_height, 3, 1, 1, 2)
  62.         self.label_3 = QtGui.QLabel(Form)
  63.         self.label_3.setObjectName(_fromUtf8('label_3'))
  64.         self.gridLayout.addWidget(self.label_3, 4, 0, 1, 1)
  65.         self.opt_input_encoding = QtGui.QLineEdit(Form)
  66.         self.opt_input_encoding.setObjectName(_fromUtf8('opt_input_encoding'))
  67.         self.gridLayout.addWidget(self.opt_input_encoding, 4, 1, 1, 3)
  68.         self.opt_remove_paragraph_spacing = QtGui.QCheckBox(Form)
  69.         self.opt_remove_paragraph_spacing.setObjectName(_fromUtf8('opt_remove_paragraph_spacing'))
  70.         self.gridLayout.addWidget(self.opt_remove_paragraph_spacing, 5, 0, 1, 2)
  71.         self.horizontalLayout_2 = QtGui.QHBoxLayout()
  72.         self.horizontalLayout_2.setObjectName(_fromUtf8('horizontalLayout_2'))
  73.         self.label_4 = QtGui.QLabel(Form)
  74.         self.label_4.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter)
  75.         self.label_4.setObjectName(_fromUtf8('label_4'))
  76.         self.horizontalLayout_2.addWidget(self.label_4)
  77.         self.opt_remove_paragraph_spacing_indent_size = QtGui.QDoubleSpinBox(Form)
  78.         self.opt_remove_paragraph_spacing_indent_size.setDecimals(1)
  79.         self.opt_remove_paragraph_spacing_indent_size.setObjectName(_fromUtf8('opt_remove_paragraph_spacing_indent_size'))
  80.         self.horizontalLayout_2.addWidget(self.opt_remove_paragraph_spacing_indent_size)
  81.         self.gridLayout.addLayout(self.horizontalLayout_2, 5, 2, 1, 2)
  82.         self.label_5 = QtGui.QLabel(Form)
  83.         self.label_5.setObjectName(_fromUtf8('label_5'))
  84.         self.gridLayout.addWidget(self.label_5, 6, 0, 1, 1)
  85.         self.opt_linearize_tables = QtGui.QCheckBox(Form)
  86.         self.opt_linearize_tables.setObjectName(_fromUtf8('opt_linearize_tables'))
  87.         self.gridLayout.addWidget(self.opt_linearize_tables, 7, 0, 1, 1)
  88.         self.groupBox = QtGui.QGroupBox(Form)
  89.         self.groupBox.setObjectName(_fromUtf8('groupBox'))
  90.         self.gridLayout_3 = QtGui.QGridLayout(self.groupBox)
  91.         self.gridLayout_3.setObjectName(_fromUtf8('gridLayout_3'))
  92.         self.opt_extra_css = QtGui.QTextEdit(self.groupBox)
  93.         self.opt_extra_css.setObjectName(_fromUtf8('opt_extra_css'))
  94.         self.gridLayout_3.addWidget(self.opt_extra_css, 0, 0, 1, 1)
  95.         self.gridLayout.addWidget(self.groupBox, 10, 0, 1, 4)
  96.         self.opt_change_justification = QtGui.QComboBox(Form)
  97.         self.opt_change_justification.setObjectName(_fromUtf8('opt_change_justification'))
  98.         self.gridLayout.addWidget(self.opt_change_justification, 6, 2, 1, 2)
  99.         self.opt_asciiize = QtGui.QCheckBox(Form)
  100.         self.opt_asciiize.setObjectName(_fromUtf8('opt_asciiize'))
  101.         self.gridLayout.addWidget(self.opt_asciiize, 7, 1, 1, 3)
  102.         self.opt_insert_blank_line = QtGui.QCheckBox(Form)
  103.         self.opt_insert_blank_line.setObjectName(_fromUtf8('opt_insert_blank_line'))
  104.         self.gridLayout.addWidget(self.opt_insert_blank_line, 8, 0, 1, 1)
  105.         self.opt_keep_ligatures = QtGui.QCheckBox(Form)
  106.         self.opt_keep_ligatures.setObjectName(_fromUtf8('opt_keep_ligatures'))
  107.         self.gridLayout.addWidget(self.opt_keep_ligatures, 8, 1, 1, 2)
  108.         self.opt_smarten_punctuation = QtGui.QCheckBox(Form)
  109.         self.opt_smarten_punctuation.setObjectName(_fromUtf8('opt_smarten_punctuation'))
  110.         self.gridLayout.addWidget(self.opt_smarten_punctuation, 9, 0, 1, 1)
  111.         self.label_18.setBuddy(self.opt_base_font_size)
  112.         self.label_2.setBuddy(self.opt_font_size_mapping)
  113.         self.label.setBuddy(self.opt_line_height)
  114.         self.label_3.setBuddy(self.opt_input_encoding)
  115.         self.retranslateUi(Form)
  116.         QtCore.QObject.connect(self.opt_disable_font_rescaling, QtCore.SIGNAL(_fromUtf8('toggled(bool)')), self.opt_base_font_size.setDisabled)
  117.         QtCore.QObject.connect(self.opt_disable_font_rescaling, QtCore.SIGNAL(_fromUtf8('toggled(bool)')), self.opt_font_size_mapping.setDisabled)
  118.         QtCore.QObject.connect(self.opt_remove_paragraph_spacing, QtCore.SIGNAL(_fromUtf8('toggled(bool)')), self.label_4.setEnabled)
  119.         QtCore.QObject.connect(self.opt_remove_paragraph_spacing, QtCore.SIGNAL(_fromUtf8('toggled(bool)')), self.opt_remove_paragraph_spacing_indent_size.setEnabled)
  120.         QtCore.QMetaObject.connectSlotsByName(Form)
  121.  
  122.     
  123.     def retranslateUi(self, Form):
  124.         Form.setWindowTitle(_('Form'))
  125.         self.opt_disable_font_rescaling.setText(_('&Disable font size rescaling'))
  126.         self.label_18.setText(_('Base &font size:'))
  127.         self.opt_base_font_size.setSuffix(_(' pt'))
  128.         self.label_2.setText(_('Font size &key:'))
  129.         self.button_font_key.setToolTip(_('Wizard to help you choose an appropriate font size key'))
  130.         self.button_font_key.setText(_('...'))
  131.         self.label.setText(_('Line &height:'))
  132.         self.opt_line_height.setSuffix(_(' pt'))
  133.         self.label_3.setText(_('Input character &encoding:'))
  134.         self.opt_remove_paragraph_spacing.setText(_('Remove &spacing between paragraphs'))
  135.         self.label_4.setText(_('Indent size:'))
  136.         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.'))
  137.         self.opt_remove_paragraph_spacing_indent_size.setSuffix(_(' em'))
  138.         self.label_5.setText(_('Text justification:'))
  139.         self.opt_linearize_tables.setText(_('&Linearize tables'))
  140.         self.groupBox.setTitle(_('Extra &CSS'))
  141.         self.opt_asciiize.setText(_('&Transliterate unicode characters to ASCII'))
  142.         self.opt_insert_blank_line.setText(_('Insert &blank line'))
  143.         self.opt_keep_ligatures.setText(_('Keep &ligatures'))
  144.         self.opt_smarten_punctuation.setText(_('Smarten &punctuation'))
  145.  
  146.  
  147.