class Ui_ItemEditor(object):
    def setupUi(self, ItemEditor):
        ItemEditor.setObjectName("ItemEditor")
        ItemEditor.resize(536, 584)
        self.verticalLayout_2 = QtGui.QVBoxLayout(ItemEditor)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.formLayout = QtGui.QFormLayout()
        self.formLayout.setObjectName("formLayout")
        self.label = QtGui.QLabel(ItemEditor)
        self.label.setObjectName("label")
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label)
        self.nameEdit = QtGui.QLineEdit(ItemEditor)
        self.nameEdit.setObjectName("nameEdit")
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.nameEdit)
        self.verticalLayout.addLayout(self.formLayout)
        self.verticalLayout_2.addLayout(self.verticalLayout)
        self.fontChooser = KFontChooser(ItemEditor)
        self.fontChooser.setObjectName("fontChooser")
        self.verticalLayout_2.addWidget(self.fontChooser)
        self.formLayout_2 = QtGui.QFormLayout()
        self.formLayout_2.setObjectName("formLayout_2")
        self.label_2 = QtGui.QLabel(ItemEditor)
        self.label_2.setObjectName("label_2")
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_2)
        self.colorButton = KColorButton(ItemEditor)
        self.colorButton.setObjectName("colorButton")
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.FieldRole, self.colorButton)
        self.verticalLayout_2.addLayout(self.formLayout_2)

        self.retranslateUi(ItemEditor)
        QtCore.QMetaObject.connectSlotsByName(ItemEditor)

    def retranslateUi(self, ItemEditor):
        self.label.setText(QtGui.QApplication.translate("ItemEditor", "Item name:", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(QtGui.QApplication.translate("ItemEditor", "Font color:", None, QtGui.QApplication.UnicodeUTF8))
Beispiel #2
0
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(384, 148)
        self.verticalLayout_2 = QtGui.QVBoxLayout(Form)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.groupBox = QtGui.QGroupBox(Form)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.groupBox)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.label_3 = QtGui.QLabel(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        self.label_3.setAlignment(QtCore.Qt.AlignCenter)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.verticalLayout.addWidget(self.label_3)
        self.formLayout_3 = QtGui.QFormLayout()
        self.formLayout_3.setFormAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignTop)
        self.formLayout_3.setObjectName(_fromUtf8("formLayout_3"))
        self.label_13 = QtGui.QLabel(self.groupBox)
        self.label_13.setObjectName(_fromUtf8("label_13"))
        self.formLayout_3.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_13)
        self.activeTaskBackgroundColor = KColorButton(self.groupBox)
        self.activeTaskBackgroundColor.setObjectName(_fromUtf8("activeTaskBackgroundColor"))
        self.formLayout_3.setWidget(0, QtGui.QFormLayout.FieldRole, self.activeTaskBackgroundColor)
        self.label_14 = QtGui.QLabel(self.groupBox)
        self.label_14.setObjectName(_fromUtf8("label_14"))
        self.formLayout_3.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_14)
        self.activeTaskTextColor = KColorButton(self.groupBox)
        self.activeTaskTextColor.setObjectName(_fromUtf8("activeTaskTextColor"))
        self.formLayout_3.setWidget(1, QtGui.QFormLayout.FieldRole, self.activeTaskTextColor)
        self.verticalLayout.addLayout(self.formLayout_3)
        self.horizontalLayout_2.addLayout(self.verticalLayout)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem)
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.label_4 = QtGui.QLabel(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth())
        self.label_4.setSizePolicy(sizePolicy)
        self.label_4.setAlignment(QtCore.Qt.AlignCenter)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.verticalLayout_3.addWidget(self.label_4)
        self.formLayout_4 = QtGui.QFormLayout()
        self.formLayout_4.setFormAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignTop)
        self.formLayout_4.setObjectName(_fromUtf8("formLayout_4"))
        self.label_15 = QtGui.QLabel(self.groupBox)
        self.label_15.setObjectName(_fromUtf8("label_15"))
        self.formLayout_4.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_15)
        self.inactiveTaskBackgroundColor = KColorButton(self.groupBox)
        self.inactiveTaskBackgroundColor.setObjectName(_fromUtf8("inactiveTaskBackgroundColor"))
        self.formLayout_4.setWidget(0, QtGui.QFormLayout.FieldRole, self.inactiveTaskBackgroundColor)
        self.label_16 = QtGui.QLabel(self.groupBox)
        self.label_16.setObjectName(_fromUtf8("label_16"))
        self.formLayout_4.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_16)
        self.inactiveTaskTextColor = KColorButton(self.groupBox)
        self.inactiveTaskTextColor.setObjectName(_fromUtf8("inactiveTaskTextColor"))
        self.formLayout_4.setWidget(1, QtGui.QFormLayout.FieldRole, self.inactiveTaskTextColor)
        self.verticalLayout_3.addLayout(self.formLayout_4)
        self.horizontalLayout_2.addLayout(self.verticalLayout_3)
        self.verticalLayout_2.addWidget(self.groupBox)
        spacerItem1 = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem1)

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        Form.setWindowTitle(QtGui.QApplication.translate("Form", "Form", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox.setTitle(QtGui.QApplication.translate("Form", "Colors", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(QtGui.QApplication.translate("Form", "Active Task", None, QtGui.QApplication.UnicodeUTF8))
        self.label_13.setText(QtGui.QApplication.translate("Form", "Background", None, QtGui.QApplication.UnicodeUTF8))
        self.label_14.setText(QtGui.QApplication.translate("Form", "Text", None, QtGui.QApplication.UnicodeUTF8))
        self.label_4.setText(QtGui.QApplication.translate("Form", "Inactive Task", None, QtGui.QApplication.UnicodeUTF8))
        self.label_15.setText(QtGui.QApplication.translate("Form", "Background", None, QtGui.QApplication.UnicodeUTF8))
        self.label_16.setText(QtGui.QApplication.translate("Form", "Text", None, QtGui.QApplication.UnicodeUTF8))
class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(362, 205)
        self.gridLayoutWidget = QtGui.QWidget(Dialog)
        self.gridLayoutWidget.setGeometry(QtCore.QRect(10, 50, 341, 135))
        self.gridLayoutWidget.setObjectName("gridLayoutWidget")
        self.gridLayout_2 = QtGui.QGridLayout(self.gridLayoutWidget)
        self.gridLayout_2.setSizeConstraint(QtGui.QLayout.SetMinimumSize)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.textColor_button = KColorButton(self.gridLayoutWidget)
        self.textColor_button.setObjectName("textColor_button")
        self.gridLayout_2.addWidget(self.textColor_button, 0, 1, 1, 1)
        self.Dropshadow_label = QtGui.QLabel(self.gridLayoutWidget)
        self.Dropshadow_label.setLayoutDirection(QtCore.Qt.RightToLeft)
        self.Dropshadow_label.setObjectName("Dropshadow_label")
        self.gridLayout_2.addWidget(self.Dropshadow_label, 1, 0, 1, 1)
        self.shadowColor_button = KColorButton(self.gridLayoutWidget)
        self.shadowColor_button.setObjectName("shadowColor_button")
        self.gridLayout_2.addWidget(self.shadowColor_button, 1, 1, 1, 1)
        self.TextColor_label = QtGui.QLabel(self.gridLayoutWidget)
        self.TextColor_label.setLayoutDirection(QtCore.Qt.RightToLeft)
        self.TextColor_label.setTextFormat(QtCore.Qt.AutoText)
        self.TextColor_label.setObjectName("TextColor_label")
        self.gridLayout_2.addWidget(self.TextColor_label, 0, 0, 1, 1)
        self.Logo_checkbox = QtGui.QCheckBox(self.gridLayoutWidget)
        self.Logo_checkbox.setObjectName("Logo_checkbox")
        self.gridLayout_2.addWidget(self.Logo_checkbox, 2, 1, 1, 1)
        self.Background_checkbox = QtGui.QCheckBox(self.gridLayoutWidget)
        self.Background_checkbox.setObjectName("Background_checkbox")
        self.gridLayout_2.addWidget(self.Background_checkbox, 3, 1, 1, 1)
        self.Interval_label = QtGui.QLabel(self.gridLayoutWidget)
        self.Interval_label.setLayoutDirection(QtCore.Qt.RightToLeft)
        self.Interval_label.setObjectName("Interval_label")
        self.gridLayout_2.addWidget(self.Interval_label, 4, 0, 1, 1)
        self.update_SpinBox = KIntSpinBox(self.gridLayoutWidget)
        self.update_SpinBox.setMaximum(120)
        self.update_SpinBox.setProperty("value", 5)
        self.update_SpinBox.setObjectName("update_SpinBox")
        self.gridLayout_2.addWidget(self.update_SpinBox, 4, 1, 1, 1)
        self.Font_combo = QtGui.QFontComboBox(Dialog)
        self.Font_combo.setGeometry(QtCore.QRect(7, 20, 208, 25))
        self.Font_combo.setObjectName("Font_combo")
        self.Italic_button = QtGui.QPushButton(Dialog)
        self.Italic_button.setGeometry(QtCore.QRect(330, 20, 25, 25))
        self.Italic_button.setObjectName("Italic_button")
        self.fontSize_combo = QtGui.QComboBox(Dialog)
        self.fontSize_combo.setGeometry(QtCore.QRect(215, 20, 91, 25))
        self.fontSize_combo.setObjectName("fontSize_combo")
        self.Bold_button = QtGui.QPushButton(Dialog)
        self.Bold_button.setGeometry(QtCore.QRect(305, 20, 25, 25))
        self.Bold_button.setObjectName("Bold_button")

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)

    def retranslateUi(self, Dialog):
        Dialog.setWindowTitle(QtGui.QApplication.translate("Dialog", "Dialog", None, QtGui.QApplication.UnicodeUTF8))
        self.Dropshadow_label.setText(QtGui.QApplication.translate("Dialog", "Dropshadow color", None, QtGui.QApplication.UnicodeUTF8))
        self.TextColor_label.setText(QtGui.QApplication.translate("Dialog", "Text color", None, QtGui.QApplication.UnicodeUTF8))
        self.Logo_checkbox.setText(QtGui.QApplication.translate("Dialog", "Show UFP Flag", None, QtGui.QApplication.UnicodeUTF8))
        self.Background_checkbox.setText(QtGui.QApplication.translate("Dialog", "Show Plasma Background", None, QtGui.QApplication.UnicodeUTF8))
        self.Interval_label.setText(QtGui.QApplication.translate("Dialog", "Update Interval", None, QtGui.QApplication.UnicodeUTF8))
        self.Italic_button.setText(QtGui.QApplication.translate("Dialog", "I", None, QtGui.QApplication.UnicodeUTF8))
        self.Bold_button.setText(QtGui.QApplication.translate("Dialog", "B", None, QtGui.QApplication.UnicodeUTF8))