Exemplo n.º 1
0
class Ui_GeneralPage(object):
    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)

    def retranslateUi(self, GeneralPage):
        self.thumbnalLabel.setText(kdecore.i18n("Default number of thumbnails to retrieve"))
        self.columnLabel.setText(kdecore.i18n("Number of columns to display"))
        self.kcfg_maxAllowedRating.setItemText(0, kdecore.i18n("Safe"))
        self.kcfg_maxAllowedRating.setItemText(1, kdecore.i18n("Questionable"))
        self.kcfg_maxAllowedRating.setItemText(2, kdecore.i18n("Explicit"))
        self.ratingLabel.setText(kdecore.i18n("Maximum allowed rating"))
Exemplo n.º 2
0
class Ui_FetchDialog(object):
    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)

    def retranslateUi(self, FetchDialog):
        self.ratingLabel.setText(kdecore.i18n(_fromUtf8("Maximum rating: ")))
        self.ratingComboBox.setItemText(0, kdecore.i18n(_fromUtf8("Safe")))
        self.ratingComboBox.setItemText(1, kdecore.i18n(_fromUtf8("Questionable")))
        self.ratingComboBox.setItemText(2, kdecore.i18n(_fromUtf8("Explicit")))
        self.postLabel.setText(kdecore.i18n(_fromUtf8("Posts to retrieve:")))
        self.postSpinBox.setToolTip(kdecore.i18n(_fromUtf8("Number of posts to retrieve (max 100)")))
        self.postSpinBox.setWhatsThis(
            kdecore.i18n(
                _fromUtf8(
                    "The number of posts to retrieve. Notice that Danbooru limits the maximum number of posts to 100."
                )
            )
        )
        self.tagLabel.setText(kdecore.i18n(_fromUtf8("Tags:")))
        self.tagLineEdit.setToolTip(kdecore.i18n(_fromUtf8("Tags to include in search (optional)")))
        self.tagLineEdit.setWhatsThis(
            kdecore.i18n(
                _fromUtf8(
                    "Input here the tags that should be used when looking for posts. Separate them with commas, without spaces."
                )
            )
        )
        self.tagLineEdit.setClickMessage(kdecore.i18n(_fromUtf8("Tags, comma separated")))
        self.downloadButton.setText(kdecore.i18n(_fromUtf8("Download")))
Exemplo n.º 3
0
class Ui_VideoWidget(object):
    def setupUi(self, VideoWidget):
        VideoWidget.setObjectName(_fromUtf8("VideoWidget"))
        VideoWidget.resize(448, 554)
        VideoWidget.setWindowTitle(_fromUtf8(""))
        self.verticalLayout_2 = QtGui.QVBoxLayout(VideoWidget)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.videoFrame = QtGui.QFrame(VideoWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.videoFrame.sizePolicy().hasHeightForWidth())
        self.videoFrame.setSizePolicy(sizePolicy)
        self.videoFrame.setMinimumSize(QtCore.QSize(440, 330))
        self.videoFrame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.videoFrame.setFrameShadow(QtGui.QFrame.Raised)
        self.videoFrame.setObjectName(_fromUtf8("videoFrame"))
        self.verticalLayout_2.addWidget(self.videoFrame)
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.formLayout = QtGui.QFormLayout()
        self.formLayout.setFieldGrowthPolicy(
            QtGui.QFormLayout.ExpandingFieldsGrow)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.sourceLabel = QtGui.QLabel(VideoWidget)
        self.sourceLabel.setObjectName(_fromUtf8("sourceLabel"))
        self.formLayout.setWidget(6, QtGui.QFormLayout.LabelRole,
                                  self.sourceLabel)
        self.capsLabel = QtGui.QLabel(VideoWidget)
        self.capsLabel.setObjectName(_fromUtf8("capsLabel"))
        self.formLayout.setWidget(8, QtGui.QFormLayout.LabelRole,
                                  self.capsLabel)
        self.capsInput = KIntNumInput(VideoWidget)
        self.capsInput.setObjectName(_fromUtf8("capsInput"))
        self.formLayout.setWidget(8, QtGui.QFormLayout.FieldRole,
                                  self.capsInput)
        self.desintationLabel = QtGui.QLabel(VideoWidget)
        self.desintationLabel.setObjectName(_fromUtf8("desintationLabel"))
        self.formLayout.setWidget(10, QtGui.QFormLayout.LabelRole,
                                  self.desintationLabel)
        self.destinationRequester = KUrlRequester(VideoWidget)
        self.destinationRequester.setObjectName(
            _fromUtf8("destinationRequester"))
        self.formLayout.setWidget(10, QtGui.QFormLayout.FieldRole,
                                  self.destinationRequester)
        self.sourceRequester = KUrlRequester(VideoWidget)
        self.sourceRequester.setObjectName(_fromUtf8("sourceRequester"))
        self.formLayout.setWidget(6, QtGui.QFormLayout.FieldRole,
                                  self.sourceRequester)
        self.sourceComboBox = KComboBox(VideoWidget)
        self.sourceComboBox.setObjectName(_fromUtf8("sourceComboBox"))
        self.sourceComboBox.addItem(_fromUtf8(""))
        self.sourceComboBox.addItem(_fromUtf8(""))
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole,
                                  self.sourceComboBox)
        self.label = QtGui.QLabel(VideoWidget)
        self.label.setObjectName(_fromUtf8("label"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label)
        self.chapterComboBox = KComboBox(VideoWidget)
        self.chapterComboBox.setObjectName(_fromUtf8("chapterComboBox"))
        self.formLayout.setWidget(4, QtGui.QFormLayout.FieldRole,
                                  self.chapterComboBox)
        self.label_2 = QtGui.QLabel(VideoWidget)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.formLayout.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_2)
        self.label_3 = QtGui.QLabel(VideoWidget)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_3)
        self.titleComboBox = KComboBox(VideoWidget)
        self.titleComboBox.setObjectName(_fromUtf8("titleComboBox"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole,
                                  self.titleComboBox)
        self.verticalLayout.addLayout(self.formLayout)
        self.captureButton = KPushButton(VideoWidget)
        self.captureButton.setObjectName(_fromUtf8("captureButton"))
        self.verticalLayout.addWidget(self.captureButton)
        self.verticalLayout_2.addLayout(self.verticalLayout)

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

    def retranslateUi(self, VideoWidget):
        self.sourceLabel.setText(kdecore.i18n(_fromUtf8("FIle")))
        self.capsLabel.setText(kdecore.i18n(_fromUtf8("Number of screencaps")))
        self.desintationLabel.setText(
            kdecore.i18n(_fromUtf8("Destination directory")))
        self.sourceComboBox.setItemText(0, kdecore.i18n(_fromUtf8("File")))
        self.sourceComboBox.setItemText(1, kdecore.i18n(_fromUtf8("DVD")))
        self.label.setText(kdecore.i18n(_fromUtf8("Source")))
        self.label_2.setText(kdecore.i18n(_fromUtf8("DVD chapter")))
        self.label_3.setText(kdecore.i18n(_fromUtf8("DVD title")))
        self.captureButton.setText(kdecore.i18n(_fromUtf8("Capture")))
Exemplo n.º 4
0
class Ui_FetchDialog(object):
    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)

    def retranslateUi(self, FetchDialog):
        self.ratingLabel.setText(kdecore.i18n(_fromUtf8("Maximum rating: ")))
        self.ratingComboBox.setItemText(0, kdecore.i18n(_fromUtf8("Safe")))
        self.ratingComboBox.setItemText(
            1, kdecore.i18n(_fromUtf8("Questionable")))
        self.ratingComboBox.setItemText(2, kdecore.i18n(_fromUtf8("Explicit")))
        self.postLabel.setText(kdecore.i18n(_fromUtf8("Posts to retrieve:")))
        self.postSpinBox.setToolTip(
            kdecore.i18n(_fromUtf8("Number of posts to retrieve (max 100)")))
        self.postSpinBox.setWhatsThis(
            kdecore.i18n(
                _fromUtf8(
                    "The number of posts to retrieve. Notice that Danbooru limits the maximum number of posts to 100."
                )))
        self.tagLabel.setText(kdecore.i18n(_fromUtf8("Tags:")))
        self.tagLineEdit.setToolTip(
            kdecore.i18n(_fromUtf8("Tags to include in search (optional)")))
        self.tagLineEdit.setWhatsThis(
            kdecore.i18n(
                _fromUtf8(
                    "Input here the tags that should be used when looking for posts. Separate them with commas, without spaces."
                )))
        self.tagLineEdit.setClickMessage(
            kdecore.i18n(_fromUtf8("Tags, comma separated")))
        self.downloadButton.setText(kdecore.i18n(_fromUtf8("Download")))
Exemplo n.º 5
0
class Ui_VideoWidget(object):
    def setupUi(self, VideoWidget):
        VideoWidget.setObjectName(_fromUtf8("VideoWidget"))
        VideoWidget.resize(448, 554)
        VideoWidget.setWindowTitle(_fromUtf8(""))
        self.verticalLayout_2 = QtGui.QVBoxLayout(VideoWidget)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.videoFrame = QtGui.QFrame(VideoWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.videoFrame.sizePolicy().hasHeightForWidth())
        self.videoFrame.setSizePolicy(sizePolicy)
        self.videoFrame.setMinimumSize(QtCore.QSize(440, 330))
        self.videoFrame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.videoFrame.setFrameShadow(QtGui.QFrame.Raised)
        self.videoFrame.setObjectName(_fromUtf8("videoFrame"))
        self.verticalLayout_2.addWidget(self.videoFrame)
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.formLayout = QtGui.QFormLayout()
        self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.ExpandingFieldsGrow)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.sourceLabel = QtGui.QLabel(VideoWidget)
        self.sourceLabel.setObjectName(_fromUtf8("sourceLabel"))
        self.formLayout.setWidget(6, QtGui.QFormLayout.LabelRole, self.sourceLabel)
        self.capsLabel = QtGui.QLabel(VideoWidget)
        self.capsLabel.setObjectName(_fromUtf8("capsLabel"))
        self.formLayout.setWidget(8, QtGui.QFormLayout.LabelRole, self.capsLabel)
        self.capsInput = KIntNumInput(VideoWidget)
        self.capsInput.setObjectName(_fromUtf8("capsInput"))
        self.formLayout.setWidget(8, QtGui.QFormLayout.FieldRole, self.capsInput)
        self.desintationLabel = QtGui.QLabel(VideoWidget)
        self.desintationLabel.setObjectName(_fromUtf8("desintationLabel"))
        self.formLayout.setWidget(10, QtGui.QFormLayout.LabelRole, self.desintationLabel)
        self.destinationRequester = KUrlRequester(VideoWidget)
        self.destinationRequester.setObjectName(_fromUtf8("destinationRequester"))
        self.formLayout.setWidget(10, QtGui.QFormLayout.FieldRole, self.destinationRequester)
        self.sourceRequester = KUrlRequester(VideoWidget)
        self.sourceRequester.setObjectName(_fromUtf8("sourceRequester"))
        self.formLayout.setWidget(6, QtGui.QFormLayout.FieldRole, self.sourceRequester)
        self.sourceComboBox = KComboBox(VideoWidget)
        self.sourceComboBox.setObjectName(_fromUtf8("sourceComboBox"))
        self.sourceComboBox.addItem(_fromUtf8(""))
        self.sourceComboBox.addItem(_fromUtf8(""))
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.sourceComboBox)
        self.label = QtGui.QLabel(VideoWidget)
        self.label.setObjectName(_fromUtf8("label"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label)
        self.chapterComboBox = KComboBox(VideoWidget)
        self.chapterComboBox.setObjectName(_fromUtf8("chapterComboBox"))
        self.formLayout.setWidget(4, QtGui.QFormLayout.FieldRole, self.chapterComboBox)
        self.label_2 = QtGui.QLabel(VideoWidget)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.formLayout.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_2)
        self.label_3 = QtGui.QLabel(VideoWidget)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_3)
        self.titleComboBox = KComboBox(VideoWidget)
        self.titleComboBox.setObjectName(_fromUtf8("titleComboBox"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.titleComboBox)
        self.verticalLayout.addLayout(self.formLayout)
        self.captureButton = KPushButton(VideoWidget)
        self.captureButton.setObjectName(_fromUtf8("captureButton"))
        self.verticalLayout.addWidget(self.captureButton)
        self.verticalLayout_2.addLayout(self.verticalLayout)

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

    def retranslateUi(self, VideoWidget):
        self.sourceLabel.setText(kdecore.i18n(_fromUtf8("FIle")))
        self.capsLabel.setText(kdecore.i18n(_fromUtf8("Number of screencaps")))
        self.desintationLabel.setText(kdecore.i18n(_fromUtf8("Destination directory")))
        self.sourceComboBox.setItemText(0, kdecore.i18n(_fromUtf8("File")))
        self.sourceComboBox.setItemText(1, kdecore.i18n(_fromUtf8("DVD")))
        self.label.setText(kdecore.i18n(_fromUtf8("Source")))
        self.label_2.setText(kdecore.i18n(_fromUtf8("DVD chapter")))
        self.label_3.setText(kdecore.i18n(_fromUtf8("DVD title")))
        self.captureButton.setText(kdecore.i18n(_fromUtf8("Capture")))