home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 January / maximum-cd-2011-01.iso / DiscContents / calibre-0.7.26.msi / file_1340 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-10-31  |  6.0 KB  |  142 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_QCreateCustomColumn(object):
  14.     
  15.     def setupUi(self, QCreateCustomColumn):
  16.         QCreateCustomColumn.setObjectName(_fromUtf8('QCreateCustomColumn'))
  17.         QCreateCustomColumn.setWindowModality(QtCore.Qt.ApplicationModal)
  18.         QCreateCustomColumn.resize(528, 199)
  19.         sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
  20.         sizePolicy.setHorizontalStretch(0)
  21.         sizePolicy.setVerticalStretch(0)
  22.         sizePolicy.setHeightForWidth(QCreateCustomColumn.sizePolicy().hasHeightForWidth())
  23.         QCreateCustomColumn.setSizePolicy(sizePolicy)
  24.         self.verticalLayout = QtGui.QVBoxLayout(QCreateCustomColumn)
  25.         self.verticalLayout.setObjectName(_fromUtf8('verticalLayout'))
  26.         self.gridLayout_2 = QtGui.QGridLayout()
  27.         self.gridLayout_2.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint)
  28.         self.gridLayout_2.setMargin(5)
  29.         self.gridLayout_2.setObjectName(_fromUtf8('gridLayout_2'))
  30.         self.gridLayout = QtGui.QGridLayout()
  31.         self.gridLayout.setMargin(0)
  32.         self.gridLayout.setObjectName(_fromUtf8('gridLayout'))
  33.         self.label_2 = QtGui.QLabel(QCreateCustomColumn)
  34.         self.label_2.setObjectName(_fromUtf8('label_2'))
  35.         self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1)
  36.         self.label = QtGui.QLabel(QCreateCustomColumn)
  37.         self.label.setObjectName(_fromUtf8('label'))
  38.         self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
  39.         self.column_name_box = QtGui.QLineEdit(QCreateCustomColumn)
  40.         self.column_name_box.setMinimumSize(QtCore.QSize(20, 0))
  41.         self.column_name_box.setObjectName(_fromUtf8('column_name_box'))
  42.         self.gridLayout.addWidget(self.column_name_box, 0, 1, 1, 1)
  43.         self.column_heading_box = QtGui.QLineEdit(QCreateCustomColumn)
  44.         self.column_heading_box.setObjectName(_fromUtf8('column_heading_box'))
  45.         self.gridLayout.addWidget(self.column_heading_box, 1, 1, 1, 1)
  46.         self.label_3 = QtGui.QLabel(QCreateCustomColumn)
  47.         self.label_3.setObjectName(_fromUtf8('label_3'))
  48.         self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1)
  49.         self.column_type_box = QtGui.QComboBox(QCreateCustomColumn)
  50.         sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Fixed)
  51.         sizePolicy.setHorizontalStretch(0)
  52.         sizePolicy.setVerticalStretch(0)
  53.         sizePolicy.setHeightForWidth(self.column_type_box.sizePolicy().hasHeightForWidth())
  54.         self.column_type_box.setSizePolicy(sizePolicy)
  55.         self.column_type_box.setMinimumSize(QtCore.QSize(70, 0))
  56.         self.column_type_box.setObjectName(_fromUtf8('column_type_box'))
  57.         self.gridLayout.addWidget(self.column_type_box, 2, 1, 1, 1)
  58.         self.horizontalLayout_3 = QtGui.QHBoxLayout()
  59.         self.horizontalLayout_3.setObjectName(_fromUtf8('horizontalLayout_3'))
  60.         self.date_format_box = QtGui.QLineEdit(QCreateCustomColumn)
  61.         sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Fixed)
  62.         sizePolicy.setHorizontalStretch(0)
  63.         sizePolicy.setVerticalStretch(0)
  64.         sizePolicy.setHeightForWidth(self.date_format_box.sizePolicy().hasHeightForWidth())
  65.         self.date_format_box.setSizePolicy(sizePolicy)
  66.         self.date_format_box.setObjectName(_fromUtf8('date_format_box'))
  67.         self.horizontalLayout_3.addWidget(self.date_format_box)
  68.         self.date_format_default_label = QtGui.QLabel(QCreateCustomColumn)
  69.         self.date_format_default_label.setObjectName(_fromUtf8('date_format_default_label'))
  70.         self.horizontalLayout_3.addWidget(self.date_format_default_label)
  71.         self.gridLayout.addLayout(self.horizontalLayout_3, 4, 1, 1, 1)
  72.         self.date_format_label = QtGui.QLabel(QCreateCustomColumn)
  73.         self.date_format_label.setObjectName(_fromUtf8('date_format_label'))
  74.         self.gridLayout.addWidget(self.date_format_label, 4, 0, 1, 1)
  75.         self.horizontalLayout_4 = QtGui.QHBoxLayout()
  76.         self.horizontalLayout_4.setObjectName(_fromUtf8('horizontalLayout_4'))
  77.         self.composite_box = QtGui.QLineEdit(QCreateCustomColumn)
  78.         sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Fixed)
  79.         sizePolicy.setHorizontalStretch(0)
  80.         sizePolicy.setVerticalStretch(0)
  81.         sizePolicy.setHeightForWidth(self.composite_box.sizePolicy().hasHeightForWidth())
  82.         self.composite_box.setSizePolicy(sizePolicy)
  83.         self.composite_box.setObjectName(_fromUtf8('composite_box'))
  84.         self.horizontalLayout_4.addWidget(self.composite_box)
  85.         self.composite_default_label = QtGui.QLabel(QCreateCustomColumn)
  86.         self.composite_default_label.setObjectName(_fromUtf8('composite_default_label'))
  87.         self.horizontalLayout_4.addWidget(self.composite_default_label)
  88.         self.gridLayout.addLayout(self.horizontalLayout_4, 5, 1, 1, 1)
  89.         self.composite_label = QtGui.QLabel(QCreateCustomColumn)
  90.         self.composite_label.setObjectName(_fromUtf8('composite_label'))
  91.         self.gridLayout.addWidget(self.composite_label, 5, 0, 1, 1)
  92.         spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
  93.         self.gridLayout.addItem(spacerItem, 10, 0, 1, 3)
  94.         self.gridLayout_2.addLayout(self.gridLayout, 2, 0, 1, 1)
  95.         self.button_box = QtGui.QDialogButtonBox(QCreateCustomColumn)
  96.         self.button_box.setOrientation(QtCore.Qt.Horizontal)
  97.         self.button_box.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok)
  98.         self.button_box.setCenterButtons(True)
  99.         self.button_box.setObjectName(_fromUtf8('button_box'))
  100.         self.gridLayout_2.addWidget(self.button_box, 11, 0, 1, 1)
  101.         self.label_6 = QtGui.QLabel(QCreateCustomColumn)
  102.         font = QtGui.QFont()
  103.         font.setWeight(75)
  104.         font.setBold(True)
  105.         self.label_6.setFont(font)
  106.         self.label_6.setObjectName(_fromUtf8('label_6'))
  107.         self.gridLayout_2.addWidget(self.label_6, 1, 0, 1, 1)
  108.         self.verticalLayout.addLayout(self.gridLayout_2)
  109.         self.label_2.setBuddy(self.column_name_box)
  110.         self.label.setBuddy(self.column_heading_box)
  111.         self.label_3.setBuddy(self.column_type_box)
  112.         self.date_format_label.setBuddy(self.date_format_box)
  113.         self.composite_label.setBuddy(self.composite_box)
  114.         self.retranslateUi(QCreateCustomColumn)
  115.         QtCore.QMetaObject.connectSlotsByName(QCreateCustomColumn)
  116.         QCreateCustomColumn.setTabOrder(self.column_name_box, self.column_heading_box)
  117.         QCreateCustomColumn.setTabOrder(self.column_heading_box, self.column_type_box)
  118.         QCreateCustomColumn.setTabOrder(self.column_type_box, self.date_format_box)
  119.         QCreateCustomColumn.setTabOrder(self.date_format_box, self.composite_box)
  120.         QCreateCustomColumn.setTabOrder(self.composite_box, self.button_box)
  121.  
  122.     
  123.     def retranslateUi(self, QCreateCustomColumn):
  124.         QCreateCustomColumn.setWindowTitle(_('Create or edit custom columns'))
  125.         self.label_2.setText(_('&Lookup name'))
  126.         self.label.setText(_('Column &heading'))
  127.         self.column_name_box.setToolTip(_('Used for searching the column. Must contain only digits and lower case letters.'))
  128.         self.column_heading_box.setToolTip(_('Column heading in the library view and category name in the tag browser'))
  129.         self.label_3.setText(_('Column &type'))
  130.         self.column_type_box.setToolTip(_('What kind of information will be kept in the column.'))
  131.         self.date_format_box.setToolTip(_("<p>Date format. Use 1-4 'd's for day, 1-4 'M's for month, and 2 or 4 'y's for year.</p>\n<p>For example:\n<ul>\n<li> ddd, d MMM yyyy gives Mon, 5 Jan 2010<li>\n<li>dd MMMM yy gives 05 January 10</li>\n</ul> "))
  132.         self.date_format_default_label.setToolTip(_('Use MMM yyyy for month + year, yyyy for year only'))
  133.         self.date_format_default_label.setText(_('Default: dd MMM yyyy.'))
  134.         self.date_format_label.setText(_('Format for &dates'))
  135.         self.composite_box.setToolTip(_('<p>Field template. Uses the same syntax as save templates.'))
  136.         self.composite_default_label.setToolTip(_('Similar to save templates. For example, {title} {isbn}'))
  137.         self.composite_default_label.setText(_('Default: (nothing)'))
  138.         self.composite_label.setText(_('&Template'))
  139.         self.label_6.setText(_('Create or edit custom columns'))
  140.  
  141.  
  142.