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

# Form implementation generated from reading ui file 'machine.ui'
#
# Created by: PyQt5 UI code generator 5.15.11
#
# 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_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.setEnabled(True)
        Dialog.resize(703, 477)
        self.verticalLayout = QtWidgets.QVBoxLayout(Dialog)
        self.verticalLayout.setObjectName("verticalLayout")
        self.splitter = QtWidgets.QSplitter(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, 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.machineTable = QtWidgets.QTableView(self.splitter)
        self.machineTable.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded)
        self.machineTable.setAlternatingRowColors(True)
        self.machineTable.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection)
        self.machineTable.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
        self.machineTable.setObjectName("machineTable")
        self.previewWidget = QtWidgets.QWidget(self.splitter)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.previewWidget.sizePolicy().hasHeightForWidth())
        self.previewWidget.setSizePolicy(sizePolicy)
        self.previewWidget.setObjectName("previewWidget")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.previewWidget)
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout.setSpacing(0)
        self.horizontalLayout.setObjectName("horizontalLayout")
        spacerItem = QtWidgets.QSpacerItem(215, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.slideshowWidget = Slideshow(self.previewWidget)
        self.slideshowWidget.setEnabled(True)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.slideshowWidget.sizePolicy().hasHeightForWidth())
        self.slideshowWidget.setSizePolicy(sizePolicy)
        self.slideshowWidget.setMinimumSize(QtCore.QSize(150, 100))
        self.slideshowWidget.setObjectName("slideshowWidget")
        self.horizontalLayout.addWidget(self.slideshowWidget)
        spacerItem1 = QtWidgets.QSpacerItem(215, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem1)
        self.verticalLayout.addWidget(self.splitter)
        self.hboxlayout = QtWidgets.QHBoxLayout()
        self.hboxlayout.setContentsMargins(0, 0, 0, 0)
        self.hboxlayout.setSpacing(6)
        self.hboxlayout.setObjectName("hboxlayout")
        self.refreshButton = QtWidgets.QPushButton(Dialog)
        self.refreshButton.setObjectName("refreshButton")
        self.hboxlayout.addWidget(self.refreshButton)
        spacerItem2 = QtWidgets.QSpacerItem(383, 32, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.hboxlayout.addItem(spacerItem2)
        self.okButton = QtWidgets.QPushButton(Dialog)
        self.okButton.setEnabled(False)
        self.okButton.setObjectName("okButton")
        self.hboxlayout.addWidget(self.okButton)
        self.cancelButton = QtWidgets.QPushButton(Dialog)
        self.cancelButton.setObjectName("cancelButton")
        self.hboxlayout.addWidget(self.cancelButton)
        self.verticalLayout.addLayout(self.hboxlayout)

        self.retranslateUi(Dialog)
        self.okButton.clicked.connect(Dialog.accept) # type: ignore
        self.cancelButton.clicked.connect(Dialog.reject) # type: ignore
        self.machineTable.activated['QModelIndex'].connect(Dialog.accept) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(Dialog)

    def retranslateUi(self, Dialog):
        _translate = QtCore.QCoreApplication.translate
        Dialog.setWindowTitle(_translate("Dialog", "Choose MSX Machine"))
        self.refreshButton.setToolTip(_translate("Dialog", "Refresh the list of machines"))
        self.refreshButton.setText(_translate("Dialog", "Refresh"))
        self.okButton.setToolTip(_translate("Dialog", "Confirm new selection"))
        self.okButton.setText(_translate("Dialog", "OK"))
        self.cancelButton.setToolTip(_translate("Dialog", "Keep previous selection"))
        self.cancelButton.setText(_translate("Dialog", "Cancel"))
from slideshow import Slideshow
