# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'ytdl.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt5 import QtCore, QtGui, QtWidgets


class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.setWindowModality(QtCore.Qt.ApplicationModal)
        MainWindow.resize(1240, 404)
        MainWindow.setMinimumSize(QtCore.QSize(640, 301))
        MainWindow.setMaximumSize(QtCore.QSize(1240, 404))
        MainWindow.setBaseSize(QtCore.QSize(620, 420))
        MainWindow.setMouseTracking(False)
        MainWindow.setFocusPolicy(QtCore.Qt.NoFocus)
        MainWindow.setWindowOpacity(1.0)
        MainWindow.setAutoFillBackground(False)
        MainWindow.setDocumentMode(False)
        MainWindow.setUnifiedTitleAndToolBarOnMac(True)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.centralwidget.setAutoFillBackground(False)
        self.centralwidget.setObjectName("centralwidget")
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.centralwidget)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.splitter = QtWidgets.QSplitter(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.splitter.sizePolicy().hasHeightForWidth())
        self.splitter.setSizePolicy(sizePolicy)
        self.splitter.setOrientation(QtCore.Qt.Vertical)
        self.splitter.setObjectName("splitter")
        self.horizontalLayoutWidget = QtWidgets.QWidget(self.splitter)
        self.horizontalLayoutWidget.setObjectName("horizontalLayoutWidget")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget)
        self.horizontalLayout.setSizeConstraint(QtWidgets.QLayout.SetMinAndMaxSize)
        self.horizontalLayout.setContentsMargins(0, 10, 0, 10)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label = QtWidgets.QLabel(self.horizontalLayoutWidget)
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(12)
        font.setBold(True)
        font.setWeight(75)
        self.label.setFont(font)
        self.label.setObjectName("label")
        self.horizontalLayout.addWidget(self.label)
        self.lineEdit = QtWidgets.QLineEdit(self.horizontalLayoutWidget)
        font = QtGui.QFont()
        font.setFamily("Sans")
        self.lineEdit.setFont(font)
        self.lineEdit.setInputMethodHints(QtCore.Qt.ImhNone)
        self.lineEdit.setText("")
        self.lineEdit.setPlaceholderText("")
        self.lineEdit.setCursorMoveStyle(QtCore.Qt.VisualMoveStyle)
        self.lineEdit.setClearButtonEnabled(True)
        self.lineEdit.setObjectName("lineEdit")
        self.horizontalLayout.addWidget(self.lineEdit)
        self.comboBox = QtWidgets.QComboBox(self.horizontalLayoutWidget)
        self.comboBox.setEditable(False)
        self.comboBox.setObjectName("comboBox")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.horizontalLayout.addWidget(self.comboBox)
        self.playButt = QtWidgets.QPushButton(self.horizontalLayoutWidget)
        self.playButt.setObjectName("playButt")
        self.horizontalLayout.addWidget(self.playButt)
        self.infoButt = QtWidgets.QPushButton(self.horizontalLayoutWidget)
        self.infoButt.setObjectName("infoButt")
        self.horizontalLayout.addWidget(self.infoButt)
        self.downButt = QtWidgets.QPushButton(self.horizontalLayoutWidget)
        self.downButt.setObjectName("downButt")
        self.horizontalLayout.addWidget(self.downButt)
        self.horizontalLayoutWidget_2 = QtWidgets.QWidget(self.splitter)
        self.horizontalLayoutWidget_2.setObjectName("horizontalLayoutWidget_2")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget_2)
        self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint)
        self.gridLayout_2.setHorizontalSpacing(2)
        self.gridLayout_2.setVerticalSpacing(0)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.descLabel = QtWidgets.QTextBrowser(self.horizontalLayoutWidget_2)
        self.descLabel.setReadOnly(True)
        self.descLabel.setTextInteractionFlags(QtCore.Qt.TextBrowserInteraction)
        self.descLabel.setOpenExternalLinks(True)
        self.descLabel.setOpenLinks(True)
        self.descLabel.setObjectName("descLabel")
        self.gridLayout_2.addWidget(self.descLabel, 4, 1, 1, 1)
        self.thumbLabel = QtWidgets.QLabel(self.horizontalLayoutWidget_2)
        self.thumbLabel.setMinimumSize(QtCore.QSize(290, 0))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(13)
        font.setBold(True)
        font.setWeight(75)
        self.thumbLabel.setFont(font)
        self.thumbLabel.setObjectName("thumbLabel")
        self.gridLayout_2.addWidget(self.thumbLabel, 1, 0, 1, 1, QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.thumbIMG = QtWidgets.QLabel(self.horizontalLayoutWidget_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.thumbIMG.sizePolicy().hasHeightForWidth())
        self.thumbIMG.setSizePolicy(sizePolicy)
        self.thumbIMG.setMinimumSize(QtCore.QSize(290, 0))
        self.thumbIMG.setMaximumSize(QtCore.QSize(400, 16777215))
        self.thumbIMG.setAutoFillBackground(False)
        self.thumbIMG.setStyleSheet("border-color: #a2a2a2;\n"
"border: 0.5px solid;\n"
"border-radius: 1.5px;")
        self.thumbIMG.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.thumbIMG.setFrameShadow(QtWidgets.QFrame.Plain)
        self.thumbIMG.setText("")
        self.thumbIMG.setScaledContents(True)
        self.thumbIMG.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
        self.thumbIMG.setOpenExternalLinks(True)
        self.thumbIMG.setObjectName("thumbIMG")
        self.gridLayout_2.addWidget(self.thumbIMG, 4, 0, 1, 1)
        self.outputLabel = QtWidgets.QLabel(self.horizontalLayoutWidget_2)
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(13)
        font.setBold(True)
        font.setWeight(75)
        self.outputLabel.setFont(font)
        self.outputLabel.setObjectName("outputLabel")
        self.gridLayout_2.addWidget(self.outputLabel, 1, 1, 1, 1)
        self.horizontalLayout_2.addLayout(self.gridLayout_2)
        self.horizontalLayoutWidget_4 = QtWidgets.QWidget(self.splitter)
        self.horizontalLayoutWidget_4.setObjectName("horizontalLayoutWidget_4")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget_4)
        self.horizontalLayout_4.setSizeConstraint(QtWidgets.QLayout.SetMinAndMaxSize)
        self.horizontalLayout_4.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.speedLable = QtWidgets.QLabel(self.horizontalLayoutWidget_4)
        self.speedLable.setMinimumSize(QtCore.QSize(0, 5))
        self.speedLable.setMaximumSize(QtCore.QSize(16777215, 20))
        self.speedLable.setObjectName("speedLable")
        self.horizontalLayout_4.addWidget(self.speedLable)
        self.progressBar = QtWidgets.QProgressBar(self.horizontalLayoutWidget_4)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.progressBar.sizePolicy().hasHeightForWidth())
        self.progressBar.setSizePolicy(sizePolicy)
        self.progressBar.setProperty("value", 0)
        self.progressBar.setTextVisible(True)
        self.progressBar.setInvertedAppearance(False)
        self.progressBar.setObjectName("progressBar")
        self.horizontalLayout_4.addWidget(self.progressBar)
        self.horizontalLayout_6.addWidget(self.splitter)
        MainWindow.setCentralWidget(self.centralwidget)
        self.statusBar = QtWidgets.QStatusBar(MainWindow)
        self.statusBar.setObjectName("statusBar")
        MainWindow.setStatusBar(self.statusBar)
        self.dockWidget = QtWidgets.QDockWidget(MainWindow)
        self.dockWidget.setMinimumSize(QtCore.QSize(128, 104))
        self.dockWidget.setMaximumSize(QtCore.QSize(524287, 524287))
        self.dockWidget.setBaseSize(QtCore.QSize(366, 0))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setBold(False)
        font.setItalic(False)
        font.setWeight(50)
        self.dockWidget.setFont(font)
        self.dockWidget.setAcceptDrops(False)
        self.dockWidget.setStyleSheet("")
        self.dockWidget.setInputMethodHints(QtCore.Qt.ImhNone)
        self.dockWidget.setFloating(False)
        self.dockWidget.setFeatures(QtWidgets.QDockWidget.DockWidgetFloatable|QtWidgets.QDockWidget.DockWidgetMovable)
        self.dockWidget.setAllowedAreas(QtCore.Qt.LeftDockWidgetArea)
        self.dockWidget.setObjectName("dockWidget")
        self.dockWidgetContents = QtWidgets.QWidget()
        self.dockWidgetContents.setObjectName("dockWidgetContents")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.dockWidgetContents)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.stackedWidget = QtWidgets.QStackedWidget(self.dockWidgetContents)
        self.stackedWidget.setObjectName("stackedWidget")
        self.page = QtWidgets.QWidget()
        self.page.setObjectName("page")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.page)
        self.verticalLayout.setObjectName("verticalLayout")
        self.mpvLable = QtWidgets.QLabel(self.page)
        self.mpvLable.setMinimumSize(QtCore.QSize(0, 30))
        self.mpvLable.setMaximumSize(QtCore.QSize(16777215, 30))
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setBold(True)
        font.setItalic(False)
        font.setWeight(75)
        self.mpvLable.setFont(font)
        self.mpvLable.setObjectName("mpvLable")
        self.verticalLayout.addWidget(self.mpvLable)
        self.widget = QtWidgets.QWidget(self.page)
        self.widget.setMinimumSize(QtCore.QSize(100, 0))
        self.widget.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.widget.setStyleSheet("border-color: black;\n"
"border: 1px solid;\n"
"border-radius: 1.5px;")
        self.widget.setObjectName("widget")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.widget)
        self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_2.setSpacing(0)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.verticalLayout.addWidget(self.widget)
        self.stackedWidget.addWidget(self.page)
        self.page_2 = QtWidgets.QWidget()
        self.page_2.setObjectName("page_2")
        self.stackedWidget.addWidget(self.page_2)
        self.verticalLayout_3.addWidget(self.stackedWidget)
        self.dockWidget.setWidget(self.dockWidgetContents)
        MainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(1), self.dockWidget)

        self.retranslateUi(MainWindow)
        self.comboBox.setCurrentIndex(0)
        self.stackedWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "YouTube-DL GUI (QT based)"))
        self.label.setText(_translate("MainWindow", "URL:"))
        self.comboBox.setCurrentText(_translate("MainWindow", "Video mode (mp4)"))
        self.comboBox.setItemText(0, _translate("MainWindow", "Video mode (mp4)"))
        self.comboBox.setItemText(1, _translate("MainWindow", "Audio mode (m4u/webm)"))
        self.playButt.setText(_translate("MainWindow", "Play Video (MPV)"))
        self.infoButt.setText(_translate("MainWindow", "Get Info"))
        self.downButt.setText(_translate("MainWindow", "Download"))
        self.descLabel.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Open Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Ubuntu\'; font-size:11pt;\"><br /></p></body></html>"))
        self.thumbLabel.setText(_translate("MainWindow", "Thumbnail"))
        self.outputLabel.setText(_translate("MainWindow", "Output"))
        self.speedLable.setText(_translate("MainWindow", "Speed: None"))
        self.progressBar.setFormat(_translate("MainWindow", "%p%"))
        self.dockWidget.setWindowTitle(_translate("MainWindow", "Additional options"))
        self.mpvLable.setText(_translate("MainWindow", "MPV"))


if __name__ == "__main__":
    import sys
    app = QtWidgets.QApplication(sys.argv)
    MainWindow = QtWidgets.QMainWindow()
    ui = Ui_MainWindow()
    ui.setupUi(MainWindow)
    MainWindow.show()
    sys.exit(app.exec_())
