home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_1243 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-08-06  |  4.7 KB  |  110 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. from PyQt4 import QtCore, QtGui
  5.  
  6. class Ui_QCreateCustomColumn(object):
  7.     
  8.     def setupUi(self, QCreateCustomColumn):
  9.         QCreateCustomColumn.setObjectName('QCreateCustomColumn')
  10.         QCreateCustomColumn.setWindowModality(QtCore.Qt.ApplicationModal)
  11.         QCreateCustomColumn.resize(528, 199)
  12.         sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
  13.         sizePolicy.setHorizontalStretch(0)
  14.         sizePolicy.setVerticalStretch(0)
  15.         sizePolicy.setHeightForWidth(QCreateCustomColumn.sizePolicy().hasHeightForWidth())
  16.         QCreateCustomColumn.setSizePolicy(sizePolicy)
  17.         self.verticalLayout = QtGui.QVBoxLayout(QCreateCustomColumn)
  18.         self.verticalLayout.setObjectName('verticalLayout')
  19.         self.gridLayout_2 = QtGui.QGridLayout()
  20.         self.gridLayout_2.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint)
  21.         self.gridLayout_2.setMargin(5)
  22.         self.gridLayout_2.setObjectName('gridLayout_2')
  23.         self.gridLayout = QtGui.QGridLayout()
  24.         self.gridLayout.setMargin(0)
  25.         self.gridLayout.setObjectName('gridLayout')
  26.         self.label_2 = QtGui.QLabel(QCreateCustomColumn)
  27.         self.label_2.setObjectName('label_2')
  28.         self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1)
  29.         self.label = QtGui.QLabel(QCreateCustomColumn)
  30.         self.label.setObjectName('label')
  31.         self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
  32.         self.column_name_box = QtGui.QLineEdit(QCreateCustomColumn)
  33.         self.column_name_box.setMinimumSize(QtCore.QSize(20, 0))
  34.         self.column_name_box.setObjectName('column_name_box')
  35.         self.gridLayout.addWidget(self.column_name_box, 0, 1, 1, 1)
  36.         self.column_heading_box = QtGui.QLineEdit(QCreateCustomColumn)
  37.         self.column_heading_box.setObjectName('column_heading_box')
  38.         self.gridLayout.addWidget(self.column_heading_box, 1, 1, 1, 1)
  39.         self.label_3 = QtGui.QLabel(QCreateCustomColumn)
  40.         self.label_3.setObjectName('label_3')
  41.         self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1)
  42.         self.column_type_box = QtGui.QComboBox(QCreateCustomColumn)
  43.         sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Fixed)
  44.         sizePolicy.setHorizontalStretch(0)
  45.         sizePolicy.setVerticalStretch(0)
  46.         sizePolicy.setHeightForWidth(self.column_type_box.sizePolicy().hasHeightForWidth())
  47.         self.column_type_box.setSizePolicy(sizePolicy)
  48.         self.column_type_box.setMinimumSize(QtCore.QSize(70, 0))
  49.         self.column_type_box.setObjectName('column_type_box')
  50.         self.gridLayout.addWidget(self.column_type_box, 2, 1, 1, 1)
  51.         self.horizontalLayout_3 = QtGui.QHBoxLayout()
  52.         self.horizontalLayout_3.setObjectName('horizontalLayout_3')
  53.         self.date_format_box = QtGui.QLineEdit(QCreateCustomColumn)
  54.         sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Fixed)
  55.         sizePolicy.setHorizontalStretch(0)
  56.         sizePolicy.setVerticalStretch(0)
  57.         sizePolicy.setHeightForWidth(self.date_format_box.sizePolicy().hasHeightForWidth())
  58.         self.date_format_box.setSizePolicy(sizePolicy)
  59.         self.date_format_box.setObjectName('date_format_box')
  60.         self.horizontalLayout_3.addWidget(self.date_format_box)
  61.         self.date_format_default_label = QtGui.QLabel(QCreateCustomColumn)
  62.         self.date_format_default_label.setObjectName('date_format_default_label')
  63.         self.horizontalLayout_3.addWidget(self.date_format_default_label)
  64.         self.gridLayout.addLayout(self.horizontalLayout_3, 4, 1, 1, 1)
  65.         self.date_format_label = QtGui.QLabel(QCreateCustomColumn)
  66.         self.date_format_label.setObjectName('date_format_label')
  67.         self.gridLayout.addWidget(self.date_format_label, 4, 0, 1, 1)
  68.         self.gridLayout_2.addLayout(self.gridLayout, 2, 0, 1, 1)
  69.         self.button_box = QtGui.QDialogButtonBox(QCreateCustomColumn)
  70.         self.button_box.setOrientation(QtCore.Qt.Horizontal)
  71.         self.button_box.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok)
  72.         self.button_box.setCenterButtons(True)
  73.         self.button_box.setObjectName('button_box')
  74.         self.gridLayout_2.addWidget(self.button_box, 3, 0, 1, 1)
  75.         self.label_6 = QtGui.QLabel(QCreateCustomColumn)
  76.         font = QtGui.QFont()
  77.         font.setWeight(75)
  78.         font.setBold(True)
  79.         self.label_6.setFont(font)
  80.         self.label_6.setObjectName('label_6')
  81.         self.gridLayout_2.addWidget(self.label_6, 1, 0, 1, 1)
  82.         self.verticalLayout.addLayout(self.gridLayout_2)
  83.         self.label_2.setBuddy(self.column_name_box)
  84.         self.label.setBuddy(self.column_heading_box)
  85.         self.label_3.setBuddy(self.column_type_box)
  86.         self.date_format_label.setBuddy(self.date_format_box)
  87.         self.retranslateUi(QCreateCustomColumn)
  88.         QtCore.QMetaObject.connectSlotsByName(QCreateCustomColumn)
  89.         QCreateCustomColumn.setTabOrder(self.column_name_box, self.column_heading_box)
  90.         QCreateCustomColumn.setTabOrder(self.column_heading_box, self.column_type_box)
  91.         QCreateCustomColumn.setTabOrder(self.column_type_box, self.date_format_box)
  92.         QCreateCustomColumn.setTabOrder(self.date_format_box, self.button_box)
  93.  
  94.     
  95.     def retranslateUi(self, QCreateCustomColumn):
  96.         QCreateCustomColumn.setWindowTitle(_('Create or edit custom columns'))
  97.         self.label_2.setText(_('&Lookup name'))
  98.         self.label.setText(_('Column &heading'))
  99.         self.column_name_box.setToolTip(_('Used for searching the column. Must contain only digits and lower case letters.'))
  100.         self.column_heading_box.setToolTip(_('Column heading in the library view and category name in the tag browser'))
  101.         self.label_3.setText(_('Column &type'))
  102.         self.column_type_box.setToolTip(_('What kind of information will be kept in the column.'))
  103.         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> "))
  104.         self.date_format_default_label.setToolTip(_('Use MMM yyyy for month + year, yyyy for year only'))
  105.         self.date_format_default_label.setText(_('Default: dd MMM yyyy.'))
  106.         self.date_format_label.setText(_('Format for &dates'))
  107.         self.label_6.setText(_('Create or edit custom columns'))
  108.  
  109.  
  110.