Logo Search packages:      
Sourcecode: calibre version File versions  Download package

create_custom_column_ui.py

# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file '/home/kovid/work/calibre/src/calibre/gui2/dialogs/config/create_custom_column.ui'
#
# Created: Sun Jun 13 17:05:26 2010
#      by: PyQt4 UI code generator 4.7.3
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_QCreateCustomColumn(object):
    def setupUi(self, QCreateCustomColumn):
        QCreateCustomColumn.setObjectName("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("verticalLayout")
        self.gridLayout_2 = QtGui.QGridLayout()
        self.gridLayout_2.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint)
        self.gridLayout_2.setMargin(5)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setMargin(0)
        self.gridLayout.setObjectName("gridLayout")
        self.label_2 = QtGui.QLabel(QCreateCustomColumn)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1)
        self.label = QtGui.QLabel(QCreateCustomColumn)
        self.label.setObjectName("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("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("column_heading_box")
        self.gridLayout.addWidget(self.column_heading_box, 1, 1, 1, 1)
        self.label_3 = QtGui.QLabel(QCreateCustomColumn)
        self.label_3.setObjectName("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("column_type_box")
        self.gridLayout.addWidget(self.column_type_box, 2, 1, 1, 1)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("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("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("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("date_format_label")
        self.gridLayout.addWidget(self.date_format_label, 4, 0, 1, 1)
        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("button_box")
        self.gridLayout_2.addWidget(self.button_box, 3, 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("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.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.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.label_6.setText(_("Create or edit custom columns"))


Generated by  Doxygen 1.6.0   Back to index