示例#1
0
    def setupUi(self, SearchFileWidget):
        SearchFileWidget.setObjectName("SearchFileWidget")
        SearchFileWidget.resize(795, 518)
        self.verticalLayout = QtWidgets.QVBoxLayout(SearchFileWidget)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.frame = QtWidgets.QFrame(SearchFileWidget)
        self.frame.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame.setObjectName("frame")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.frame)
        self.verticalLayout_6.setSizeConstraint(
            QtWidgets.QLayout.SetMinimumSize)
        self.verticalLayout_6.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_6.setSpacing(0)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.splitter = QtWidgets.QSplitter(self.frame)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName("splitter")
        self.frame_2 = QtWidgets.QFrame(self.splitter)
        self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_2.setObjectName("frame_2")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.frame_2)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.horizontalLayout_10 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
        self.label_11 = QtWidgets.QLabel(self.frame_2)
        self.label_11.setObjectName("label_11")
        self.horizontalLayout_10.addWidget(self.label_11)
        spacerItem = QtWidgets.QSpacerItem(88, 13,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_10.addItem(spacerItem)
        self.verticalLayout_3.addLayout(self.horizontalLayout_10)
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        spacerItem1 = QtWidgets.QSpacerItem(88, 31,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem1)
        self.buttonSearchSelectVideos = QtWidgets.QPushButton(self.frame_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.buttonSearchSelectVideos.sizePolicy().hasHeightForWidth())
        self.buttonSearchSelectVideos.setSizePolicy(sizePolicy)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/images/open_video.png"),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.buttonSearchSelectVideos.setIcon(icon)
        self.buttonSearchSelectVideos.setIconSize(QtCore.QSize(16, 16))
        self.buttonSearchSelectVideos.setObjectName("buttonSearchSelectVideos")
        self.horizontalLayout_6.addWidget(self.buttonSearchSelectVideos)
        self.buttonSearchSelectFolder = QtWidgets.QPushButton(self.frame_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.buttonSearchSelectFolder.sizePolicy().hasHeightForWidth())
        self.buttonSearchSelectFolder.setSizePolicy(sizePolicy)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/images/open_folder.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.buttonSearchSelectFolder.setIcon(icon1)
        self.buttonSearchSelectFolder.setIconSize(QtCore.QSize(16, 16))
        self.buttonSearchSelectFolder.setObjectName("buttonSearchSelectFolder")
        self.horizontalLayout_6.addWidget(self.buttonSearchSelectFolder)
        self.verticalLayout_3.addLayout(self.horizontalLayout_6)
        self.folderView = QtWidgets.QTreeView(self.frame_2)
        self.folderView.setObjectName("folderView")
        self.verticalLayout_3.addWidget(self.folderView)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.buttonRefresh = QtWidgets.QPushButton(self.frame_2)
        self.buttonRefresh.setEnabled(True)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.buttonRefresh.setFont(font)
        self.buttonRefresh.setCheckable(False)
        self.buttonRefresh.setObjectName("buttonRefresh")
        self.horizontalLayout_4.addWidget(self.buttonRefresh)
        self.buttonFind = QtWidgets.QPushButton(self.frame_2)
        self.buttonFind.setEnabled(False)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.buttonFind.setFont(font)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/images/search.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.buttonFind.setIcon(icon2)
        self.buttonFind.setIconSize(QtCore.QSize(16, 16))
        self.buttonFind.setObjectName("buttonFind")
        self.horizontalLayout_4.addWidget(self.buttonFind)
        self.verticalLayout_3.addLayout(self.horizontalLayout_4)
        self.groupBox_videosFound = QtWidgets.QFrame(self.splitter)
        self.groupBox_videosFound.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.groupBox_videosFound.setFrameShadow(QtWidgets.QFrame.Raised)
        self.groupBox_videosFound.setObjectName("groupBox_videosFound")
        self.verticalLayout_8 = QtWidgets.QVBoxLayout(
            self.groupBox_videosFound)
        self.verticalLayout_8.setObjectName("verticalLayout_8")
        self.stackedSearchResult = QtWidgets.QStackedWidget(
            self.groupBox_videosFound)
        self.stackedSearchResult.setObjectName("stackedSearchResult")
        self.pageIntroduction = QtWidgets.QWidget()
        self.pageIntroduction.setObjectName("pageIntroduction")
        self.verticalLayout_11 = QtWidgets.QVBoxLayout(self.pageIntroduction)
        self.verticalLayout_11.setContentsMargins(1, 1, 1, 1)
        self.verticalLayout_11.setObjectName("verticalLayout_11")
        self.introductionHelp = QtWidgets.QTextBrowser(self.pageIntroduction)
        self.introductionHelp.setObjectName("introductionHelp")
        self.verticalLayout_11.addWidget(self.introductionHelp)
        self.stackedSearchResult.addWidget(self.pageIntroduction)
        self.pageSearchResult = QtWidgets.QWidget()
        self.pageSearchResult.setObjectName("pageSearchResult")
        self.verticalLayout_12 = QtWidgets.QVBoxLayout(self.pageSearchResult)
        self.verticalLayout_12.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_12.setObjectName("verticalLayout_12")
        self.layoutTopVideos = QtWidgets.QHBoxLayout()
        self.layoutTopVideos.setObjectName("layoutTopVideos")
        self.label_videosFound = QtWidgets.QLabel(self.pageSearchResult)
        self.label_videosFound.setObjectName("label_videosFound")
        self.layoutTopVideos.addWidget(self.label_videosFound)
        spacerItem2 = QtWidgets.QSpacerItem(88, 13,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.layoutTopVideos.addItem(spacerItem2)
        self.label_filterBy = QtWidgets.QLabel(self.pageSearchResult)
        self.label_filterBy.setMaximumSize(QtCore.QSize(16777215, 30))
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_filterBy.setFont(font)
        self.label_filterBy.setObjectName("label_filterBy")
        self.layoutTopVideos.addWidget(self.label_filterBy)
        self.filterLanguageForVideo = LanguageComboBox(self.pageSearchResult)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.filterLanguageForVideo.sizePolicy().hasHeightForWidth())
        self.filterLanguageForVideo.setSizePolicy(sizePolicy)
        self.filterLanguageForVideo.setMinimumSize(QtCore.QSize(100, 0))
        self.filterLanguageForVideo.setObjectName("filterLanguageForVideo")
        self.layoutTopVideos.addWidget(self.filterLanguageForVideo)
        self.layoutTopVideos.setStretch(3, 1)
        self.verticalLayout_12.addLayout(self.layoutTopVideos)
        self.videoView = QtWidgets.QTreeView(self.pageSearchResult)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.videoView.sizePolicy().hasHeightForWidth())
        self.videoView.setSizePolicy(sizePolicy)
        self.videoView.setObjectName("videoView")
        self.verticalLayout_12.addWidget(self.videoView)
        self.layoutBottomVideos = QtWidgets.QHBoxLayout()
        self.layoutBottomVideos.setContentsMargins(-1, -1, -1, 0)
        self.layoutBottomVideos.setObjectName("layoutBottomVideos")
        self.buttonIMDB = QtWidgets.QPushButton(self.pageSearchResult)
        self.buttonIMDB.setEnabled(False)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(":/images/info.png"), QtGui.QIcon.Normal,
                        QtGui.QIcon.Off)
        self.buttonIMDB.setIcon(icon3)
        self.buttonIMDB.setIconSize(QtCore.QSize(32, 16))
        self.buttonIMDB.setObjectName("buttonIMDB")
        self.layoutBottomVideos.addWidget(self.buttonIMDB)
        spacerItem3 = QtWidgets.QSpacerItem(0, 0,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.layoutBottomVideos.addItem(spacerItem3)
        self.buttonPlay = QtWidgets.QPushButton(self.pageSearchResult)
        self.buttonPlay.setEnabled(False)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(":/images/play.png"), QtGui.QIcon.Normal,
                        QtGui.QIcon.Off)
        self.buttonPlay.setIcon(icon4)
        self.buttonPlay.setObjectName("buttonPlay")
        self.layoutBottomVideos.addWidget(self.buttonPlay)
        self.buttonDownload = QtWidgets.QPushButton(self.pageSearchResult)
        self.buttonDownload.setEnabled(False)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.buttonDownload.setFont(font)
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(":/images/download.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.buttonDownload.setIcon(icon5)
        self.buttonDownload.setObjectName("buttonDownload")
        self.layoutBottomVideos.addWidget(self.buttonDownload)
        self.verticalLayout_12.addLayout(self.layoutBottomVideos)
        self.stackedSearchResult.addWidget(self.pageSearchResult)
        self.verticalLayout_8.addWidget(self.stackedSearchResult)
        self.verticalLayout_6.addWidget(self.splitter)
        self.verticalLayout.addWidget(self.frame)

        self.retranslateUi(SearchFileWidget)
        QtCore.QMetaObject.connectSlotsByName(SearchFileWidget)
示例#2
0
    def setupUi(self, SearchNameWidget):
        SearchNameWidget.setObjectName("SearchNameWidget")
        SearchNameWidget.resize(623, 458)
        self.verticalLayout = QtWidgets.QVBoxLayout(SearchNameWidget)
        self.verticalLayout.setObjectName("verticalLayout")
        self.widget = QtWidgets.QWidget(SearchNameWidget)
        self.widget.setObjectName("widget")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.widget)
        self.gridLayout_2.setContentsMargins(0, 0, 0, 0)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.label_3 = QtWidgets.QLabel(self.widget)
        self.label_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_3.setObjectName("label_3")
        self.gridLayout_2.addWidget(self.label_3, 1, 3, 1, 1)
        self.searchSitesCombo = QtWidgets.QComboBox(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.searchSitesCombo.sizePolicy().hasHeightForWidth())
        self.searchSitesCombo.setSizePolicy(sizePolicy)
        self.searchSitesCombo.setObjectName("searchSitesCombo")
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/images/sites/opensubtitles.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.searchSitesCombo.addItem(icon, "")
        self.gridLayout_2.addWidget(self.searchSitesCombo, 1, 4, 1, 1)
        self.label_10 = QtWidgets.QLabel(self.widget)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_10.setFont(font)
        self.label_10.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_10.setObjectName("label_10")
        self.gridLayout_2.addWidget(self.label_10, 3, 3, 1, 1)
        self.filterLanguage = LanguageComboBox(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.filterLanguage.sizePolicy().hasHeightForWidth())
        self.filterLanguage.setSizePolicy(sizePolicy)
        self.filterLanguage.setMinimumSize(QtCore.QSize(100, 0))
        self.filterLanguage.setObjectName("filterLanguage")
        self.gridLayout_2.addWidget(self.filterLanguage, 3, 4, 1, 1)
        self.movieNameText = QtWidgets.QLineEdit(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.movieNameText.sizePolicy().hasHeightForWidth())
        self.movieNameText.setSizePolicy(sizePolicy)
        self.movieNameText.setText("")
        self.movieNameText.setObjectName("movieNameText")
        self.gridLayout_2.addWidget(self.movieNameText, 1, 1, 1, 1)
        self.buttonSearchByName = QtWidgets.QPushButton(self.widget)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/images/search.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.buttonSearchByName.setIcon(icon1)
        self.buttonSearchByName.setFlat(False)
        self.buttonSearchByName.setObjectName("buttonSearchByName")
        self.gridLayout_2.addWidget(self.buttonSearchByName, 1, 2, 1, 1)
        self.label_12 = QtWidgets.QLabel(self.widget)
        self.label_12.setObjectName("label_12")
        self.gridLayout_2.addWidget(self.label_12, 3, 1, 1, 1)
        self.verticalLayout.addWidget(self.widget)
        self.moviesView = QtWidgets.QTreeView(SearchNameWidget)
        self.moviesView.setAlternatingRowColors(True)
        self.moviesView.setObjectName("moviesView")
        self.verticalLayout.addWidget(self.moviesView)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.buttonIMDBByTitle = QtWidgets.QPushButton(SearchNameWidget)
        self.buttonIMDBByTitle.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.buttonIMDBByTitle.sizePolicy().hasHeightForWidth())
        self.buttonIMDBByTitle.setSizePolicy(sizePolicy)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/images/imdb.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.buttonIMDBByTitle.setIcon(icon2)
        self.buttonIMDBByTitle.setIconSize(QtCore.QSize(32, 16))
        self.buttonIMDBByTitle.setObjectName("buttonIMDBByTitle")
        self.horizontalLayout_3.addWidget(self.buttonIMDBByTitle)
        spacerItem = QtWidgets.QSpacerItem(118, 18, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem)
        self.buttonDownloadByTitle = QtWidgets.QPushButton(SearchNameWidget)
        self.buttonDownloadByTitle.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.buttonDownloadByTitle.sizePolicy().hasHeightForWidth())
        self.buttonDownloadByTitle.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.buttonDownloadByTitle.setFont(font)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(":/images/download.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.buttonDownloadByTitle.setIcon(icon3)
        self.buttonDownloadByTitle.setObjectName("buttonDownloadByTitle")
        self.horizontalLayout_3.addWidget(self.buttonDownloadByTitle)
        self.verticalLayout.addLayout(self.horizontalLayout_3)

        self.retranslateUi(SearchNameWidget)
        QtCore.QMetaObject.connectSlotsByName(SearchNameWidget)
示例#3
0
class Ui_PreferencesDialog(object):
    def setupUi(self, PreferencesDialog):
        PreferencesDialog.setObjectName("PreferencesDialog")
        PreferencesDialog.setWindowModality(QtCore.Qt.WindowModal)
        PreferencesDialog.resize(718, 528)
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(PreferencesDialog)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.tabsPreferences = QtWidgets.QTabWidget(PreferencesDialog)
        self.tabsPreferences.setTabPosition(QtWidgets.QTabWidget.North)
        self.tabsPreferences.setObjectName("tabsPreferences")
        self.tabSearch = QtWidgets.QWidget()
        self.tabSearch.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.tabSearch.setObjectName("tabSearch")
        self.horizontalLayout_3 = QtWidgets.QVBoxLayout(self.tabSearch)
        self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.groupBoxSearchLanguages = QtWidgets.QGroupBox(self.tabSearch)
        self.groupBoxSearchLanguages.setObjectName("groupBoxSearchLanguages")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(
            self.groupBoxSearchLanguages)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.scrollAreaSearch = QtWidgets.QScrollArea(
            self.groupBoxSearchLanguages)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Expanding,
            QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.scrollAreaSearch.sizePolicy().hasHeightForWidth())
        self.scrollAreaSearch.setSizePolicy(sizePolicy)
        self.scrollAreaSearch.setMinimumSize(QtCore.QSize(0, 150))
        self.scrollAreaSearch.setWidgetResizable(True)
        self.scrollAreaSearch.setObjectName("scrollAreaSearch")
        self.scrollAreaWidgetSearch = QtWidgets.QWidget()
        self.scrollAreaWidgetSearch.setGeometry(QtCore.QRect(0, 0, 658, 359))
        self.scrollAreaWidgetSearch.setObjectName("scrollAreaWidgetSearch")
        self.vbox_B = QtWidgets.QVBoxLayout(self.scrollAreaWidgetSearch)
        self.vbox_B.setContentsMargins(0, 0, 0, 0)
        self.vbox_B.setObjectName("vbox_B")
        self.scrollAreaWidgetLayoutSearch = QtWidgets.QGridLayout()
        self.scrollAreaWidgetLayoutSearch.setObjectName(
            "scrollAreaWidgetLayoutSearch")
        self.vbox_B.addLayout(self.scrollAreaWidgetLayoutSearch)
        self.scrollAreaSearch.setWidget(self.scrollAreaWidgetSearch)
        self.verticalLayout_6.addWidget(self.scrollAreaSearch)
        self.horizontalLayout_3.addWidget(self.groupBoxSearchLanguages)
        self.tabsPreferences.addTab(self.tabSearch, "")
        self.tabDownload = QtWidgets.QWidget()
        self.tabDownload.setObjectName("tabDownload")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.tabDownload)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.groupBoxDlDestinationFolder = QtWidgets.QGroupBox(
            self.tabDownload)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.groupBoxDlDestinationFolder.setFont(font)
        self.groupBoxDlDestinationFolder.setObjectName(
            "groupBoxDlDestinationFolder")
        self.verticalLayout_B = QtWidgets.QVBoxLayout(
            self.groupBoxDlDestinationFolder)
        self.verticalLayout_B.setObjectName("verticalLayout_B")
        self.optionDlDestinationSame = QtWidgets.QRadioButton(
            self.groupBoxDlDestinationFolder)
        self.optionDlDestinationSame.setChecked(True)
        self.optionDlDestinationSame.setObjectName("optionDlDestinationSame")
        self.verticalLayout_B.addWidget(self.optionDlDestinationSame)
        self.optionDlDestinationAsk = QtWidgets.QRadioButton(
            self.groupBoxDlDestinationFolder)
        self.optionDlDestinationAsk.setObjectName("optionDlDestinationAsk")
        self.verticalLayout_B.addWidget(self.optionDlDestinationAsk)
        self.layoutPredefinedFolder = QtWidgets.QHBoxLayout()
        self.layoutPredefinedFolder.setObjectName("layoutPredefinedFolder")
        self.optionDlDestinationUser = QtWidgets.QRadioButton(
            self.groupBoxDlDestinationFolder)
        self.optionDlDestinationUser.setObjectName("optionDlDestinationUser")
        self.layoutPredefinedFolder.addWidget(self.optionDlDestinationUser)
        self.inputDlDestinationUser = QtWidgets.QLineEdit(
            self.groupBoxDlDestinationFolder)
        self.inputDlDestinationUser.setObjectName("inputDlDestinationUser")
        self.layoutPredefinedFolder.addWidget(self.inputDlDestinationUser)
        self.buttonDlDestinationUser = QtWidgets.QPushButton(
            self.groupBoxDlDestinationFolder)
        self.buttonDlDestinationUser.setDefault(False)
        self.buttonDlDestinationUser.setFlat(False)
        self.buttonDlDestinationUser.setObjectName("buttonDlDestinationUser")
        self.layoutPredefinedFolder.addWidget(self.buttonDlDestinationUser)
        self.verticalLayout_B.addLayout(self.layoutPredefinedFolder)
        self.verticalLayout.addWidget(self.groupBoxDlDestinationFolder)
        self.groupBoxSubFn = QtWidgets.QGroupBox(self.tabDownload)
        self.groupBoxSubFn.setObjectName("groupBoxSubFn")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBoxSubFn)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.optionSubFnSame = QtWidgets.QRadioButton(self.groupBoxSubFn)
        self.optionSubFnSame.setChecked(True)
        self.optionSubFnSame.setObjectName("optionSubFnSame")
        self.verticalLayout_2.addWidget(self.optionSubFnSame)
        self.optionSubFnSameLang = QtWidgets.QRadioButton(self.groupBoxSubFn)
        self.optionSubFnSameLang.setChecked(False)
        self.optionSubFnSameLang.setObjectName("optionSubFnSameLang")
        self.verticalLayout_2.addWidget(self.optionSubFnSameLang)
        self.optionSubFnSameLangUploader = QtWidgets.QRadioButton(
            self.groupBoxSubFn)
        self.optionSubFnSameLangUploader.setChecked(False)
        self.optionSubFnSameLangUploader.setObjectName(
            "optionSubFnSameLangUploader")
        self.verticalLayout_2.addWidget(self.optionSubFnSameLangUploader)
        self.optionSubFnOnline = QtWidgets.QRadioButton(self.groupBoxSubFn)
        self.optionSubFnOnline.setObjectName("optionSubFnOnline")
        self.verticalLayout_2.addWidget(self.optionSubFnOnline)
        self.verticalLayout.addWidget(self.groupBoxSubFn)
        self.tabsPreferences.addTab(self.tabDownload, "")
        self.tabUpload = QtWidgets.QWidget()
        self.tabUpload.setObjectName("tabUpload")
        self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.tabUpload)
        self.verticalLayout_7.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.uploadFrame = QtWidgets.QFrame(self.tabUpload)
        self.uploadFrame.setObjectName("uploadFrame")
        self.formLayout_2 = QtWidgets.QFormLayout(self.uploadFrame)
        self.formLayout_2.setObjectName("formLayout_2")
        self.textUlDefaultLanguage = QtWidgets.QLabel(self.uploadFrame)
        self.textUlDefaultLanguage.setMinimumSize(QtCore.QSize(339, 0))
        self.textUlDefaultLanguage.setObjectName("textUlDefaultLanguage")
        self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                    self.textUlDefaultLanguage)
        self.optionUlDefaultLanguage = LanguageComboBox(self.uploadFrame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.optionUlDefaultLanguage.sizePolicy().hasHeightForWidth())
        self.optionUlDefaultLanguage.setSizePolicy(sizePolicy)
        self.optionUlDefaultLanguage.setFrame(True)
        self.optionUlDefaultLanguage.setObjectName("optionUlDefaultLanguage")
        self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.FieldRole,
                                    self.optionUlDefaultLanguage)
        self.verticalLayout_7.addWidget(self.uploadFrame)
        self.tabsPreferences.addTab(self.tabUpload, "")
        self.tabNetwork = QtWidgets.QWidget()
        self.tabNetwork.setObjectName("tabNetwork")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.tabNetwork)
        self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.groupNetworkProxy = QtWidgets.QGroupBox(self.tabNetwork)
        self.groupNetworkProxy.setObjectName("groupNetworkProxy")
        self.formLayout = QtWidgets.QFormLayout(self.groupNetworkProxy)
        self.formLayout.setObjectName("formLayout")
        self.textProxyHost = QtWidgets.QLabel(self.groupNetworkProxy)
        self.textProxyHost.setObjectName("textProxyHost")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                  self.textProxyHost)
        self.inputProxyHost = QtWidgets.QLineEdit(self.groupNetworkProxy)
        self.inputProxyHost.setObjectName("inputProxyHost")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole,
                                  self.inputProxyHost)
        self.textProxyPort = QtWidgets.QLabel(self.groupNetworkProxy)
        self.textProxyPort.setObjectName("textProxyPort")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole,
                                  self.textProxyPort)
        self.inputProxyPort = QtWidgets.QSpinBox(self.groupNetworkProxy)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.inputProxyPort.sizePolicy().hasHeightForWidth())
        self.inputProxyPort.setSizePolicy(sizePolicy)
        self.inputProxyPort.setMaximum(99999)
        self.inputProxyPort.setObjectName("inputProxyPort")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole,
                                  self.inputProxyPort)
        self.verticalLayout_4.addWidget(self.groupNetworkProxy)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_4.addItem(spacerItem)
        self.tabsPreferences.addTab(self.tabNetwork, "")
        self.tabOthers = QtWidgets.QWidget()
        self.tabOthers.setObjectName("tabOthers")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.tabOthers)
        self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.groupInterface = QtWidgets.QGroupBox(self.tabOthers)
        self.groupInterface.setObjectName("groupInterface")
        self.gridLayout = QtWidgets.QGridLayout(self.groupInterface)
        self.gridLayout.setObjectName("gridLayout")
        self.textInterfaceLanguage = QtWidgets.QLabel(self.groupInterface)
        self.textInterfaceLanguage.setMinimumSize(QtCore.QSize(224, 0))
        self.textInterfaceLanguage.setObjectName("textInterfaceLanguage")
        self.gridLayout.addWidget(self.textInterfaceLanguage, 0, 0, 1, 1)
        self.optionInterfaceLanguage = InterfaceLanguageComboBox(
            self.groupInterface)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.optionInterfaceLanguage.sizePolicy().hasHeightForWidth())
        self.optionInterfaceLanguage.setSizePolicy(sizePolicy)
        self.optionInterfaceLanguage.setObjectName("optionInterfaceLanguage")
        self.gridLayout.addWidget(self.optionInterfaceLanguage, 0, 1, 1, 1)
        self.buttonHelpTranslation = QtWidgets.QPushButton(self.groupInterface)
        self.buttonHelpTranslation.setObjectName("buttonHelpTranslation")
        self.gridLayout.addWidget(self.buttonHelpTranslation, 0, 2, 1, 1)
        self.textIntegrationExplorer = QtWidgets.QLabel(self.groupInterface)
        self.textIntegrationExplorer.setObjectName("textIntegrationExplorer")
        self.gridLayout.addWidget(self.textIntegrationExplorer, 1, 0, 1, 1)
        self.optionIntegrationExplorer = QtWidgets.QCheckBox(
            self.groupInterface)
        self.optionIntegrationExplorer.setEnabled(False)
        self.optionIntegrationExplorer.setObjectName(
            "optionIntegrationExplorer")
        self.gridLayout.addWidget(self.optionIntegrationExplorer, 1, 1, 1, 2)
        self.verticalLayout_3.addWidget(self.groupInterface)
        self.groupVieoApp = QtWidgets.QGroupBox(self.tabOthers)
        self.groupVieoApp.setObjectName("groupVieoApp")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.groupVieoApp)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.buttonVideoAppLocationChoose = QtWidgets.QPushButton(
            self.groupVieoApp)
        self.buttonVideoAppLocationChoose.setObjectName(
            "buttonVideoAppLocationChoose")
        self.gridLayout_3.addWidget(self.buttonVideoAppLocationChoose, 0, 2, 1,
                                    1)
        self.inputVideoAppLocation = QtWidgets.QLineEdit(self.groupVieoApp)
        self.inputVideoAppLocation.setObjectName("inputVideoAppLocation")
        self.gridLayout_3.addWidget(self.inputVideoAppLocation, 0, 1, 1, 1)
        self.textVideoAppParams = QtWidgets.QLabel(self.groupVieoApp)
        self.textVideoAppParams.setObjectName("textVideoAppParams")
        self.gridLayout_3.addWidget(self.textVideoAppParams, 1, 0, 1, 1)
        self.inputVideoAppParams = QtWidgets.QLineEdit(self.groupVieoApp)
        self.inputVideoAppParams.setObjectName("inputVideoAppParams")
        self.gridLayout_3.addWidget(self.inputVideoAppParams, 1, 1, 1, 1)
        self.textVideoAppLocation = QtWidgets.QLabel(self.groupVieoApp)
        self.textVideoAppLocation.setObjectName("textVideoAppLocation")
        self.gridLayout_3.addWidget(self.textVideoAppLocation, 0, 0, 1, 1)
        self.textVideoAppHelp = QtWidgets.QLabel(self.groupVieoApp)
        self.textVideoAppHelp.setObjectName("textVideoAppHelp")
        self.gridLayout_3.addWidget(self.textVideoAppHelp, 2, 1, 1, 2)
        self.verticalLayout_3.addWidget(self.groupVieoApp)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem1)
        self.tabsPreferences.addTab(self.tabOthers, "")
        self.verticalLayout_5.addWidget(self.tabsPreferences)
        self.layoutPreferencesDialogButtons = QtWidgets.QHBoxLayout()
        self.layoutPreferencesDialogButtons.setObjectName(
            "layoutPreferencesDialogButtons")
        spacerItem2 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.layoutPreferencesDialogButtons.addItem(spacerItem2)
        self.buttonApplyChanges = QtWidgets.QPushButton(PreferencesDialog)
        self.buttonApplyChanges.setObjectName("buttonApplyChanges")
        self.layoutPreferencesDialogButtons.addWidget(self.buttonApplyChanges)
        self.buttonCancel = QtWidgets.QPushButton(PreferencesDialog)
        self.buttonCancel.setObjectName("buttonCancel")
        self.layoutPreferencesDialogButtons.addWidget(self.buttonCancel)
        self.verticalLayout_5.addLayout(self.layoutPreferencesDialogButtons)

        self.retranslateUi(PreferencesDialog)
        self.tabsPreferences.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(PreferencesDialog)
        PreferencesDialog.setTabOrder(self.tabsPreferences,
                                      self.scrollAreaSearch)
        PreferencesDialog.setTabOrder(self.scrollAreaSearch,
                                      self.optionDlDestinationSame)
        PreferencesDialog.setTabOrder(self.optionDlDestinationSame,
                                      self.optionDlDestinationUser)
        PreferencesDialog.setTabOrder(self.optionDlDestinationUser,
                                      self.inputDlDestinationUser)
        PreferencesDialog.setTabOrder(self.inputDlDestinationUser,
                                      self.buttonDlDestinationUser)
        PreferencesDialog.setTabOrder(self.buttonDlDestinationUser,
                                      self.optionSubFnSame)
        PreferencesDialog.setTabOrder(self.optionSubFnSame,
                                      self.optionSubFnSameLang)
        PreferencesDialog.setTabOrder(self.optionSubFnSameLang,
                                      self.optionSubFnSameLangUploader)
        PreferencesDialog.setTabOrder(self.optionSubFnSameLangUploader,
                                      self.optionSubFnOnline)
        PreferencesDialog.setTabOrder(self.optionSubFnOnline,
                                      self.inputProxyHost)
        PreferencesDialog.setTabOrder(self.inputProxyHost, self.inputProxyPort)
        PreferencesDialog.setTabOrder(self.inputProxyPort,
                                      self.optionInterfaceLanguage)
        PreferencesDialog.setTabOrder(self.optionInterfaceLanguage,
                                      self.buttonHelpTranslation)
        PreferencesDialog.setTabOrder(self.buttonHelpTranslation,
                                      self.optionIntegrationExplorer)
        PreferencesDialog.setTabOrder(self.optionIntegrationExplorer,
                                      self.inputVideoAppLocation)
        PreferencesDialog.setTabOrder(self.inputVideoAppLocation,
                                      self.buttonVideoAppLocationChoose)
        PreferencesDialog.setTabOrder(self.buttonVideoAppLocationChoose,
                                      self.inputVideoAppParams)
        PreferencesDialog.setTabOrder(self.inputVideoAppParams,
                                      self.buttonCancel)

    def retranslateUi(self, PreferencesDialog):
        _translate = QtCore.QCoreApplication.translate
        PreferencesDialog.setWindowTitle(_("Settings"))
        self.groupBoxSearchLanguages.setTitle(
            _("Filter search results by these languages:"))
        self.tabsPreferences.setTabText(
            self.tabsPreferences.indexOf(self.tabSearch), _("Search"))
        self.groupBoxDlDestinationFolder.setTitle(_("Destination folder:"))
        self.optionDlDestinationSame.setText(_("Same folder as video file"))
        self.optionDlDestinationAsk.setText(_("Always ask user"))
        self.optionDlDestinationUser.setText(_("Predefined folder:"))
        self.buttonDlDestinationUser.setText(_("Browse..."))
        self.groupBoxSubFn.setTitle(_("Filename of the Subtitle:"))
        self.optionSubFnSame.setText(_("Same name as video file"))
        self.optionSubFnSameLang.setText(
            _("Same name as video file + language code (ex: StarWarsCD1.eng.srt)"
              ))
        self.optionSubFnSameLangUploader.setText(
            _("Same name as video file + language code + Uploader name (ex: StarWarsCD1.eng.JohnDoe.srt)"
              ))
        self.optionSubFnOnline.setText(_("Same name as the online subtitle"))
        self.tabsPreferences.setTabText(
            self.tabsPreferences.indexOf(self.tabDownload), _("Download"))
        self.textUlDefaultLanguage.setText(
            _("Default language of uploaded subtitles"))
        self.tabsPreferences.setTabText(
            self.tabsPreferences.indexOf(self.tabUpload), _("Upload"))
        self.groupNetworkProxy.setTitle(_("Network Proxy"))
        self.textProxyHost.setText(_("Host:"))
        self.textProxyPort.setText(_("Port:"))
        self.tabsPreferences.setTabText(
            self.tabsPreferences.indexOf(self.tabNetwork), _("Network"))
        self.groupInterface.setTitle(_("Interface"))
        self.textInterfaceLanguage.setText(_("Interface Language:"))
        self.buttonHelpTranslation.setText(_("Translate This Application..."))
        self.textIntegrationExplorer.setText(_("Context Menu:"))
        self.optionIntegrationExplorer.setText(
            _("Enable in your Konqueror/Dolphin/Nautilus"))
        self.groupVieoApp.setTitle(
            _("External application for video playback"))
        self.buttonVideoAppLocationChoose.setText(_("Browse..."))
        self.textVideoAppParams.setText(_("Parameters:"))
        self.textVideoAppLocation.setText(_("Video Player:"))
        self.textVideoAppHelp.setText(
            _("{0} = video file path; {1} = subtitle path"))
        self.tabsPreferences.setTabText(
            self.tabsPreferences.indexOf(self.tabOthers), _("Others"))
        self.buttonApplyChanges.setText(_("Save"))
        self.buttonCancel.setText(_("Cancel"))
示例#4
0
    def setupUi(self, PreferencesDialog):
        PreferencesDialog.setObjectName("PreferencesDialog")
        PreferencesDialog.setWindowModality(QtCore.Qt.WindowModal)
        PreferencesDialog.resize(718, 528)
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(PreferencesDialog)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.tabsPreferences = QtWidgets.QTabWidget(PreferencesDialog)
        self.tabsPreferences.setTabPosition(QtWidgets.QTabWidget.North)
        self.tabsPreferences.setObjectName("tabsPreferences")
        self.tabSearch = QtWidgets.QWidget()
        self.tabSearch.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.tabSearch.setObjectName("tabSearch")
        self.horizontalLayout_3 = QtWidgets.QVBoxLayout(self.tabSearch)
        self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.groupBoxSearchLanguages = QtWidgets.QGroupBox(self.tabSearch)
        self.groupBoxSearchLanguages.setObjectName("groupBoxSearchLanguages")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(
            self.groupBoxSearchLanguages)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.scrollAreaSearch = QtWidgets.QScrollArea(
            self.groupBoxSearchLanguages)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Expanding,
            QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.scrollAreaSearch.sizePolicy().hasHeightForWidth())
        self.scrollAreaSearch.setSizePolicy(sizePolicy)
        self.scrollAreaSearch.setMinimumSize(QtCore.QSize(0, 150))
        self.scrollAreaSearch.setWidgetResizable(True)
        self.scrollAreaSearch.setObjectName("scrollAreaSearch")
        self.scrollAreaWidgetSearch = QtWidgets.QWidget()
        self.scrollAreaWidgetSearch.setGeometry(QtCore.QRect(0, 0, 658, 359))
        self.scrollAreaWidgetSearch.setObjectName("scrollAreaWidgetSearch")
        self.vbox_B = QtWidgets.QVBoxLayout(self.scrollAreaWidgetSearch)
        self.vbox_B.setContentsMargins(0, 0, 0, 0)
        self.vbox_B.setObjectName("vbox_B")
        self.scrollAreaWidgetLayoutSearch = QtWidgets.QGridLayout()
        self.scrollAreaWidgetLayoutSearch.setObjectName(
            "scrollAreaWidgetLayoutSearch")
        self.vbox_B.addLayout(self.scrollAreaWidgetLayoutSearch)
        self.scrollAreaSearch.setWidget(self.scrollAreaWidgetSearch)
        self.verticalLayout_6.addWidget(self.scrollAreaSearch)
        self.horizontalLayout_3.addWidget(self.groupBoxSearchLanguages)
        self.tabsPreferences.addTab(self.tabSearch, "")
        self.tabDownload = QtWidgets.QWidget()
        self.tabDownload.setObjectName("tabDownload")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.tabDownload)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.groupBoxDlDestinationFolder = QtWidgets.QGroupBox(
            self.tabDownload)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.groupBoxDlDestinationFolder.setFont(font)
        self.groupBoxDlDestinationFolder.setObjectName(
            "groupBoxDlDestinationFolder")
        self.verticalLayout_B = QtWidgets.QVBoxLayout(
            self.groupBoxDlDestinationFolder)
        self.verticalLayout_B.setObjectName("verticalLayout_B")
        self.optionDlDestinationSame = QtWidgets.QRadioButton(
            self.groupBoxDlDestinationFolder)
        self.optionDlDestinationSame.setChecked(True)
        self.optionDlDestinationSame.setObjectName("optionDlDestinationSame")
        self.verticalLayout_B.addWidget(self.optionDlDestinationSame)
        self.optionDlDestinationAsk = QtWidgets.QRadioButton(
            self.groupBoxDlDestinationFolder)
        self.optionDlDestinationAsk.setObjectName("optionDlDestinationAsk")
        self.verticalLayout_B.addWidget(self.optionDlDestinationAsk)
        self.layoutPredefinedFolder = QtWidgets.QHBoxLayout()
        self.layoutPredefinedFolder.setObjectName("layoutPredefinedFolder")
        self.optionDlDestinationUser = QtWidgets.QRadioButton(
            self.groupBoxDlDestinationFolder)
        self.optionDlDestinationUser.setObjectName("optionDlDestinationUser")
        self.layoutPredefinedFolder.addWidget(self.optionDlDestinationUser)
        self.inputDlDestinationUser = QtWidgets.QLineEdit(
            self.groupBoxDlDestinationFolder)
        self.inputDlDestinationUser.setObjectName("inputDlDestinationUser")
        self.layoutPredefinedFolder.addWidget(self.inputDlDestinationUser)
        self.buttonDlDestinationUser = QtWidgets.QPushButton(
            self.groupBoxDlDestinationFolder)
        self.buttonDlDestinationUser.setDefault(False)
        self.buttonDlDestinationUser.setFlat(False)
        self.buttonDlDestinationUser.setObjectName("buttonDlDestinationUser")
        self.layoutPredefinedFolder.addWidget(self.buttonDlDestinationUser)
        self.verticalLayout_B.addLayout(self.layoutPredefinedFolder)
        self.verticalLayout.addWidget(self.groupBoxDlDestinationFolder)
        self.groupBoxSubFn = QtWidgets.QGroupBox(self.tabDownload)
        self.groupBoxSubFn.setObjectName("groupBoxSubFn")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBoxSubFn)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.optionSubFnSame = QtWidgets.QRadioButton(self.groupBoxSubFn)
        self.optionSubFnSame.setChecked(True)
        self.optionSubFnSame.setObjectName("optionSubFnSame")
        self.verticalLayout_2.addWidget(self.optionSubFnSame)
        self.optionSubFnSameLang = QtWidgets.QRadioButton(self.groupBoxSubFn)
        self.optionSubFnSameLang.setChecked(False)
        self.optionSubFnSameLang.setObjectName("optionSubFnSameLang")
        self.verticalLayout_2.addWidget(self.optionSubFnSameLang)
        self.optionSubFnSameLangUploader = QtWidgets.QRadioButton(
            self.groupBoxSubFn)
        self.optionSubFnSameLangUploader.setChecked(False)
        self.optionSubFnSameLangUploader.setObjectName(
            "optionSubFnSameLangUploader")
        self.verticalLayout_2.addWidget(self.optionSubFnSameLangUploader)
        self.optionSubFnOnline = QtWidgets.QRadioButton(self.groupBoxSubFn)
        self.optionSubFnOnline.setObjectName("optionSubFnOnline")
        self.verticalLayout_2.addWidget(self.optionSubFnOnline)
        self.verticalLayout.addWidget(self.groupBoxSubFn)
        self.tabsPreferences.addTab(self.tabDownload, "")
        self.tabUpload = QtWidgets.QWidget()
        self.tabUpload.setObjectName("tabUpload")
        self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.tabUpload)
        self.verticalLayout_7.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.uploadFrame = QtWidgets.QFrame(self.tabUpload)
        self.uploadFrame.setObjectName("uploadFrame")
        self.formLayout_2 = QtWidgets.QFormLayout(self.uploadFrame)
        self.formLayout_2.setObjectName("formLayout_2")
        self.textUlDefaultLanguage = QtWidgets.QLabel(self.uploadFrame)
        self.textUlDefaultLanguage.setMinimumSize(QtCore.QSize(339, 0))
        self.textUlDefaultLanguage.setObjectName("textUlDefaultLanguage")
        self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                    self.textUlDefaultLanguage)
        self.optionUlDefaultLanguage = LanguageComboBox(self.uploadFrame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.optionUlDefaultLanguage.sizePolicy().hasHeightForWidth())
        self.optionUlDefaultLanguage.setSizePolicy(sizePolicy)
        self.optionUlDefaultLanguage.setFrame(True)
        self.optionUlDefaultLanguage.setObjectName("optionUlDefaultLanguage")
        self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.FieldRole,
                                    self.optionUlDefaultLanguage)
        self.verticalLayout_7.addWidget(self.uploadFrame)
        self.tabsPreferences.addTab(self.tabUpload, "")
        self.tabNetwork = QtWidgets.QWidget()
        self.tabNetwork.setObjectName("tabNetwork")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.tabNetwork)
        self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.groupNetworkProxy = QtWidgets.QGroupBox(self.tabNetwork)
        self.groupNetworkProxy.setObjectName("groupNetworkProxy")
        self.formLayout = QtWidgets.QFormLayout(self.groupNetworkProxy)
        self.formLayout.setObjectName("formLayout")
        self.textProxyHost = QtWidgets.QLabel(self.groupNetworkProxy)
        self.textProxyHost.setObjectName("textProxyHost")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                  self.textProxyHost)
        self.inputProxyHost = QtWidgets.QLineEdit(self.groupNetworkProxy)
        self.inputProxyHost.setObjectName("inputProxyHost")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole,
                                  self.inputProxyHost)
        self.textProxyPort = QtWidgets.QLabel(self.groupNetworkProxy)
        self.textProxyPort.setObjectName("textProxyPort")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole,
                                  self.textProxyPort)
        self.inputProxyPort = QtWidgets.QSpinBox(self.groupNetworkProxy)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.inputProxyPort.sizePolicy().hasHeightForWidth())
        self.inputProxyPort.setSizePolicy(sizePolicy)
        self.inputProxyPort.setMaximum(99999)
        self.inputProxyPort.setObjectName("inputProxyPort")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole,
                                  self.inputProxyPort)
        self.verticalLayout_4.addWidget(self.groupNetworkProxy)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_4.addItem(spacerItem)
        self.tabsPreferences.addTab(self.tabNetwork, "")
        self.tabOthers = QtWidgets.QWidget()
        self.tabOthers.setObjectName("tabOthers")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.tabOthers)
        self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.groupInterface = QtWidgets.QGroupBox(self.tabOthers)
        self.groupInterface.setObjectName("groupInterface")
        self.gridLayout = QtWidgets.QGridLayout(self.groupInterface)
        self.gridLayout.setObjectName("gridLayout")
        self.textInterfaceLanguage = QtWidgets.QLabel(self.groupInterface)
        self.textInterfaceLanguage.setMinimumSize(QtCore.QSize(224, 0))
        self.textInterfaceLanguage.setObjectName("textInterfaceLanguage")
        self.gridLayout.addWidget(self.textInterfaceLanguage, 0, 0, 1, 1)
        self.optionInterfaceLanguage = InterfaceLanguageComboBox(
            self.groupInterface)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.optionInterfaceLanguage.sizePolicy().hasHeightForWidth())
        self.optionInterfaceLanguage.setSizePolicy(sizePolicy)
        self.optionInterfaceLanguage.setObjectName("optionInterfaceLanguage")
        self.gridLayout.addWidget(self.optionInterfaceLanguage, 0, 1, 1, 1)
        self.buttonHelpTranslation = QtWidgets.QPushButton(self.groupInterface)
        self.buttonHelpTranslation.setObjectName("buttonHelpTranslation")
        self.gridLayout.addWidget(self.buttonHelpTranslation, 0, 2, 1, 1)
        self.textIntegrationExplorer = QtWidgets.QLabel(self.groupInterface)
        self.textIntegrationExplorer.setObjectName("textIntegrationExplorer")
        self.gridLayout.addWidget(self.textIntegrationExplorer, 1, 0, 1, 1)
        self.optionIntegrationExplorer = QtWidgets.QCheckBox(
            self.groupInterface)
        self.optionIntegrationExplorer.setEnabled(False)
        self.optionIntegrationExplorer.setObjectName(
            "optionIntegrationExplorer")
        self.gridLayout.addWidget(self.optionIntegrationExplorer, 1, 1, 1, 2)
        self.verticalLayout_3.addWidget(self.groupInterface)
        self.groupVieoApp = QtWidgets.QGroupBox(self.tabOthers)
        self.groupVieoApp.setObjectName("groupVieoApp")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.groupVieoApp)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.buttonVideoAppLocationChoose = QtWidgets.QPushButton(
            self.groupVieoApp)
        self.buttonVideoAppLocationChoose.setObjectName(
            "buttonVideoAppLocationChoose")
        self.gridLayout_3.addWidget(self.buttonVideoAppLocationChoose, 0, 2, 1,
                                    1)
        self.inputVideoAppLocation = QtWidgets.QLineEdit(self.groupVieoApp)
        self.inputVideoAppLocation.setObjectName("inputVideoAppLocation")
        self.gridLayout_3.addWidget(self.inputVideoAppLocation, 0, 1, 1, 1)
        self.textVideoAppParams = QtWidgets.QLabel(self.groupVieoApp)
        self.textVideoAppParams.setObjectName("textVideoAppParams")
        self.gridLayout_3.addWidget(self.textVideoAppParams, 1, 0, 1, 1)
        self.inputVideoAppParams = QtWidgets.QLineEdit(self.groupVieoApp)
        self.inputVideoAppParams.setObjectName("inputVideoAppParams")
        self.gridLayout_3.addWidget(self.inputVideoAppParams, 1, 1, 1, 1)
        self.textVideoAppLocation = QtWidgets.QLabel(self.groupVieoApp)
        self.textVideoAppLocation.setObjectName("textVideoAppLocation")
        self.gridLayout_3.addWidget(self.textVideoAppLocation, 0, 0, 1, 1)
        self.textVideoAppHelp = QtWidgets.QLabel(self.groupVieoApp)
        self.textVideoAppHelp.setObjectName("textVideoAppHelp")
        self.gridLayout_3.addWidget(self.textVideoAppHelp, 2, 1, 1, 2)
        self.verticalLayout_3.addWidget(self.groupVieoApp)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem1)
        self.tabsPreferences.addTab(self.tabOthers, "")
        self.verticalLayout_5.addWidget(self.tabsPreferences)
        self.layoutPreferencesDialogButtons = QtWidgets.QHBoxLayout()
        self.layoutPreferencesDialogButtons.setObjectName(
            "layoutPreferencesDialogButtons")
        spacerItem2 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.layoutPreferencesDialogButtons.addItem(spacerItem2)
        self.buttonApplyChanges = QtWidgets.QPushButton(PreferencesDialog)
        self.buttonApplyChanges.setObjectName("buttonApplyChanges")
        self.layoutPreferencesDialogButtons.addWidget(self.buttonApplyChanges)
        self.buttonCancel = QtWidgets.QPushButton(PreferencesDialog)
        self.buttonCancel.setObjectName("buttonCancel")
        self.layoutPreferencesDialogButtons.addWidget(self.buttonCancel)
        self.verticalLayout_5.addLayout(self.layoutPreferencesDialogButtons)

        self.retranslateUi(PreferencesDialog)
        self.tabsPreferences.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(PreferencesDialog)
        PreferencesDialog.setTabOrder(self.tabsPreferences,
                                      self.scrollAreaSearch)
        PreferencesDialog.setTabOrder(self.scrollAreaSearch,
                                      self.optionDlDestinationSame)
        PreferencesDialog.setTabOrder(self.optionDlDestinationSame,
                                      self.optionDlDestinationUser)
        PreferencesDialog.setTabOrder(self.optionDlDestinationUser,
                                      self.inputDlDestinationUser)
        PreferencesDialog.setTabOrder(self.inputDlDestinationUser,
                                      self.buttonDlDestinationUser)
        PreferencesDialog.setTabOrder(self.buttonDlDestinationUser,
                                      self.optionSubFnSame)
        PreferencesDialog.setTabOrder(self.optionSubFnSame,
                                      self.optionSubFnSameLang)
        PreferencesDialog.setTabOrder(self.optionSubFnSameLang,
                                      self.optionSubFnSameLangUploader)
        PreferencesDialog.setTabOrder(self.optionSubFnSameLangUploader,
                                      self.optionSubFnOnline)
        PreferencesDialog.setTabOrder(self.optionSubFnOnline,
                                      self.inputProxyHost)
        PreferencesDialog.setTabOrder(self.inputProxyHost, self.inputProxyPort)
        PreferencesDialog.setTabOrder(self.inputProxyPort,
                                      self.optionInterfaceLanguage)
        PreferencesDialog.setTabOrder(self.optionInterfaceLanguage,
                                      self.buttonHelpTranslation)
        PreferencesDialog.setTabOrder(self.buttonHelpTranslation,
                                      self.optionIntegrationExplorer)
        PreferencesDialog.setTabOrder(self.optionIntegrationExplorer,
                                      self.inputVideoAppLocation)
        PreferencesDialog.setTabOrder(self.inputVideoAppLocation,
                                      self.buttonVideoAppLocationChoose)
        PreferencesDialog.setTabOrder(self.buttonVideoAppLocationChoose,
                                      self.inputVideoAppParams)
        PreferencesDialog.setTabOrder(self.inputVideoAppParams,
                                      self.buttonCancel)
示例#5
0
    def setupUi(self, UploadWidget):
        UploadWidget.setObjectName("UploadWidget")
        UploadWidget.resize(981, 639)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(UploadWidget)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.groupBox_2 = QtWidgets.QGroupBox(UploadWidget)
        self.groupBox_2.setEnabled(True)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Preferred,
            QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.groupBox_2.sizePolicy().hasHeightForWidth())
        self.groupBox_2.setSizePolicy(sizePolicy)
        self.groupBox_2.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.groupBox_2.setAlignment(QtCore.Qt.AlignLeading
                                     | QtCore.Qt.AlignLeft
                                     | QtCore.Qt.AlignVCenter)
        self.groupBox_2.setObjectName("groupBox_2")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox_2)
        self.verticalLayout.setContentsMargins(-1, 1, -1, 1)
        self.verticalLayout.setSpacing(0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.buttonUploadBrowseFolder = QtWidgets.QToolButton(self.groupBox_2)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/images/openfolder.png"),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.buttonUploadBrowseFolder.setIcon(icon)
        self.buttonUploadBrowseFolder.setIconSize(QtCore.QSize(24, 24))
        self.buttonUploadBrowseFolder.setObjectName("buttonUploadBrowseFolder")
        self.horizontalLayout_5.addWidget(self.buttonUploadBrowseFolder)
        self.line_3 = QtWidgets.QFrame(self.groupBox_2)
        self.line_3.setFrameShape(QtWidgets.QFrame.VLine)
        self.line_3.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_3.setObjectName("line_3")
        self.horizontalLayout_5.addWidget(self.line_3)
        self.buttonUploadPlusRow = QtWidgets.QToolButton(self.groupBox_2)
        self.buttonUploadPlusRow.setEnabled(True)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/images/plus.png"), QtGui.QIcon.Normal,
                        QtGui.QIcon.Off)
        self.buttonUploadPlusRow.setIcon(icon1)
        self.buttonUploadPlusRow.setIconSize(QtCore.QSize(24, 24))
        self.buttonUploadPlusRow.setObjectName("buttonUploadPlusRow")
        self.horizontalLayout_5.addWidget(self.buttonUploadPlusRow)
        self.buttonUploadMinusRow = QtWidgets.QToolButton(self.groupBox_2)
        self.buttonUploadMinusRow.setEnabled(False)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/images/minus.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.buttonUploadMinusRow.setIcon(icon2)
        self.buttonUploadMinusRow.setIconSize(QtCore.QSize(24, 24))
        self.buttonUploadMinusRow.setObjectName("buttonUploadMinusRow")
        self.horizontalLayout_5.addWidget(self.buttonUploadMinusRow)
        self.buttonUploadDeleteAllRow = QtWidgets.QToolButton(self.groupBox_2)
        self.buttonUploadDeleteAllRow.setEnabled(True)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(":/images/delete_all.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.buttonUploadDeleteAllRow.setIcon(icon3)
        self.buttonUploadDeleteAllRow.setIconSize(QtCore.QSize(24, 24))
        self.buttonUploadDeleteAllRow.setObjectName("buttonUploadDeleteAllRow")
        self.horizontalLayout_5.addWidget(self.buttonUploadDeleteAllRow)
        self.line_2 = QtWidgets.QFrame(self.groupBox_2)
        self.line_2.setFrameShape(QtWidgets.QFrame.VLine)
        self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_2.setObjectName("line_2")
        self.horizontalLayout_5.addWidget(self.line_2)
        self.buttonUploadUpRow = QtWidgets.QToolButton(self.groupBox_2)
        self.buttonUploadUpRow.setEnabled(False)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(":/images/up.png"), QtGui.QIcon.Normal,
                        QtGui.QIcon.Off)
        self.buttonUploadUpRow.setIcon(icon4)
        self.buttonUploadUpRow.setIconSize(QtCore.QSize(24, 24))
        self.buttonUploadUpRow.setObjectName("buttonUploadUpRow")
        self.horizontalLayout_5.addWidget(self.buttonUploadUpRow)
        self.buttonUploadDownRow = QtWidgets.QToolButton(self.groupBox_2)
        self.buttonUploadDownRow.setEnabled(False)
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(":/images/down.png"), QtGui.QIcon.Normal,
                        QtGui.QIcon.Off)
        self.buttonUploadDownRow.setIcon(icon5)
        self.buttonUploadDownRow.setIconSize(QtCore.QSize(24, 24))
        self.buttonUploadDownRow.setObjectName("buttonUploadDownRow")
        self.horizontalLayout_5.addWidget(self.buttonUploadDownRow)
        spacerItem = QtWidgets.QSpacerItem(401, 33,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_5.addItem(spacerItem)
        self.verticalLayout.addLayout(self.horizontalLayout_5)
        self.uploadView = UploadListView(self.groupBox_2)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Expanding,
            QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.uploadView.sizePolicy().hasHeightForWidth())
        self.uploadView.setSizePolicy(sizePolicy)
        self.uploadView.setMinimumSize(QtCore.QSize(0, 0))
        self.uploadView.setAutoScrollMargin(16)
        self.uploadView.setObjectName("uploadView")
        self.verticalLayout.addWidget(self.uploadView)
        self.verticalLayout_2.addWidget(self.groupBox_2)
        self.uploadDetailsGroupBox = QtWidgets.QGroupBox(UploadWidget)
        self.uploadDetailsGroupBox.setMaximumSize(
            QtCore.QSize(16777215, 16777215))
        self.uploadDetailsGroupBox.setAlignment(QtCore.Qt.AlignLeading
                                                | QtCore.Qt.AlignLeft
                                                | QtCore.Qt.AlignTop)
        self.uploadDetailsGroupBox.setObjectName("uploadDetailsGroupBox")
        self.verticalLayout_7 = QtWidgets.QVBoxLayout(
            self.uploadDetailsGroupBox)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setVerticalSpacing(0)
        self.gridLayout.setObjectName("gridLayout")
        self.label = QtWidgets.QLabel(self.uploadDetailsGroupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.uploadIMDB = QtWidgets.QComboBox(self.uploadDetailsGroupBox)
        self.uploadIMDB.setObjectName("uploadIMDB")
        self.uploadIMDB.addItem("")
        self.gridLayout.addWidget(self.uploadIMDB, 0, 1, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.uploadDetailsGroupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_6.sizePolicy().hasHeightForWidth())
        self.label_6.setSizePolicy(sizePolicy)
        self.label_6.setObjectName("label_6")
        self.gridLayout.addWidget(self.label_6, 2, 0, 1, 1)
        self.buttonUploadFindIMDB = QtWidgets.QPushButton(
            self.uploadDetailsGroupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.buttonUploadFindIMDB.sizePolicy().hasHeightForWidth())
        self.buttonUploadFindIMDB.setSizePolicy(sizePolicy)
        self.buttonUploadFindIMDB.setMinimumSize(QtCore.QSize(0, 0))
        self.buttonUploadFindIMDB.setMaximumSize(QtCore.QSize(120, 16777215))
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap(":/images/search.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.buttonUploadFindIMDB.setIcon(icon6)
        self.buttonUploadFindIMDB.setObjectName("buttonUploadFindIMDB")
        self.gridLayout.addWidget(self.buttonUploadFindIMDB, 0, 2, 1, 1)
        self.label_7 = QtWidgets.QLabel(self.uploadDetailsGroupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_7.sizePolicy().hasHeightForWidth())
        self.label_7.setSizePolicy(sizePolicy)
        self.label_7.setObjectName("label_7")
        self.gridLayout.addWidget(self.label_7, 3, 0, 1, 1)
        self.label_5 = QtWidgets.QLabel(self.uploadDetailsGroupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_5.sizePolicy().hasHeightForWidth())
        self.label_5.setSizePolicy(sizePolicy)
        self.label_5.setObjectName("label_5")
        self.gridLayout.addWidget(self.label_5, 1, 0, 1, 1)
        self.uploadReleaseText = QtWidgets.QLineEdit(
            self.uploadDetailsGroupBox)
        self.uploadReleaseText.setObjectName("uploadReleaseText")
        self.gridLayout.addWidget(self.uploadReleaseText, 2, 1, 1, 1)
        self.uploadComments = QtWidgets.QTextEdit(self.uploadDetailsGroupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.uploadComments.sizePolicy().hasHeightForWidth())
        self.uploadComments.setSizePolicy(sizePolicy)
        self.uploadComments.setMaximumSize(QtCore.QSize(16777215, 50))
        self.uploadComments.setObjectName("uploadComments")
        self.gridLayout.addWidget(self.uploadComments, 3, 1, 1, 1)
        self.horizontalLayout_12 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_12.setObjectName("horizontalLayout_12")
        self.uploadLanguages = LanguageComboBox(self.uploadDetailsGroupBox)
        self.uploadLanguages.setObjectName("uploadLanguages")
        self.horizontalLayout_12.addWidget(self.uploadLanguages)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_12.addItem(spacerItem1)
        self.gridLayout.addLayout(self.horizontalLayout_12, 1, 1, 1, 1)
        self.buttonUpload = QtWidgets.QPushButton(self.uploadDetailsGroupBox)
        self.buttonUpload.setEnabled(True)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.buttonUpload.setFont(font)
        icon7 = QtGui.QIcon()
        icon7.addPixmap(QtGui.QPixmap(":/images/upload.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.buttonUpload.setIcon(icon7)
        self.buttonUpload.setIconSize(QtCore.QSize(24, 24))
        self.buttonUpload.setObjectName("buttonUpload")
        self.gridLayout.addWidget(self.buttonUpload, 3, 2, 1, 1)
        self.verticalLayout_7.addLayout(self.gridLayout)
        self.verticalLayout_2.addWidget(self.uploadDetailsGroupBox)

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