home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 January / maximum-cd-2011-01.iso / DiscContents / calibre-0.7.26.msi / file_1356 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-10-31  |  2.5 KB  |  50 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(400, 300)
  18.         self.verticalLayout = QtGui.QVBoxLayout(Form)
  19.         self.verticalLayout.setObjectName(_fromUtf8('verticalLayout'))
  20.         self.groupBox = QtGui.QGroupBox(Form)
  21.         self.groupBox.setObjectName(_fromUtf8('groupBox'))
  22.         self.gridLayout_2 = QtGui.QGridLayout(self.groupBox)
  23.         self.gridLayout_2.setObjectName(_fromUtf8('gridLayout_2'))
  24.         self.label_4 = QtGui.QLabel(self.groupBox)
  25.         self.label_4.setWordWrap(True)
  26.         self.label_4.setObjectName(_fromUtf8('label_4'))
  27.         self.gridLayout_2.addWidget(self.label_4, 0, 0, 1, 1)
  28.         self.label_5 = QtGui.QLabel(self.groupBox)
  29.         self.label_5.setObjectName(_fromUtf8('label_5'))
  30.         self.gridLayout_2.addWidget(self.label_5, 2, 0, 1, 1)
  31.         self.template_variables = QtGui.QTextBrowser(self.groupBox)
  32.         self.template_variables.setObjectName(_fromUtf8('template_variables'))
  33.         self.gridLayout_2.addWidget(self.template_variables, 3, 0, 1, 1)
  34.         self.opt_template = HistoryBox(self.groupBox)
  35.         self.opt_template.setObjectName(_fromUtf8('opt_template'))
  36.         self.gridLayout_2.addWidget(self.opt_template, 1, 0, 1, 1)
  37.         self.verticalLayout.addWidget(self.groupBox)
  38.         self.retranslateUi(Form)
  39.         QtCore.QMetaObject.connectSlotsByName(Form)
  40.  
  41.     
  42.     def retranslateUi(self, Form):
  43.         Form.setWindowTitle(_('Form'))
  44.         self.groupBox.setTitle(_('Save &template'))
  45.         self.label_4.setText(_('By adjusting the template below, you can control what folders the files are saved in and what filenames they are given. You can use the / character to indicate sub-folders. Available metadata variables are described below. If a particular book does not have some metadata, the variable will be replaced by the empty string.'))
  46.         self.label_5.setText(_('Available variables:'))
  47.  
  48.  
  49. from calibre.gui2.preferences.history import HistoryBox
  50.