home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 January / maximum-cd-2011-01.iso / DiscContents / calibre-0.7.26.msi / file_1358 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-10-31  |  3.3 KB  |  77 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(707, 340)
  18.         self.gridLayout = QtGui.QGridLayout(Form)
  19.         self.gridLayout.setObjectName(_fromUtf8('gridLayout'))
  20.         self.label = QtGui.QLabel(Form)
  21.         self.label.setWordWrap(True)
  22.         self.label.setObjectName(_fromUtf8('label'))
  23.         self.gridLayout.addWidget(self.label, 0, 0, 1, 2)
  24.         self.opt_save_cover = QtGui.QCheckBox(Form)
  25.         self.opt_save_cover.setObjectName(_fromUtf8('opt_save_cover'))
  26.         self.gridLayout.addWidget(self.opt_save_cover, 1, 0, 1, 1)
  27.         self.opt_replace_whitespace = QtGui.QCheckBox(Form)
  28.         self.opt_replace_whitespace.setObjectName(_fromUtf8('opt_replace_whitespace'))
  29.         self.gridLayout.addWidget(self.opt_replace_whitespace, 1, 1, 1, 1)
  30.         self.opt_update_metadata = QtGui.QCheckBox(Form)
  31.         self.opt_update_metadata.setObjectName(_fromUtf8('opt_update_metadata'))
  32.         self.gridLayout.addWidget(self.opt_update_metadata, 2, 0, 1, 1)
  33.         self.opt_to_lowercase = QtGui.QCheckBox(Form)
  34.         self.opt_to_lowercase.setObjectName(_fromUtf8('opt_to_lowercase'))
  35.         self.gridLayout.addWidget(self.opt_to_lowercase, 2, 1, 1, 1)
  36.         self.label_2 = QtGui.QLabel(Form)
  37.         self.label_2.setObjectName(_fromUtf8('label_2'))
  38.         self.gridLayout.addWidget(self.label_2, 6, 0, 1, 1)
  39.         self.opt_timefmt = QtGui.QLineEdit(Form)
  40.         self.opt_timefmt.setObjectName(_fromUtf8('opt_timefmt'))
  41.         self.gridLayout.addWidget(self.opt_timefmt, 6, 1, 1, 1)
  42.         self.label_3 = QtGui.QLabel(Form)
  43.         self.label_3.setObjectName(_fromUtf8('label_3'))
  44.         self.gridLayout.addWidget(self.label_3, 7, 0, 1, 1)
  45.         self.opt_formats = QtGui.QLineEdit(Form)
  46.         self.opt_formats.setObjectName(_fromUtf8('opt_formats'))
  47.         self.gridLayout.addWidget(self.opt_formats, 7, 1, 1, 1)
  48.         self.save_template = SaveTemplate(Form)
  49.         self.save_template.setObjectName(_fromUtf8('save_template'))
  50.         self.gridLayout.addWidget(self.save_template, 8, 0, 1, 2)
  51.         self.opt_asciiize = QtGui.QCheckBox(Form)
  52.         self.opt_asciiize.setObjectName(_fromUtf8('opt_asciiize'))
  53.         self.gridLayout.addWidget(self.opt_asciiize, 3, 1, 1, 1)
  54.         self.opt_write_opf = QtGui.QCheckBox(Form)
  55.         self.opt_write_opf.setObjectName(_fromUtf8('opt_write_opf'))
  56.         self.gridLayout.addWidget(self.opt_write_opf, 3, 0, 1, 1)
  57.         self.label_2.setBuddy(self.opt_timefmt)
  58.         self.label_3.setBuddy(self.opt_formats)
  59.         self.retranslateUi(Form)
  60.         QtCore.QMetaObject.connectSlotsByName(Form)
  61.  
  62.     
  63.     def retranslateUi(self, Form):
  64.         Form.setWindowTitle(_('Form'))
  65.         self.label.setText(_('Here you can control how calibre will save your books when you click the Save to Disk button:'))
  66.         self.opt_save_cover.setText(_('Save &cover separately'))
  67.         self.opt_replace_whitespace.setText(_('Replace space with &underscores'))
  68.         self.opt_update_metadata.setText(_('Update &metadata in saved copies'))
  69.         self.opt_to_lowercase.setText(_('Change paths to &lowercase'))
  70.         self.label_2.setText(_('Format &dates as:'))
  71.         self.label_3.setText(_('File &formats to save:'))
  72.         self.opt_asciiize.setText(_('Convert non-English characters to &English equivalents'))
  73.         self.opt_write_opf.setText(_('Save metadata in &OPF file'))
  74.  
  75.  
  76. from calibre.gui2.preferences.save_template import SaveTemplate
  77.