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

# Form implementation generated from reading ui file 'retrolink/ui/config.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_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(750, 500)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout_4.setContentsMargins(10, 10, 10, 10)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.tabWidget = QtWidgets.QTabWidget(self.centralwidget)
        self.tabWidget.setObjectName("tabWidget")
        self.tab_3 = QtWidgets.QWidget()
        self.tab_3.setObjectName("tab_3")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.tab_3)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.groupBox_2 = QtWidgets.QGroupBox(self.tab_3)
        self.groupBox_2.setObjectName("groupBox_2")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox_2)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.udevButton = QtWidgets.QPushButton(self.groupBox_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.udevButton.sizePolicy().hasHeightForWidth())
        self.udevButton.setSizePolicy(sizePolicy)
        self.udevButton.setMinimumSize(QtCore.QSize(200, 0))
        self.udevButton.setObjectName("udevButton")
        self.verticalLayout_2.addWidget(self.udevButton)
        self.label_2 = QtWidgets.QLabel(self.groupBox_2)
        font = QtGui.QFont()
        font.setFamily("Bitstream Vera Sans")
        font.setItalic(True)
        self.label_2.setFont(font)
        self.label_2.setObjectName("label_2")
        self.verticalLayout_2.addWidget(self.label_2)
        self.gridLayout_4.addWidget(self.groupBox_2, 1, 0, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_4.addItem(spacerItem, 1, 1, 1, 1)
        self.line = QtWidgets.QFrame(self.tab_3)
        self.line.setFrameShadow(QtWidgets.QFrame.Plain)
        self.line.setFrameShape(QtWidgets.QFrame.VLine)
        self.line.setObjectName("line")
        self.gridLayout_4.addWidget(self.line, 1, 2, 1, 1)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_4.addItem(spacerItem1, 1, 3, 1, 1)
        self.groupBox_3 = QtWidgets.QGroupBox(self.tab_3)
        self.groupBox_3.setObjectName("groupBox_3")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.groupBox_3)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.hotkeyLine = QtWidgets.QLineEdit(self.groupBox_3)
        self.hotkeyLine.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.hotkeyLine.sizePolicy().hasHeightForWidth())
        self.hotkeyLine.setSizePolicy(sizePolicy)
        self.hotkeyLine.setAlignment(QtCore.Qt.AlignCenter)
        self.hotkeyLine.setReadOnly(True)
        self.hotkeyLine.setObjectName("hotkeyLine")
        self.horizontalLayout.addWidget(self.hotkeyLine)
        self.gridLayout_4.addWidget(self.groupBox_3, 1, 4, 1, 1)
        self.groupBox = QtWidgets.QGroupBox(self.tab_3)
        self.groupBox.setObjectName("groupBox")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox)
        self.verticalLayout.setObjectName("verticalLayout")
        self.devicesTree = QtWidgets.QTreeWidget(self.groupBox)
        self.devicesTree.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.devicesTree.setAlternatingRowColors(True)
        self.devicesTree.setIndentation(5)
        self.devicesTree.setObjectName("devicesTree")
        self.devicesTree.header().setDefaultSectionSize(190)
        self.devicesTree.header().setMinimumSectionSize(190)
        self.devicesTree.header().setStretchLastSection(True)
        self.verticalLayout.addWidget(self.devicesTree)
        spacerItem2 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        self.verticalLayout.addItem(spacerItem2)
        self.gridLayout_4.addWidget(self.groupBox, 0, 0, 1, 5)
        self.tabWidget.addTab(self.tab_3, "")
        self.tab_4 = QtWidgets.QWidget()
        self.tab_4.setObjectName("tab_4")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.tab_4)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.groupBox_4 = QtWidgets.QGroupBox(self.tab_4)
        self.groupBox_4.setObjectName("groupBox_4")
        self.gridLayout = QtWidgets.QGridLayout(self.groupBox_4)
        self.gridLayout.setObjectName("gridLayout")
        self.label_3 = QtWidgets.QLabel(self.groupBox_4)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 0, 0, 1, 1)
        self.label_4 = QtWidgets.QLabel(self.groupBox_4)
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 1, 0, 1, 1)
        self.frontendLine = QtWidgets.QLineEdit(self.groupBox_4)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(3)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.frontendLine.sizePolicy().hasHeightForWidth())
        self.frontendLine.setSizePolicy(sizePolicy)
        self.frontendLine.setObjectName("frontendLine")
        self.gridLayout.addWidget(self.frontendLine, 0, 1, 1, 1)
        self.emulatorsLine = QtWidgets.QLineEdit(self.groupBox_4)
        self.emulatorsLine.setObjectName("emulatorsLine")
        self.gridLayout.addWidget(self.emulatorsLine, 1, 1, 1, 1)
        self.verticalLayout_3.addWidget(self.groupBox_4)
        spacerItem3 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        self.verticalLayout_3.addItem(spacerItem3)
        self.groupBox_5 = QtWidgets.QGroupBox(self.tab_4)
        self.groupBox_5.setObjectName("groupBox_5")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox_5)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.label_5 = QtWidgets.QLabel(self.groupBox_5)
        self.label_5.setObjectName("label_5")
        self.gridLayout_2.addWidget(self.label_5, 1, 0, 1, 1)
        self.disconnectBox = QtWidgets.QCheckBox(self.groupBox_5)
        self.disconnectBox.setObjectName("disconnectBox")
        self.gridLayout_2.addWidget(self.disconnectBox, 3, 0, 1, 2)
        self.label = QtWidgets.QLabel(self.groupBox_5)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setObjectName("label")
        self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1)
        self.execBeforeLine = QtWidgets.QLineEdit(self.groupBox_5)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(3)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.execBeforeLine.sizePolicy().hasHeightForWidth())
        self.execBeforeLine.setSizePolicy(sizePolicy)
        self.execBeforeLine.setObjectName("execBeforeLine")
        self.gridLayout_2.addWidget(self.execBeforeLine, 0, 1, 1, 1)
        self.execAfterLine = QtWidgets.QLineEdit(self.groupBox_5)
        self.execAfterLine.setObjectName("execAfterLine")
        self.gridLayout_2.addWidget(self.execAfterLine, 1, 1, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.groupBox_5)
        self.label_6.setObjectName("label_6")
        self.gridLayout_2.addWidget(self.label_6, 2, 0, 1, 1)
        self.holdDelayBox = QtWidgets.QSpinBox(self.groupBox_5)
        self.holdDelayBox.setMaximumSize(QtCore.QSize(120, 16777215))
        self.holdDelayBox.setMaximum(10000)
        self.holdDelayBox.setSingleStep(100)
        self.holdDelayBox.setObjectName("holdDelayBox")
        self.gridLayout_2.addWidget(self.holdDelayBox, 2, 1, 1, 1)
        self.verticalLayout_3.addWidget(self.groupBox_5)
        spacerItem4 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem4)
        self.tabWidget.addTab(self.tab_4, "")
        self.verticalLayout_4.addWidget(self.tabWidget)
        spacerItem5 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        self.verticalLayout_4.addItem(spacerItem5)
        self.buttonBox = QtWidgets.QDialogButtonBox(self.centralwidget)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.verticalLayout_4.addWidget(self.buttonBox)
        MainWindow.setCentralWidget(self.centralwidget)

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
        MainWindow.setTabOrder(self.tabWidget, self.devicesTree)
        MainWindow.setTabOrder(self.devicesTree, self.udevButton)
        MainWindow.setTabOrder(self.udevButton, self.hotkeyLine)
        MainWindow.setTabOrder(self.hotkeyLine, self.frontendLine)
        MainWindow.setTabOrder(self.frontendLine, self.emulatorsLine)
        MainWindow.setTabOrder(self.emulatorsLine, self.execBeforeLine)
        MainWindow.setTabOrder(self.execBeforeLine, self.execAfterLine)
        MainWindow.setTabOrder(self.execAfterLine, self.disconnectBox)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "Gamepad Hotkey Setup"))
        self.groupBox_2.setTitle(_translate("MainWindow", "2. Update udev rules"))
        self.udevButton.setText(_translate("MainWindow", "Update Symlinks"))
        self.label_2.setText(_translate("MainWindow", "(!) Overwrites /etc/udev/rules.d/99-gamepads.rules"))
        self.groupBox_3.setTitle(_translate("MainWindow", "3. Connect the gamepad, then HOLD hotkeys"))
        self.groupBox.setTitle(_translate("MainWindow", "1. Select the bluetooth gamepad to monitor"))
        self.devicesTree.headerItem().setText(0, _translate("MainWindow", "Trusted devices"))
        self.devicesTree.headerItem().setText(1, _translate("MainWindow", "Address"))
        self.devicesTree.headerItem().setText(2, _translate("MainWindow", "Hotkey"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), _translate("MainWindow", "Gamepads setup"))
        self.groupBox_4.setTitle(_translate("MainWindow", "Processes"))
        self.label_3.setText(_translate("MainWindow", "Frontend"))
        self.label_4.setText(_translate("MainWindow", "Emulators (kill list)"))
        self.groupBox_5.setTitle(_translate("MainWindow", "Behavior"))
        self.label_5.setText(_translate("MainWindow", "Execute after frontend"))
        self.disconnectBox.setText(_translate("MainWindow", "Disconnect enabled devices on exit"))
        self.label.setText(_translate("MainWindow", "Execute before frontend"))
        self.label_6.setText(_translate("MainWindow", "Hotkey hold delay (ms)"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_4), _translate("MainWindow", "Advanced options"))
