Exemplo n.º 1
0
class Ui_IMDBSearchDialog(object):
    def setupUi(self, IMDBSearchDialog):
        IMDBSearchDialog.setObjectName("IMDBSearchDialog")
        IMDBSearchDialog.setWindowModality(QtCore.Qt.ApplicationModal)
        IMDBSearchDialog.setModal(True)
        self._2 = QtWidgets.QVBoxLayout(IMDBSearchDialog)
        self._2.setObjectName("_2")
        self.label = QtWidgets.QLabel(IMDBSearchDialog)
        self.label.setObjectName("label")
        self._2.addWidget(self.label)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.movieSearch = QtWidgets.QLineEdit(IMDBSearchDialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.movieSearch.sizePolicy().hasHeightForWidth())
        self.movieSearch.setSizePolicy(sizePolicy)
        self.movieSearch.setText("")
        self.movieSearch.setObjectName("movieSearch")
        self.horizontalLayout_2.addWidget(self.movieSearch)
        self.providerSearch = ProviderComboBox(IMDBSearchDialog)
        self.providerSearch.setObjectName("providerSearch")
        self.horizontalLayout_2.addWidget(self.providerSearch)
        self.searchMovieButton = QtWidgets.QPushButton(IMDBSearchDialog)
        self.searchMovieButton.setObjectName("searchMovieButton")
        self.horizontalLayout_2.addWidget(self.searchMovieButton)
        self._2.addLayout(self.horizontalLayout_2)
        self.searchResultsView = ImdbListView(IMDBSearchDialog)
        self.searchResultsView.setObjectName("searchResultsView")
        self._2.addWidget(self.searchResultsView)
        self.hboxlayout = QtWidgets.QHBoxLayout()
        self.hboxlayout.setObjectName("hboxlayout")
        self.movieInfoButton = QtWidgets.QPushButton(IMDBSearchDialog)
        self.movieInfoButton.setEnabled(False)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/images/info.png"), QtGui.QIcon.Normal,
                       QtGui.QIcon.Off)
        self.movieInfoButton.setIcon(icon)
        self.movieInfoButton.setObjectName("movieInfoButton")
        self.hboxlayout.addWidget(self.movieInfoButton)
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.hboxlayout.addItem(spacerItem)
        self.okButton = QtWidgets.QPushButton(IMDBSearchDialog)
        self.okButton.setObjectName("okButton")
        self.hboxlayout.addWidget(self.okButton)
        self.cancelButton = QtWidgets.QPushButton(IMDBSearchDialog)
        self.cancelButton.setObjectName("cancelButton")
        self.hboxlayout.addWidget(self.cancelButton)
        self._2.addLayout(self.hboxlayout)

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

    def retranslateUi(self, IMDBSearchDialog):
        _translate = QtCore.QCoreApplication.translate
        IMDBSearchDialog.setWindowTitle(_("IMDb search"))
        self.label.setText(_("Enter the Movie Title or IMDb id:"))
        self.searchMovieButton.setText(_("Search"))
        self.movieInfoButton.setText(_("Movie Info"))
        self.okButton.setText(_("OK"))
        self.cancelButton.setText(_("Cancel"))
class Ui_SearchNameWidget(object):
    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.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.searchProvidersCombo = ProviderComboBox(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.searchProvidersCombo.sizePolicy().hasHeightForWidth())
        self.searchProvidersCombo.setSizePolicy(sizePolicy)
        self.searchProvidersCombo.setCurrentText("")
        self.searchProvidersCombo.setObjectName("searchProvidersCombo")
        self.gridLayout_2.addWidget(self.searchProvidersCombo, 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)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/images/search.png"),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.buttonSearchByName.setIcon(icon)
        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 = MoviesTreeView(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)
        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)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/images/download.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.buttonDownloadByTitle.setIcon(icon1)
        self.buttonDownloadByTitle.setObjectName("buttonDownloadByTitle")
        self.horizontalLayout_3.addWidget(self.buttonDownloadByTitle)
        self.verticalLayout.addLayout(self.horizontalLayout_3)

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

    def retranslateUi(self, SearchNameWidget):
        _translate = QtCore.QCoreApplication.translate
        SearchNameWidget.setWindowTitle(_("Form"))
        self.label_3.setText(_("Site:"))
        self.label_10.setText(_("Filter by :"))
        self.buttonSearchByName.setText(_("Search"))
        self.label_12.setText(_("Subtitles found:"))
        self.buttonIMDBByTitle.setText(_("Movie Info"))
        self.buttonDownloadByTitle.setText(_("Download"))
Exemplo n.º 3
0
class Ui_PreferencesDialog(object):
    def setupUi(self, PreferencesDialog):
        PreferencesDialog.setObjectName("PreferencesDialog")
        PreferencesDialog.setWindowModality(QtCore.Qt.WindowModal)
        PreferencesDialog.resize(719, 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.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, 655, 372))
        self.scrollAreaWidgetSearch.setObjectName("scrollAreaWidgetSearch")
        self.vbox_B = QtWidgets.QVBoxLayout(self.scrollAreaWidgetSearch)
        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.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.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.tabProviders = QtWidgets.QWidget()
        self.tabProviders.setObjectName("tabProviders")
        self.verticalLayout_9 = QtWidgets.QVBoxLayout(self.tabProviders)
        self.verticalLayout_9.setObjectName("verticalLayout_9")
        self.providerComboBox = ProviderComboBox(self.tabProviders)
        self.providerComboBox.setObjectName("providerComboBox")
        self.verticalLayout_9.addWidget(self.providerComboBox)
        self.providerStack = QtWidgets.QStackedWidget(self.tabProviders)
        self.providerStack.setObjectName("providerStack")
        self.verticalLayout_9.addWidget(self.providerStack)
        self.tabsPreferences.addTab(self.tabProviders, "")
        self.tabOthers = QtWidgets.QWidget()
        self.tabOthers.setObjectName("tabOthers")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.tabOthers)
        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.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)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem)
        self.tabsPreferences.addTab(self.tabOthers, "")
        self.verticalLayout_5.addWidget(self.tabsPreferences)
        self.layoutPreferencesDialogButtons = QtWidgets.QHBoxLayout()
        self.layoutPreferencesDialogButtons.setObjectName(
            "layoutPreferencesDialogButtons")
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.layoutPreferencesDialogButtons.addItem(spacerItem1)
        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)
        QtCore.QMetaObject.connectSlotsByName(PreferencesDialog)
        PreferencesDialog.setTabOrder(self.tabsPreferences,
                                      self.scrollAreaSearch)
        PreferencesDialog.setTabOrder(self.scrollAreaSearch,
                                      self.optionDlDestinationSame)
        PreferencesDialog.setTabOrder(self.optionDlDestinationSame,
                                      self.optionDlDestinationAsk)
        PreferencesDialog.setTabOrder(self.optionDlDestinationAsk,
                                      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.optionUlDefaultLanguage)
        PreferencesDialog.setTabOrder(self.optionUlDefaultLanguage,
                                      self.optionInterfaceLanguage)
        PreferencesDialog.setTabOrder(self.optionInterfaceLanguage,
                                      self.buttonHelpTranslation)
        PreferencesDialog.setTabOrder(self.buttonHelpTranslation,
                                      self.inputVideoAppLocation)
        PreferencesDialog.setTabOrder(self.inputVideoAppLocation,
                                      self.buttonVideoAppLocationChoose)
        PreferencesDialog.setTabOrder(self.buttonVideoAppLocationChoose,
                                      self.inputVideoAppParams)
        PreferencesDialog.setTabOrder(self.inputVideoAppParams,
                                      self.buttonApplyChanges)
        PreferencesDialog.setTabOrder(self.buttonApplyChanges,
                                      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.tabsPreferences.setTabText(
            self.tabsPreferences.indexOf(self.tabProviders), _("Providers"))
        self.groupInterface.setTitle(_("Interface"))
        self.textInterfaceLanguage.setText(_("Interface Language:"))
        self.buttonHelpTranslation.setText(_("Translate This Application..."))
        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"))
Exemplo n.º 4
0
class Ui_UploadWidget(object):
    def setupUi(self, UploadWidget):
        UploadWidget.setObjectName("UploadWidget")
        UploadWidget.resize(935, 725)
        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.uploadDetailsWidget = QtWidgets.QWidget(self.groupBox_2)
        self.uploadDetailsWidget.setMaximumSize(
            QtCore.QSize(16777215, 16777215))
        self.uploadDetailsWidget.setObjectName("uploadDetailsWidget")
        self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.uploadDetailsWidget)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setVerticalSpacing(0)
        self.gridLayout.setObjectName("gridLayout")
        self.labelReleaseName = QtWidgets.QLabel(self.uploadDetailsWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.labelReleaseName.sizePolicy().hasHeightForWidth())
        self.labelReleaseName.setSizePolicy(sizePolicy)
        self.labelReleaseName.setObjectName("labelReleaseName")
        self.gridLayout.addWidget(self.labelReleaseName, 0, 0, 1, 1)
        self.comboAutomaticTranslation = QtWidgets.QCheckBox(
            self.uploadDetailsWidget)
        self.comboAutomaticTranslation.setText("")
        self.comboAutomaticTranslation.setObjectName(
            "comboAutomaticTranslation")
        self.gridLayout.addWidget(self.comboAutomaticTranslation, 7, 2, 1, 1)
        self.labelTranslator = QtWidgets.QLabel(self.uploadDetailsWidget)
        self.labelTranslator.setObjectName("labelTranslator")
        self.gridLayout.addWidget(self.labelTranslator, 9, 0, 1, 1)
        self.comboHearingImpaired = QtWidgets.QCheckBox(
            self.uploadDetailsWidget)
        self.comboHearingImpaired.setText("")
        self.comboHearingImpaired.setObjectName("comboHearingImpaired")
        self.gridLayout.addWidget(self.comboHearingImpaired, 6, 2, 1, 1)
        self.horizontalLayout_12 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_12.setObjectName("horizontalLayout_12")
        self.uploadLanguages = LanguageComboBox(self.uploadDetailsWidget)
        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, 2, 2, 1, 2)
        self.labelHearingImpaired = QtWidgets.QLabel(self.uploadDetailsWidget)
        self.labelHearingImpaired.setObjectName("labelHearingImpaired")
        self.gridLayout.addWidget(self.labelHearingImpaired, 6, 0, 1, 1)
        self.label = QtWidgets.QLabel(self.uploadDetailsWidget)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 12, 0, 1, 1)
        self.buttonUploadFindIMDB = QtWidgets.QPushButton(
            self.uploadDetailsWidget)
        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, 1, 3, 1, 1)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.gridLayout.addLayout(self.horizontalLayout_2, 13, 0, 1, 4)
        self.labelMovieTitle = QtWidgets.QLabel(self.uploadDetailsWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.labelMovieTitle.sizePolicy().hasHeightForWidth())
        self.labelMovieTitle.setSizePolicy(sizePolicy)
        self.labelMovieTitle.setObjectName("labelMovieTitle")
        self.gridLayout.addWidget(self.labelMovieTitle, 1, 0, 1, 1)
        self.buttonUpload = QtWidgets.QPushButton(self.uploadDetailsWidget)
        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, 12, 3, 1, 1)
        self.uploadTranslator = QtWidgets.QLineEdit(self.uploadDetailsWidget)
        self.uploadTranslator.setObjectName("uploadTranslator")
        self.gridLayout.addWidget(self.uploadTranslator, 9, 2, 1, 2)
        self.labelSubtitleLanguage = QtWidgets.QLabel(self.uploadDetailsWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.labelSubtitleLanguage.sizePolicy().hasHeightForWidth())
        self.labelSubtitleLanguage.setSizePolicy(sizePolicy)
        self.labelSubtitleLanguage.setObjectName("labelSubtitleLanguage")
        self.gridLayout.addWidget(self.labelSubtitleLanguage, 2, 0, 1, 1)
        self.comboHighDefinition = QtWidgets.QCheckBox(
            self.uploadDetailsWidget)
        self.comboHighDefinition.setText("")
        self.comboHighDefinition.setObjectName("comboHighDefinition")
        self.gridLayout.addWidget(self.comboHighDefinition, 5, 2, 1, 1)
        self.uploadReleaseText = QtWidgets.QLineEdit(self.uploadDetailsWidget)
        self.uploadReleaseText.setObjectName("uploadReleaseText")
        self.gridLayout.addWidget(self.uploadReleaseText, 0, 2, 1, 2)
        self.uploadComments = QtWidgets.QTextEdit(self.uploadDetailsWidget)
        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, 11, 2, 1, 2)
        self.uploadIMDB = QtWidgets.QComboBox(self.uploadDetailsWidget)
        self.uploadIMDB.setObjectName("uploadIMDB")
        self.uploadIMDB.addItem("")
        self.gridLayout.addWidget(self.uploadIMDB, 1, 2, 1, 1)
        self.labelAutomaticTranslation = QtWidgets.QLabel(
            self.uploadDetailsWidget)
        self.labelAutomaticTranslation.setObjectName(
            "labelAutomaticTranslation")
        self.gridLayout.addWidget(self.labelAutomaticTranslation, 7, 0, 1, 1)
        self.labelHighDefinition = QtWidgets.QLabel(self.uploadDetailsWidget)
        self.labelHighDefinition.setObjectName("labelHighDefinition")
        self.gridLayout.addWidget(self.labelHighDefinition, 5, 0, 1, 1)
        self.labelComments = QtWidgets.QLabel(self.uploadDetailsWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.labelComments.sizePolicy().hasHeightForWidth())
        self.labelComments.setSizePolicy(sizePolicy)
        self.labelComments.setObjectName("labelComments")
        self.gridLayout.addWidget(self.labelComments, 11, 0, 1, 1)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.comboProvider = ProviderComboBox(self.uploadDetailsWidget)
        self.comboProvider.setObjectName("comboProvider")
        self.horizontalLayout.addWidget(self.comboProvider)
        spacerItem2 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem2)
        self.gridLayout.addLayout(self.horizontalLayout, 12, 2, 1, 1)
        self.verticalLayout_7.addLayout(self.gridLayout)
        self.verticalLayout.addWidget(self.uploadDetailsWidget)
        self.verticalLayout_2.addWidget(self.groupBox_2)

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

    def retranslateUi(self, UploadWidget):
        _translate = QtCore.QCoreApplication.translate
        UploadWidget.setWindowTitle(_("Form"))
        self.groupBox_2.setTitle(
            _("Select the videos and subtitles  (only subtitles will be uploaded):"
              ))
        self.labelReleaseName.setText(_("Release name:"))
        self.labelTranslator.setText(_("Translator"))
        self.labelHearingImpaired.setText(_("Hearing impaired"))
        self.label.setText(_("Provider:"))
        self.buttonUploadFindIMDB.setText(_("Find"))
        self.labelMovieTitle.setText(_("Movie Title:"))
        self.buttonUpload.setText(_("Upload"))
        self.labelSubtitleLanguage.setText(_("Subtitle Language:"))
        self.uploadIMDB.setItemText(
            0, _("Click on the Find button to identify the movie"))
        self.labelAutomaticTranslation.setText(_("Automatic translation"))
        self.labelHighDefinition.setText(_("High Definition"))
        self.labelComments.setText(_("Comments:"))