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

create_ct_column_ui.py

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

# Form implementation generated from reading ui file '/home/kovid/work/calibre/src/calibre/gui2/dialogs/config/create_ct_column.ui'
#
# Created: Sat Apr 10 10:48:02 2010
#      by: PyQt4 UI code generator 4.7.2
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_QCreateCtColumn(object):
    def setupUi(self, QCreateCtColumn):
        QCreateCtColumn.setObjectName("QCreateCtColumn")
        QCreateCtColumn.setWindowModality(QtCore.Qt.ApplicationModal)
        QCreateCtColumn.resize(391, 561)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(QCreateCtColumn.sizePolicy().hasHeightForWidth())
        QCreateCtColumn.setSizePolicy(sizePolicy)
        self.verticalLayoutWidget = QtGui.QWidget(QCreateCtColumn)
        self.verticalLayoutWidget.setGeometry(QtCore.QRect(10, 0, 371, 541))
        self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
        self.gridLayout_2 = QtGui.QGridLayout(self.verticalLayoutWidget)
        self.gridLayout_2.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint)
        self.gridLayout_2.setMargin(5)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.label_2 = QtGui.QLabel(self.verticalLayoutWidget)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1)
        self.label = QtGui.QLabel(self.verticalLayoutWidget)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
        self.tag_name_box = QtGui.QLineEdit(self.verticalLayoutWidget)
        self.tag_name_box.setMinimumSize(QtCore.QSize(20, 0))
        self.tag_name_box.setObjectName("tag_name_box")
        self.gridLayout.addWidget(self.tag_name_box, 0, 1, 1, 1)
        self.column_heading_box = QtGui.QLineEdit(self.verticalLayoutWidget)
        self.column_heading_box.setObjectName("column_heading_box")
        self.gridLayout.addWidget(self.column_heading_box, 1, 1, 1, 1)
        self.label_3 = QtGui.QLabel(self.verticalLayoutWidget)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1)
        self.label_4 = QtGui.QLabel(self.verticalLayoutWidget)
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 4, 0, 1, 1)
        self.label_5 = QtGui.QLabel(self.verticalLayoutWidget)
        self.label_5.setObjectName("label_5")
        self.gridLayout.addWidget(self.label_5, 3, 0, 1, 1)
        self.bracketed_box = QtGui.QComboBox(self.verticalLayoutWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.bracketed_box.sizePolicy().hasHeightForWidth())
        self.bracketed_box.setSizePolicy(sizePolicy)
        self.bracketed_box.setMinimumSize(QtCore.QSize(85, 0))
        self.bracketed_box.setObjectName("bracketed_box")
        self.bracketed_box.addItem("")
        self.bracketed_box.addItem("")
        self.gridLayout.addWidget(self.bracketed_box, 4, 1, 1, 1)
        self.editable_box = QtGui.QComboBox(self.verticalLayoutWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.editable_box.sizePolicy().hasHeightForWidth())
        self.editable_box.setSizePolicy(sizePolicy)
        self.editable_box.setMinimumSize(QtCore.QSize(85, 0))
        self.editable_box.setObjectName("editable_box")
        self.editable_box.addItem("")
        self.editable_box.addItem("")
        self.gridLayout.addWidget(self.editable_box, 3, 1, 1, 1)
        self.column_type_box = QtGui.QComboBox(self.verticalLayoutWidget)
        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.column_type_box.addItem("")
        self.column_type_box.addItem("")
        self.column_type_box.addItem("")
        self.column_type_box.addItem("")
        self.gridLayout.addWidget(self.column_type_box, 2, 1, 1, 1)
        self.gridLayout_2.addLayout(self.gridLayout, 2, 0, 1, 1)
        self.button_box = QtGui.QDialogButtonBox(self.verticalLayoutWidget)
        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.heading_text = QtGui.QLabel(self.verticalLayoutWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.heading_text.sizePolicy().hasHeightForWidth())
        self.heading_text.setSizePolicy(sizePolicy)
        self.heading_text.setMinimumSize(QtCore.QSize(0, 10))
        self.heading_text.setMaximumSize(QtCore.QSize(351, 500))
        self.heading_text.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
        self.heading_text.setWordWrap(True)
        self.heading_text.setObjectName("heading_text")
        self.gridLayout_2.addWidget(self.heading_text, 4, 0, 1, 1)
        self.label_6 = QtGui.QLabel(self.verticalLayoutWidget)
        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.gridLayout_2.setRowStretch(4, 50)

        self.retranslateUi(QCreateCtColumn)
        QtCore.QMetaObject.connectSlotsByName(QCreateCtColumn)
        QCreateCtColumn.setTabOrder(self.tag_name_box, self.column_heading_box)
        QCreateCtColumn.setTabOrder(self.column_heading_box, self.column_type_box)
        QCreateCtColumn.setTabOrder(self.column_type_box, self.editable_box)
        QCreateCtColumn.setTabOrder(self.editable_box, self.bracketed_box)
        QCreateCtColumn.setTabOrder(self.bracketed_box, self.button_box)

    def retranslateUi(self, QCreateCtColumn):
        QCreateCtColumn.setWindowTitle(_("Create Tag-based Column"))
        self.label_2.setText(_("Lookup name"))
        self.label.setText(_("Column heading"))
        self.label_3.setText(_("Column type"))
        self.label_4.setText(_("Use brackets"))
        self.label_5.setText(_("Values can be edited"))
        self.bracketed_box.setItemText(0, _("Yes"))
        self.bracketed_box.setItemText(1, _("No"))
        self.editable_box.setItemText(0, _("Yes"))
        self.editable_box.setItemText(1, _("No"))
        self.column_type_box.setItemText(0, _("Text"))
        self.column_type_box.setItemText(1, _("Number"))
        self.column_type_box.setItemText(2, _("Date"))
        self.column_type_box.setItemText(3, _("Tag on book"))
        self.heading_text.setText(_("Explanation text added in create_ct_column.py"))
        self.label_6.setText(_("Create and edit tag-based columns"))


Generated by  Doxygen 1.6.0   Back to index