home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_1182 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-08-06  |  5.8 KB  |  136 lines

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