home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 January / maximum-cd-2011-01.iso / DiscContents / calibre-0.7.26.msi / file_1360 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-10-31  |  3.8 KB  |  76 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(807, 331)
  18.         self.gridLayout = QtGui.QGridLayout(Form)
  19.         self.gridLayout.setObjectName(_fromUtf8('gridLayout'))
  20.         self.label_4 = QtGui.QLabel(Form)
  21.         sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Preferred)
  22.         sizePolicy.setHorizontalStretch(0)
  23.         sizePolicy.setVerticalStretch(0)
  24.         sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth())
  25.         self.label_4.setSizePolicy(sizePolicy)
  26.         self.label_4.setObjectName(_fromUtf8('label_4'))
  27.         self.gridLayout.addWidget(self.label_4, 0, 0, 1, 1)
  28.         self.opt_manage_device_metadata = QtGui.QComboBox(Form)
  29.         sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
  30.         sizePolicy.setHorizontalStretch(0)
  31.         sizePolicy.setVerticalStretch(0)
  32.         sizePolicy.setHeightForWidth(self.opt_manage_device_metadata.sizePolicy().hasHeightForWidth())
  33.         self.opt_manage_device_metadata.setSizePolicy(sizePolicy)
  34.         self.opt_manage_device_metadata.setObjectName(_fromUtf8('opt_manage_device_metadata'))
  35.         self.opt_manage_device_metadata.addItem(_fromUtf8(''))
  36.         self.opt_manage_device_metadata.addItem(_fromUtf8(''))
  37.         self.opt_manage_device_metadata.addItem(_fromUtf8(''))
  38.         self.gridLayout.addWidget(self.opt_manage_device_metadata, 0, 1, 1, 1)
  39.         spacerItem = QtGui.QSpacerItem(457, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
  40.         self.gridLayout.addItem(spacerItem, 0, 2, 1, 1)
  41.         self.label_41 = QtGui.QLabel(Form)
  42.         self.label_41.setWordWrap(True)
  43.         self.label_41.setObjectName(_fromUtf8('label_41'))
  44.         self.gridLayout.addWidget(self.label_41, 1, 0, 1, 3)
  45.         self.label_2 = QtGui.QLabel(Form)
  46.         self.label_2.setObjectName(_fromUtf8('label_2'))
  47.         self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1)
  48.         self.opt_send_timefmt = QtGui.QLineEdit(Form)
  49.         self.opt_send_timefmt.setObjectName(_fromUtf8('opt_send_timefmt'))
  50.         self.gridLayout.addWidget(self.opt_send_timefmt, 2, 1, 1, 1)
  51.         self.label_43 = QtGui.QLabel(Form)
  52.         self.label_43.setWordWrap(True)
  53.         self.label_43.setObjectName(_fromUtf8('label_43'))
  54.         self.gridLayout.addWidget(self.label_43, 3, 0, 1, 3)
  55.         self.send_template = SaveTemplate(Form)
  56.         self.send_template.setObjectName(_fromUtf8('send_template'))
  57.         self.gridLayout.addWidget(self.send_template, 4, 0, 1, 3)
  58.         self.label_4.setBuddy(self.opt_manage_device_metadata)
  59.         self.label_2.setBuddy(self.opt_send_timefmt)
  60.         self.retranslateUi(Form)
  61.         QtCore.QMetaObject.connectSlotsByName(Form)
  62.  
  63.     
  64.     def retranslateUi(self, Form):
  65.         Form.setWindowTitle(_('Form'))
  66.         self.label_4.setText(_('Metadata &management:'))
  67.         self.opt_manage_device_metadata.setItemText(0, _('Manual management'))
  68.         self.opt_manage_device_metadata.setItemText(1, _('Only on send'))
  69.         self.opt_manage_device_metadata.setItemText(2, _('Automatic management'))
  70.         self.label_41.setText(_('<li><b>Manual management</b>: Calibre updates the metadata and adds collections only when a book is sent. With this option, calibre will never remove a collection.</li>\n<li><b>Only on send</b>: Calibre updates metadata and adds/removes collections for a book only when it is sent to the device. </li>\n<li><b>Automatic management</b>: Calibre automatically keeps metadata on the device in sync with the calibre library, on every connect</li></ul>'))
  71.         self.label_2.setText(_('Format &dates as:'))
  72.         self.label_43.setText(_('Here you can control how calibre will save your books when you click the Send to Device button. This setting can be overriden for individual devices by customizing the device interface plugins in Preferences->Advanced->Plugins'))
  73.  
  74.  
  75. from calibre.gui2.preferences.save_template import SaveTemplate
  76.