home *** CD-ROM | disk | FTP | other *** search
Wrap
# Source Generated with Decompyle++ # File: in.pyc (Python 2.6) from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: _fromUtf8 = lambda s: s class Ui_QCreateCustomColumn(object): def setupUi(self, QCreateCustomColumn): QCreateCustomColumn.setObjectName(_fromUtf8('QCreateCustomColumn')) QCreateCustomColumn.setWindowModality(QtCore.Qt.ApplicationModal) QCreateCustomColumn.resize(528, 199) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(QCreateCustomColumn.sizePolicy().hasHeightForWidth()) QCreateCustomColumn.setSizePolicy(sizePolicy) self.verticalLayout = QtGui.QVBoxLayout(QCreateCustomColumn) self.verticalLayout.setObjectName(_fromUtf8('verticalLayout')) self.gridLayout_2 = QtGui.QGridLayout() self.gridLayout_2.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint) self.gridLayout_2.setMargin(5) self.gridLayout_2.setObjectName(_fromUtf8('gridLayout_2')) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setMargin(0) self.gridLayout.setObjectName(_fromUtf8('gridLayout')) self.label_2 = QtGui.QLabel(QCreateCustomColumn) self.label_2.setObjectName(_fromUtf8('label_2')) self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1) self.label = QtGui.QLabel(QCreateCustomColumn) self.label.setObjectName(_fromUtf8('label')) self.gridLayout.addWidget(self.label, 1, 0, 1, 1) self.column_name_box = QtGui.QLineEdit(QCreateCustomColumn) self.column_name_box.setMinimumSize(QtCore.QSize(20, 0)) self.column_name_box.setObjectName(_fromUtf8('column_name_box')) self.gridLayout.addWidget(self.column_name_box, 0, 1, 1, 1) self.column_heading_box = QtGui.QLineEdit(QCreateCustomColumn) self.column_heading_box.setObjectName(_fromUtf8('column_heading_box')) self.gridLayout.addWidget(self.column_heading_box, 1, 1, 1, 1) self.label_3 = QtGui.QLabel(QCreateCustomColumn) self.label_3.setObjectName(_fromUtf8('label_3')) self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1) self.column_type_box = QtGui.QComboBox(QCreateCustomColumn) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.column_type_box.sizePolicy().hasHeightForWidth()) self.column_type_box.setSizePolicy(sizePolicy) self.column_type_box.setMinimumSize(QtCore.QSize(70, 0)) self.column_type_box.setObjectName(_fromUtf8('column_type_box')) self.gridLayout.addWidget(self.column_type_box, 2, 1, 1, 1) self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3.setObjectName(_fromUtf8('horizontalLayout_3')) self.date_format_box = QtGui.QLineEdit(QCreateCustomColumn) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.date_format_box.sizePolicy().hasHeightForWidth()) self.date_format_box.setSizePolicy(sizePolicy) self.date_format_box.setObjectName(_fromUtf8('date_format_box')) self.horizontalLayout_3.addWidget(self.date_format_box) self.date_format_default_label = QtGui.QLabel(QCreateCustomColumn) self.date_format_default_label.setObjectName(_fromUtf8('date_format_default_label')) self.horizontalLayout_3.addWidget(self.date_format_default_label) self.gridLayout.addLayout(self.horizontalLayout_3, 4, 1, 1, 1) self.date_format_label = QtGui.QLabel(QCreateCustomColumn) self.date_format_label.setObjectName(_fromUtf8('date_format_label')) self.gridLayout.addWidget(self.date_format_label, 4, 0, 1, 1) self.horizontalLayout_4 = QtGui.QHBoxLayout() self.horizontalLayout_4.setObjectName(_fromUtf8('horizontalLayout_4')) self.composite_box = QtGui.QLineEdit(QCreateCustomColumn) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.composite_box.sizePolicy().hasHeightForWidth()) self.composite_box.setSizePolicy(sizePolicy) self.composite_box.setObjectName(_fromUtf8('composite_box')) self.horizontalLayout_4.addWidget(self.composite_box) self.composite_default_label = QtGui.QLabel(QCreateCustomColumn) self.composite_default_label.setObjectName(_fromUtf8('composite_default_label')) self.horizontalLayout_4.addWidget(self.composite_default_label) self.gridLayout.addLayout(self.horizontalLayout_4, 5, 1, 1, 1) self.composite_label = QtGui.QLabel(QCreateCustomColumn) self.composite_label.setObjectName(_fromUtf8('composite_label')) self.gridLayout.addWidget(self.composite_label, 5, 0, 1, 1) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem, 10, 0, 1, 3) self.gridLayout_2.addLayout(self.gridLayout, 2, 0, 1, 1) self.button_box = QtGui.QDialogButtonBox(QCreateCustomColumn) self.button_box.setOrientation(QtCore.Qt.Horizontal) self.button_box.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.button_box.setCenterButtons(True) self.button_box.setObjectName(_fromUtf8('button_box')) self.gridLayout_2.addWidget(self.button_box, 11, 0, 1, 1) self.label_6 = QtGui.QLabel(QCreateCustomColumn) font = QtGui.QFont() font.setWeight(75) font.setBold(True) self.label_6.setFont(font) self.label_6.setObjectName(_fromUtf8('label_6')) self.gridLayout_2.addWidget(self.label_6, 1, 0, 1, 1) self.verticalLayout.addLayout(self.gridLayout_2) self.label_2.setBuddy(self.column_name_box) self.label.setBuddy(self.column_heading_box) self.label_3.setBuddy(self.column_type_box) self.date_format_label.setBuddy(self.date_format_box) self.composite_label.setBuddy(self.composite_box) self.retranslateUi(QCreateCustomColumn) QtCore.QMetaObject.connectSlotsByName(QCreateCustomColumn) QCreateCustomColumn.setTabOrder(self.column_name_box, self.column_heading_box) QCreateCustomColumn.setTabOrder(self.column_heading_box, self.column_type_box) QCreateCustomColumn.setTabOrder(self.column_type_box, self.date_format_box) QCreateCustomColumn.setTabOrder(self.date_format_box, self.composite_box) QCreateCustomColumn.setTabOrder(self.composite_box, self.button_box) def retranslateUi(self, QCreateCustomColumn): QCreateCustomColumn.setWindowTitle(_('Create or edit custom columns')) self.label_2.setText(_('&Lookup name')) self.label.setText(_('Column &heading')) self.column_name_box.setToolTip(_('Used for searching the column. Must contain only digits and lower case letters.')) self.column_heading_box.setToolTip(_('Column heading in the library view and category name in the tag browser')) self.label_3.setText(_('Column &type')) self.column_type_box.setToolTip(_('What kind of information will be kept in the column.')) 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> ")) self.date_format_default_label.setToolTip(_('Use MMM yyyy for month + year, yyyy for year only')) self.date_format_default_label.setText(_('Default: dd MMM yyyy.')) self.date_format_label.setText(_('Format for &dates')) self.composite_box.setToolTip(_('<p>Field template. Uses the same syntax as save templates.')) self.composite_default_label.setToolTip(_('Similar to save templates. For example, {title} {isbn}')) self.composite_default_label.setText(_('Default: (nothing)')) self.composite_label.setText(_('&Template')) self.label_6.setText(_('Create or edit custom columns'))