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


from PyQt6 import QtCore, QtGui, QtWidgets


class Ui_AudioDevicesBase(object):
    def setupUi(self, AudioDevicesBase):
        AudioDevicesBase.setObjectName("AudioDevicesBase")
        AudioDevicesBase.resize(646, 528)
        self.centralwidget = QtWidgets.QWidget(AudioDevicesBase)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName("verticalLayout")
        self.scrollArea = QtWidgets.QScrollArea(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.scrollArea.sizePolicy().hasHeightForWidth())
        self.scrollArea.setSizePolicy(sizePolicy)
        self.scrollArea.setWidgetResizable(True)
        self.scrollArea.setObjectName("scrollArea")
        self.scrollAreaWidgetContents = QtWidgets.QWidget()
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 626, 480))
        self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.modeLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents)
        self.modeLabel.setObjectName("modeLabel")
        self.gridLayout_2.addWidget(self.modeLabel, 0, 0, 1, 1)
        self.deviceLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents)
        self.deviceLabel.setObjectName("deviceLabel")
        self.gridLayout_2.addWidget(self.deviceLabel, 0, 1, 1, 1)
        self.modeBox = QtWidgets.QComboBox(self.scrollAreaWidgetContents)
        self.modeBox.setObjectName("modeBox")
        self.modeBox.addItem("")
        self.modeBox.addItem("")
        self.gridLayout_2.addWidget(self.modeBox, 1, 0, 1, 1)
        self.deviceBox = QtWidgets.QComboBox(self.scrollAreaWidgetContents)
        self.deviceBox.setObjectName("deviceBox")
        self.gridLayout_2.addWidget(self.deviceBox, 1, 1, 1, 1)
        self.tabWidget = QtWidgets.QTabWidget(self.scrollAreaWidgetContents)
        self.tabWidget.setObjectName("tabWidget")
        self.testFormatTab = QtWidgets.QWidget()
        self.testFormatTab.setObjectName("testFormatTab")
        self.gridLayout = QtWidgets.QGridLayout(self.testFormatTab)
        self.gridLayout.setObjectName("gridLayout")
        self.testButton = QtWidgets.QPushButton(self.testFormatTab)
        self.testButton.setObjectName("testButton")
        self.gridLayout.addWidget(self.testButton, 12, 1, 1, 1)
        self.testResult = QtWidgets.QLabel(self.testFormatTab)
        self.testResult.setText("")
        self.testResult.setObjectName("testResult")
        self.gridLayout.addWidget(self.testResult, 12, 2, 1, 1)
        self.actualChannelLabel = QtWidgets.QLabel(self.testFormatTab)
        self.actualChannelLabel.setObjectName("actualChannelLabel")
        self.gridLayout.addWidget(self.actualChannelLabel, 4, 0, 1, 1)
        self.nearestSampleRate = QtWidgets.QLineEdit(self.testFormatTab)
        self.nearestSampleRate.setEnabled(False)
        self.nearestSampleRate.setObjectName("nearestSampleRate")
        self.gridLayout.addWidget(self.nearestSampleRate, 2, 2, 1, 1)
        self.nearestSampleFormat = QtWidgets.QLineEdit(self.testFormatTab)
        self.nearestSampleFormat.setEnabled(False)
        self.nearestSampleFormat.setObjectName("nearestSampleFormat")
        self.gridLayout.addWidget(self.nearestSampleFormat, 5, 2, 1, 1)
        self.actualSampleTypeLabel = QtWidgets.QLabel(self.testFormatTab)
        self.actualSampleTypeLabel.setObjectName("actualSampleTypeLabel")
        self.gridLayout.addWidget(self.actualSampleTypeLabel, 5, 0, 1, 1)
        self.nearestChannel = QtWidgets.QLineEdit(self.testFormatTab)
        self.nearestChannel.setEnabled(False)
        self.nearestChannel.setObjectName("nearestChannel")
        self.gridLayout.addWidget(self.nearestChannel, 4, 2, 1, 1)
        self.sampleFormatBox = QtWidgets.QComboBox(self.testFormatTab)
        self.sampleFormatBox.setObjectName("sampleFormatBox")
        self.gridLayout.addWidget(self.sampleFormatBox, 5, 1, 1, 1)
        self.actualFreqLabel = QtWidgets.QLabel(self.testFormatTab)
        self.actualFreqLabel.setObjectName("actualFreqLabel")
        self.gridLayout.addWidget(self.actualFreqLabel, 2, 0, 1, 1)
        self.actualLabel = QtWidgets.QLabel(self.testFormatTab)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.actualLabel.sizePolicy().hasHeightForWidth())
        self.actualLabel.setSizePolicy(sizePolicy)
        self.actualLabel.setFrameShape(QtWidgets.QFrame.Shape.NoFrame)
        self.actualLabel.setFrameShadow(QtWidgets.QFrame.Shadow.Plain)
        self.actualLabel.setTextFormat(QtCore.Qt.TextFormat.RichText)
        self.actualLabel.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
        self.actualLabel.setObjectName("actualLabel")
        self.gridLayout.addWidget(self.actualLabel, 0, 1, 1, 1)
        self.nearestLabel = QtWidgets.QLabel(self.testFormatTab)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.nearestLabel.sizePolicy().hasHeightForWidth())
        self.nearestLabel.setSizePolicy(sizePolicy)
        self.nearestLabel.setFrameShape(QtWidgets.QFrame.Shape.NoFrame)
        self.nearestLabel.setFrameShadow(QtWidgets.QFrame.Shadow.Plain)
        self.nearestLabel.setTextFormat(QtCore.Qt.TextFormat.RichText)
        self.nearestLabel.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
        self.nearestLabel.setObjectName("nearestLabel")
        self.gridLayout.addWidget(self.nearestLabel, 0, 2, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
        self.gridLayout.addItem(spacerItem, 13, 1, 1, 1)
        self.sampleRateSpinBox = QtWidgets.QSpinBox(self.testFormatTab)
        self.sampleRateSpinBox.setObjectName("sampleRateSpinBox")
        self.gridLayout.addWidget(self.sampleRateSpinBox, 2, 1, 1, 1)
        self.channelsSpinBox = QtWidgets.QSpinBox(self.testFormatTab)
        self.channelsSpinBox.setObjectName("channelsSpinBox")
        self.gridLayout.addWidget(self.channelsSpinBox, 4, 1, 1, 1)
        self.tabWidget.addTab(self.testFormatTab, "")
        self.tab = QtWidgets.QWidget()
        self.tab.setObjectName("tab")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.tab)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.populateTableButton = QtWidgets.QPushButton(self.tab)
        self.populateTableButton.setObjectName("populateTableButton")
        self.verticalLayout_2.addWidget(self.populateTableButton)
        self.allFormatsTable = QtWidgets.QTableWidget(self.tab)
        self.allFormatsTable.setEditTriggers(QtWidgets.QAbstractItemView.EditTrigger.NoEditTriggers)
        self.allFormatsTable.setDragDropOverwriteMode(False)
        self.allFormatsTable.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.NoSelection)
        self.allFormatsTable.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectionBehavior.SelectItems)
        self.allFormatsTable.setTextElideMode(QtCore.Qt.TextElideMode.ElideNone)
        self.allFormatsTable.setWordWrap(False)
        self.allFormatsTable.setCornerButtonEnabled(False)
        self.allFormatsTable.setColumnCount(3)
        self.allFormatsTable.setObjectName("allFormatsTable")
        self.allFormatsTable.setRowCount(0)
        item = QtWidgets.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
        self.allFormatsTable.setHorizontalHeaderItem(0, item)
        item = QtWidgets.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
        self.allFormatsTable.setHorizontalHeaderItem(1, item)
        item = QtWidgets.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
        self.allFormatsTable.setHorizontalHeaderItem(2, item)
        self.allFormatsTable.horizontalHeader().setHighlightSections(False)
        self.allFormatsTable.horizontalHeader().setStretchLastSection(True)
        self.allFormatsTable.verticalHeader().setVisible(False)
        self.allFormatsTable.verticalHeader().setHighlightSections(False)
        self.verticalLayout_2.addWidget(self.allFormatsTable)
        self.tabWidget.addTab(self.tab, "")
        self.gridLayout_2.addWidget(self.tabWidget, 2, 0, 1, 2)
        self.gridLayout_4.addLayout(self.gridLayout_2, 0, 0, 1, 1)
        self.scrollArea.setWidget(self.scrollAreaWidgetContents)
        self.verticalLayout.addWidget(self.scrollArea)
        AudioDevicesBase.setCentralWidget(self.centralwidget)
        self.statusbar = QtWidgets.QStatusBar(AudioDevicesBase)
        self.statusbar.setObjectName("statusbar")
        AudioDevicesBase.setStatusBar(self.statusbar)

        self.retranslateUi(AudioDevicesBase)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(AudioDevicesBase)

    def retranslateUi(self, AudioDevicesBase):
        _translate = QtCore.QCoreApplication.translate
        AudioDevicesBase.setWindowTitle(_translate("AudioDevicesBase", "Audio Devices"))
        self.modeLabel.setText(_translate("AudioDevicesBase", "Mode"))
        self.deviceLabel.setText(_translate("AudioDevicesBase", "Device"))
        self.modeBox.setItemText(0, _translate("AudioDevicesBase", "Input"))
        self.modeBox.setItemText(1, _translate("AudioDevicesBase", "Output"))
        self.testButton.setText(_translate("AudioDevicesBase", "Test"))
        self.actualChannelLabel.setText(_translate("AudioDevicesBase", "Channels"))
        self.actualSampleTypeLabel.setText(_translate("AudioDevicesBase", "Sample Format"))
        self.actualFreqLabel.setText(_translate("AudioDevicesBase", "Frequency (Hz)"))
        self.actualLabel.setText(_translate("AudioDevicesBase", "<i>Actual Settings</i>"))
        self.nearestLabel.setText(_translate("AudioDevicesBase", "<!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:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-style:italic;\">Nearest Settings</span></p></body></html>"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.testFormatTab), _translate("AudioDevicesBase", "Test format"))
        self.populateTableButton.setText(_translate("AudioDevicesBase", "Populate table"))
        self.allFormatsTable.setSortingEnabled(False)
        item = self.allFormatsTable.horizontalHeaderItem(0)
        item.setText(_translate("AudioDevicesBase", "Sample Format"))
        item = self.allFormatsTable.horizontalHeaderItem(1)
        item.setText(_translate("AudioDevicesBase", "Frequency (Hz)"))
        item = self.allFormatsTable.horizontalHeaderItem(2)
        item.setText(_translate("AudioDevicesBase", "Channels"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("AudioDevicesBase", "All formats"))
