home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 January / maximum-cd-2011-01.iso / DiscContents / calibre-0.7.26.msi / file_1352 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-10-31  |  5.6 KB  |  123 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(931, 389)
  18.         self.gridLayout = QtGui.QGridLayout(Form)
  19.         self.gridLayout.setObjectName(_fromUtf8('gridLayout'))
  20.         self.label = QtGui.QLabel(Form)
  21.         self.label.setTextFormat(QtCore.Qt.PlainText)
  22.         self.label.setWordWrap(True)
  23.         self.label.setObjectName(_fromUtf8('label'))
  24.         self.gridLayout.addWidget(self.label, 0, 0, 1, 2)
  25.         self.line = QtGui.QFrame(Form)
  26.         self.line.setFrameShape(QtGui.QFrame.HLine)
  27.         self.line.setFrameShadow(QtGui.QFrame.Sunken)
  28.         self.line.setObjectName(_fromUtf8('line'))
  29.         self.gridLayout.addWidget(self.line, 1, 0, 1, 2)
  30.         self.device_label = QtGui.QLabel(Form)
  31.         self.device_label.setObjectName(_fromUtf8('device_label'))
  32.         self.gridLayout.addWidget(self.device_label, 2, 0, 1, 2)
  33.         self.line1 = QtGui.QFrame(Form)
  34.         self.line1.setFrameShape(QtGui.QFrame.HLine)
  35.         self.line1.setFrameShadow(QtGui.QFrame.Sunken)
  36.         self.line1.setObjectName(_fromUtf8('line1'))
  37.         self.gridLayout.addWidget(self.line1, 3, 0, 1, 2)
  38.         self.gridLayout_2 = QtGui.QGridLayout()
  39.         self.gridLayout_2.setObjectName(_fromUtf8('gridLayout_2'))
  40.         self.label_6 = QtGui.QLabel(Form)
  41.         self.label_6.setAlignment(QtCore.Qt.AlignCenter)
  42.         self.label_6.setObjectName(_fromUtf8('label_6'))
  43.         self.gridLayout_2.addWidget(self.label_6, 0, 1, 1, 1)
  44.         self.label_7 = QtGui.QLabel(Form)
  45.         self.label_7.setAlignment(QtCore.Qt.AlignCenter)
  46.         self.label_7.setObjectName(_fromUtf8('label_7'))
  47.         self.gridLayout_2.addWidget(self.label_7, 0, 2, 1, 1)
  48.         self.label_5 = QtGui.QLabel(Form)
  49.         self.label_5.setObjectName(_fromUtf8('label_5'))
  50.         self.gridLayout_2.addWidget(self.label_5, 1, 0, 1, 1)
  51.         self.new_format = QtGui.QComboBox(Form)
  52.         self.new_format.setObjectName(_fromUtf8('new_format'))
  53.         self.gridLayout_2.addWidget(self.new_format, 1, 1, 1, 1)
  54.         self.new_device = QtGui.QComboBox(Form)
  55.         self.new_device.setObjectName(_fromUtf8('new_device'))
  56.         self.gridLayout_2.addWidget(self.new_device, 1, 2, 1, 1)
  57.         self.label_4 = QtGui.QLabel(Form)
  58.         self.label_4.setObjectName(_fromUtf8('label_4'))
  59.         self.gridLayout_2.addWidget(self.label_4, 2, 0, 1, 1)
  60.         self.edit_format = QtGui.QComboBox(Form)
  61.         self.edit_format.setObjectName(_fromUtf8('edit_format'))
  62.         self.gridLayout_2.addWidget(self.edit_format, 2, 1, 1, 1)
  63.         self.edit_device = QtGui.QComboBox(Form)
  64.         self.edit_device.setObjectName(_fromUtf8('edit_device'))
  65.         self.gridLayout_2.addWidget(self.edit_device, 2, 2, 1, 1)
  66.         self.label_41 = QtGui.QLabel(Form)
  67.         self.label_41.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop)
  68.         self.label_41.setObjectName(_fromUtf8('label_41'))
  69.         self.gridLayout_2.addWidget(self.label_41, 3, 0, 1, 1)
  70.         self.existing_plugboards = QtGui.QListWidget(Form)
  71.         self.existing_plugboards.setSizeIncrement(QtCore.QSize(0, 0))
  72.         self.existing_plugboards.setObjectName(_fromUtf8('existing_plugboards'))
  73.         self.gridLayout_2.addWidget(self.existing_plugboards, 3, 1, 1, 2)
  74.         spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
  75.         self.gridLayout_2.addItem(spacerItem, 4, 0, 1, 1)
  76.         self.gridLayout.addLayout(self.gridLayout_2, 4, 0, 1, 1)
  77.         self.fields_layout = QtGui.QGridLayout()
  78.         self.fields_layout.setObjectName(_fromUtf8('fields_layout'))
  79.         self.label_2 = QtGui.QLabel(Form)
  80.         self.label_2.setAlignment(QtCore.Qt.AlignCenter)
  81.         self.label_2.setObjectName(_fromUtf8('label_2'))
  82.         self.fields_layout.addWidget(self.label_2, 0, 0, 1, 1)
  83.         self.label_3 = QtGui.QLabel(Form)
  84.         self.label_3.setAlignment(QtCore.Qt.AlignCenter)
  85.         self.label_3.setObjectName(_fromUtf8('label_3'))
  86.         self.fields_layout.addWidget(self.label_3, 0, 1, 1, 1)
  87.         spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
  88.         self.fields_layout.addItem(spacerItem1, 21, 0, 1, 1)
  89.         self.horizontalLayout = QtGui.QHBoxLayout()
  90.         self.horizontalLayout.setObjectName(_fromUtf8('horizontalLayout'))
  91.         spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
  92.         self.horizontalLayout.addItem(spacerItem2)
  93.         self.ok_button = QtGui.QPushButton(Form)
  94.         self.ok_button.setObjectName(_fromUtf8('ok_button'))
  95.         self.horizontalLayout.addWidget(self.ok_button)
  96.         spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
  97.         self.horizontalLayout.addItem(spacerItem3)
  98.         self.del_button = QtGui.QPushButton(Form)
  99.         self.del_button.setObjectName(_fromUtf8('del_button'))
  100.         self.horizontalLayout.addWidget(self.del_button)
  101.         spacerItem4 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
  102.         self.horizontalLayout.addItem(spacerItem4)
  103.         self.fields_layout.addLayout(self.horizontalLayout, 19, 0, 1, 1)
  104.         self.gridLayout.addLayout(self.fields_layout, 4, 1, 1, 1)
  105.         self.retranslateUi(Form)
  106.         QtCore.QMetaObject.connectSlotsByName(Form)
  107.  
  108.     
  109.     def retranslateUi(self, Form):
  110.         Form.setWindowTitle(_('Form'))
  111.         self.label.setText(_("Here you can change the metadata calibre uses to update a book when saving to disk or sending to device.\n\nUse this dialog to define a 'plugboard' for a format (or all formats) and a device (or all devices). The plugboard specifies what template is connected to what field. The template is used to compute a value, and that value is assigned to the connected field.\n\nOften templates will contain simple references to composite columns, but this is not necessary. You can use any template in a source box that you can use elsewhere in calibre.\n\nOne possible use for a plugboard is to alter the title to contain series information. Another would be to change the author sort, something that mobi users might do to force it to use the ';' that the kindle requires. A third would be to specify the language."))
  112.         self.label_6.setText(_('Format (choose first)'))
  113.         self.label_7.setText(_('Device (choose second)'))
  114.         self.label_5.setText(_('Add new plugboard'))
  115.         self.label_4.setText(_('Edit existing plugboard'))
  116.         self.label_41.setText(_('Existing plugboards'))
  117.         self.label_2.setText(_('Source template'))
  118.         self.label_3.setText(_('Destination field'))
  119.         self.ok_button.setText(_('Save plugboard'))
  120.         self.del_button.setText(_('Delete plugboard'))
  121.  
  122.  
  123.