home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 January / maximum-cd-2011-01.iso / DiscContents / calibre-0.7.26.msi / file_1350 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-10-31  |  3.0 KB  |  65 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(502, 314)
  18.         self.gridLayout = QtGui.QGridLayout(Form)
  19.         self.gridLayout.setObjectName(_fromUtf8('gridLayout'))
  20.         self.label_5 = QtGui.QLabel(Form)
  21.         self.label_5.setObjectName(_fromUtf8('label_5'))
  22.         self.gridLayout.addWidget(self.label_5, 0, 0, 1, 1)
  23.         self.opt_worker_limit = QtGui.QSpinBox(Form)
  24.         self.opt_worker_limit.setMinimum(2)
  25.         self.opt_worker_limit.setMaximum(10000)
  26.         self.opt_worker_limit.setSingleStep(2)
  27.         self.opt_worker_limit.setObjectName(_fromUtf8('opt_worker_limit'))
  28.         self.gridLayout.addWidget(self.opt_worker_limit, 0, 1, 1, 1)
  29.         self.opt_enforce_cpu_limit = QtGui.QCheckBox(Form)
  30.         self.opt_enforce_cpu_limit.setObjectName(_fromUtf8('opt_enforce_cpu_limit'))
  31.         self.gridLayout.addWidget(self.opt_enforce_cpu_limit, 1, 0, 1, 2)
  32.         spacerItem = QtGui.QSpacerItem(20, 18, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
  33.         self.gridLayout.addItem(spacerItem, 2, 0, 1, 1)
  34.         self.device_detection_button = QtGui.QPushButton(Form)
  35.         self.device_detection_button.setObjectName(_fromUtf8('device_detection_button'))
  36.         self.gridLayout.addWidget(self.device_detection_button, 3, 0, 1, 2)
  37.         spacerItem1 = QtGui.QSpacerItem(20, 19, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
  38.         self.gridLayout.addItem(spacerItem1, 4, 0, 1, 1)
  39.         spacerItem2 = QtGui.QSpacerItem(20, 18, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
  40.         self.gridLayout.addItem(spacerItem2, 6, 0, 1, 1)
  41.         self.button_open_config_dir = QtGui.QPushButton(Form)
  42.         self.button_open_config_dir.setObjectName(_fromUtf8('button_open_config_dir'))
  43.         self.gridLayout.addWidget(self.button_open_config_dir, 7, 0, 1, 2)
  44.         spacerItem3 = QtGui.QSpacerItem(20, 19, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
  45.         self.gridLayout.addItem(spacerItem3, 8, 0, 1, 1)
  46.         self.button_osx_symlinks = QtGui.QPushButton(Form)
  47.         self.button_osx_symlinks.setObjectName(_fromUtf8('button_osx_symlinks'))
  48.         self.gridLayout.addWidget(self.button_osx_symlinks, 9, 0, 1, 2)
  49.         spacerItem4 = QtGui.QSpacerItem(20, 1000, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
  50.         self.gridLayout.addItem(spacerItem4, 20, 0, 1, 1)
  51.         self.label_5.setBuddy(self.opt_worker_limit)
  52.         self.retranslateUi(Form)
  53.         QtCore.QMetaObject.connectSlotsByName(Form)
  54.  
  55.     
  56.     def retranslateUi(self, Form):
  57.         Form.setWindowTitle(_('Form'))
  58.         self.label_5.setText(_('&Maximum number of waiting worker processes (needs restart):'))
  59.         self.opt_enforce_cpu_limit.setText(_('Limit the max. simultaneous jobs to the available CPU &cores'))
  60.         self.device_detection_button.setText(_('Debug &device detection'))
  61.         self.button_open_config_dir.setText(_('Open calibre &configuration directory'))
  62.         self.button_osx_symlinks.setText(_('&Install command line tools'))
  63.  
  64.  
  65.