home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 January / maximum-cd-2011-01.iso / DiscContents / calibre-0.7.26.msi / file_1236 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-10-31  |  3.1 KB  |  73 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(436, 382)
  18.         self.gridLayout = QtGui.QGridLayout(Form)
  19.         self.gridLayout.setObjectName(_fromUtf8('gridLayout'))
  20.         self.opt_no_chapters_in_toc = QtGui.QCheckBox(Form)
  21.         self.opt_no_chapters_in_toc.setObjectName(_fromUtf8('opt_no_chapters_in_toc'))
  22.         self.gridLayout.addWidget(self.opt_no_chapters_in_toc, 1, 0, 1, 2)
  23.         self.label_10 = QtGui.QLabel(Form)
  24.         self.label_10.setObjectName(_fromUtf8('label_10'))
  25.         self.gridLayout.addWidget(self.label_10, 2, 0, 1, 1)
  26.         self.opt_max_toc_links = QtGui.QSpinBox(Form)
  27.         self.opt_max_toc_links.setMaximum(10000)
  28.         self.opt_max_toc_links.setObjectName(_fromUtf8('opt_max_toc_links'))
  29.         self.gridLayout.addWidget(self.opt_max_toc_links, 2, 1, 1, 1)
  30.         self.label_16 = QtGui.QLabel(Form)
  31.         self.label_16.setObjectName(_fromUtf8('label_16'))
  32.         self.gridLayout.addWidget(self.label_16, 3, 0, 1, 1)
  33.         self.opt_toc_threshold = QtGui.QSpinBox(Form)
  34.         self.opt_toc_threshold.setObjectName(_fromUtf8('opt_toc_threshold'))
  35.         self.gridLayout.addWidget(self.opt_toc_threshold, 3, 1, 1, 1)
  36.         self.opt_use_auto_toc = QtGui.QCheckBox(Form)
  37.         self.opt_use_auto_toc.setObjectName(_fromUtf8('opt_use_auto_toc'))
  38.         self.gridLayout.addWidget(self.opt_use_auto_toc, 0, 0, 1, 2)
  39.         self.label = QtGui.QLabel(Form)
  40.         self.label.setObjectName(_fromUtf8('label'))
  41.         self.gridLayout.addWidget(self.label, 4, 0, 1, 1)
  42.         self.opt_toc_filter = QtGui.QLineEdit(Form)
  43.         self.opt_toc_filter.setObjectName(_fromUtf8('opt_toc_filter'))
  44.         self.gridLayout.addWidget(self.opt_toc_filter, 4, 1, 1, 1)
  45.         self.opt_level1_toc = XPathEdit(Form)
  46.         self.opt_level1_toc.setObjectName(_fromUtf8('opt_level1_toc'))
  47.         self.gridLayout.addWidget(self.opt_level1_toc, 5, 0, 1, 2)
  48.         self.opt_level2_toc = XPathEdit(Form)
  49.         self.opt_level2_toc.setObjectName(_fromUtf8('opt_level2_toc'))
  50.         self.gridLayout.addWidget(self.opt_level2_toc, 6, 0, 1, 2)
  51.         self.opt_level3_toc = XPathEdit(Form)
  52.         self.opt_level3_toc.setObjectName(_fromUtf8('opt_level3_toc'))
  53.         self.gridLayout.addWidget(self.opt_level3_toc, 7, 0, 1, 2)
  54.         spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
  55.         self.gridLayout.addItem(spacerItem, 8, 0, 1, 1)
  56.         self.label_10.setBuddy(self.opt_max_toc_links)
  57.         self.label_16.setBuddy(self.opt_toc_threshold)
  58.         self.label.setBuddy(self.opt_toc_filter)
  59.         self.retranslateUi(Form)
  60.         QtCore.QMetaObject.connectSlotsByName(Form)
  61.  
  62.     
  63.     def retranslateUi(self, Form):
  64.         Form.setWindowTitle(_('Form'))
  65.         self.opt_no_chapters_in_toc.setText(_('Do not add &detected chapters to the Table of Contents'))
  66.         self.label_10.setText(_('Number of &links to add to Table of Contents'))
  67.         self.label_16.setText(_('Chapter &threshold'))
  68.         self.opt_use_auto_toc.setText(_('&Force use of auto-generated Table of Contents'))
  69.         self.label.setText(_('TOC &Filter:'))
  70.  
  71.  
  72. from calibre.gui2.convert.xpath_wizard import XPathEdit
  73.