Exemple #1
0
    def setupUi(self, GeneralPage):
        GeneralPage.setObjectName("GeneralPage")
        GeneralPage.resize(299, 92)
        self.formLayout = QtGui.QFormLayout(GeneralPage)
        self.formLayout.setObjectName("formLayout")
        self.thumbnalLabel = QtGui.QLabel(GeneralPage)
        self.thumbnalLabel.setObjectName("thumbnalLabel")
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.thumbnalLabel)
        self.kcfg_thumbnailMaxRetrieve = KIntSpinBox(GeneralPage)
        self.kcfg_thumbnailMaxRetrieve.setMinimum(1)
        self.kcfg_thumbnailMaxRetrieve.setMaximum(100)
        self.kcfg_thumbnailMaxRetrieve.setProperty("value", 3)
        self.kcfg_thumbnailMaxRetrieve.setObjectName("kcfg_thumbnailMaxRetrieve")
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.kcfg_thumbnailMaxRetrieve)
        self.columnLabel = QtGui.QLabel(GeneralPage)
        self.columnLabel.setObjectName("columnLabel")
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.columnLabel)
        self.kcfg_displayColumns = KIntSpinBox(GeneralPage)
        self.kcfg_displayColumns.setMinimum(1)
        self.kcfg_displayColumns.setMaximum(100)
        self.kcfg_displayColumns.setObjectName("kcfg_displayColumns")
        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.kcfg_displayColumns)
        self.kcfg_maxAllowedRating = KComboBox(GeneralPage)
        self.kcfg_maxAllowedRating.setObjectName("kcfg_maxAllowedRating")
        self.kcfg_maxAllowedRating.addItem("")
        self.kcfg_maxAllowedRating.addItem("")
        self.kcfg_maxAllowedRating.addItem("")
        self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.kcfg_maxAllowedRating)
        self.ratingLabel = QtGui.QLabel(GeneralPage)
        self.ratingLabel.setObjectName("ratingLabel")
        self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.ratingLabel)

        self.retranslateUi(GeneralPage)
        QtCore.QMetaObject.connectSlotsByName(GeneralPage)
Exemple #2
0
    def __init__(self,
                 orient=Qt.Horizontal,
                 obj=None,
                 factor=5,
                 val_=1,
                 parent=None):
        Plasma.Dialog.__init__(self, parent)
        self.prnt = obj
        self.orient = orient
        self.factor = factor

        self.slider = QSlider()
        self.slider.setOrientation(self.orient)
        self.slider.setValue(val_)
        self.slider.setToolTip('Simple Spacer')
        self.slider.valueChanged.connect(self.resizeSpacer)
        self.multiplier = KIntSpinBox(1, 20, 1, self.factor, self)
        self.multiplier.setToolTip('Multiplier')
        self.multiplier.setMaximumWidth(40)
        self.multiplier.valueChanged.connect(self.multiplierValue)
        self.layout = QGridLayout()
        self.layout.setSpacing(0)
        self.layout.addWidget(self.slider, 0, 0)
        if self.prnt.formFactor() == Plasma.Horizontal:
            self.layout.addWidget(self.multiplier, 0, 1)
        else:
            self.layout.addWidget(self.multiplier, 1, 0)
        self.setLayout(self.layout)
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(400, 300)
        self.verticalLayout = QtGui.QVBoxLayout(Form)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.label = QtGui.QLabel(Form)
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout.addWidget(self.label)
        self.recKeyboardButton = QtGui.QCheckBox(Form)
        self.recKeyboardButton.setObjectName(_fromUtf8("recKeyboardButton"))
        self.verticalLayout.addWidget(self.recKeyboardButton)
        self.recMouseButton = QtGui.QCheckBox(Form)
        self.recMouseButton.setObjectName(_fromUtf8("recMouseButton"))
        self.verticalLayout.addWidget(self.recMouseButton)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label_2 = QtGui.QLabel(Form)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.horizontalLayout.addWidget(self.label_2)
        self.secondsSpinBox = KIntSpinBox(Form)
        self.secondsSpinBox.setProperty("value", 5)
        self.secondsSpinBox.setObjectName(_fromUtf8("secondsSpinBox"))
        self.horizontalLayout.addWidget(self.secondsSpinBox)
        self.label_3 = QtGui.QLabel(Form)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.horizontalLayout.addWidget(self.label_3)
        self.verticalLayout.addLayout(self.horizontalLayout)

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)
    def setupUi(self, FetchDialog):
        FetchDialog.setObjectName(_fromUtf8("FetchDialog"))
        FetchDialog.resize(662, 31)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            FetchDialog.sizePolicy().hasHeightForWidth())
        FetchDialog.setSizePolicy(sizePolicy)
        FetchDialog.setWindowTitle(_fromUtf8(""))
        self.horizontalLayout = QtGui.QHBoxLayout(FetchDialog)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.closeButton = KPushButton(FetchDialog)
        self.closeButton.setFlat(True)
        self.closeButton.setObjectName(_fromUtf8("closeButton"))
        self.horizontalLayout.addWidget(self.closeButton)
        self.ratingLabel = QtGui.QLabel(FetchDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.ratingLabel.sizePolicy().hasHeightForWidth())
        self.ratingLabel.setSizePolicy(sizePolicy)
        self.ratingLabel.setObjectName(_fromUtf8("ratingLabel"))
        self.horizontalLayout.addWidget(self.ratingLabel)
        self.ratingComboBox = KComboBox(FetchDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.ratingComboBox.sizePolicy().hasHeightForWidth())
        self.ratingComboBox.setSizePolicy(sizePolicy)
        self.ratingComboBox.setObjectName(_fromUtf8("ratingComboBox"))
        self.ratingComboBox.addItem(_fromUtf8(""))
        self.ratingComboBox.addItem(_fromUtf8(""))
        self.ratingComboBox.addItem(_fromUtf8(""))
        self.horizontalLayout.addWidget(self.ratingComboBox)
        self.postLabel = QtGui.QLabel(FetchDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.postLabel.sizePolicy().hasHeightForWidth())
        self.postLabel.setSizePolicy(sizePolicy)
        self.postLabel.setObjectName(_fromUtf8("postLabel"))
        self.horizontalLayout.addWidget(self.postLabel)
        self.postSpinBox = KIntSpinBox(FetchDialog)
        self.postSpinBox.setMinimum(1)
        self.postSpinBox.setMaximum(100)
        self.postSpinBox.setObjectName(_fromUtf8("postSpinBox"))
        self.horizontalLayout.addWidget(self.postSpinBox)
        self.tagLabel = QtGui.QLabel(FetchDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tagLabel.sizePolicy().hasHeightForWidth())
        self.tagLabel.setSizePolicy(sizePolicy)
        self.tagLabel.setObjectName(_fromUtf8("tagLabel"))
        self.horizontalLayout.addWidget(self.tagLabel)
        self.tagLineEdit = KLineEdit(FetchDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tagLineEdit.sizePolicy().hasHeightForWidth())
        self.tagLineEdit.setSizePolicy(sizePolicy)
        self.tagLineEdit.setObjectName(_fromUtf8("tagLineEdit"))
        self.horizontalLayout.addWidget(self.tagLineEdit)
        self.downloadButton = KPushButton(FetchDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.downloadButton.sizePolicy().hasHeightForWidth())
        self.downloadButton.setSizePolicy(sizePolicy)
        self.downloadButton.setObjectName(_fromUtf8("downloadButton"))
        self.horizontalLayout.addWidget(self.downloadButton)

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