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

# Form implementation generated from reading ui file 'resources/ui/cadence_tb_jack.ui'
#
# Created by: PyQt5 UI code generator 5.13.2
#
# WARNING! All changes made in this file will be lost!


from PyQt5 import QtCore, QtGui, QtWidgets


class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(390, 118)
        self.verticalLayout = QtWidgets.QVBoxLayout(Dialog)
        self.verticalLayout.setObjectName("verticalLayout")
        self.rb_jack = QtWidgets.QRadioButton(Dialog)
        self.rb_jack.setChecked(True)
        self.rb_jack.setObjectName("rb_jack")
        self.verticalLayout.addWidget(self.rb_jack)
        self.rb_ladish = QtWidgets.QRadioButton(Dialog)
        self.rb_ladish.setObjectName("rb_ladish")
        self.verticalLayout.addWidget(self.rb_ladish)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        spacerItem = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.label = QtWidgets.QLabel(Dialog)
        self.label.setEnabled(False)
        self.label.setObjectName("label")
        self.horizontalLayout.addWidget(self.label)
        self.cb_studio_name = QtWidgets.QComboBox(Dialog)
        self.cb_studio_name.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cb_studio_name.sizePolicy().hasHeightForWidth())
        self.cb_studio_name.setSizePolicy(sizePolicy)
        self.cb_studio_name.setObjectName("cb_studio_name")
        self.horizontalLayout.addWidget(self.cb_studio_name)
        self.verticalLayout.addLayout(self.horizontalLayout)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem1)
        self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.verticalLayout.addWidget(self.buttonBox)

        self.retranslateUi(Dialog)
        self.buttonBox.accepted.connect(Dialog.accept)
        self.buttonBox.rejected.connect(Dialog.reject)
        self.rb_ladish.toggled['bool'].connect(self.label.setEnabled)
        self.rb_ladish.toggled['bool'].connect(self.cb_studio_name.setEnabled)
        QtCore.QMetaObject.connectSlotsByName(Dialog)

    def retranslateUi(self, Dialog):
        _translate = QtCore.QCoreApplication.translate
        Dialog.setWindowTitle(_translate("Dialog", "JACK Options"))
        self.rb_jack.setText(_translate("Dialog", "Load JACK Default Settings"))
        self.rb_ladish.setText(_translate("Dialog", "Load LADISH Studio"))
        self.label.setText(_translate("Dialog", "Studio Name:"))
