Sampled Instrument Player with static and monolithic design. All instruments are built-in.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

207 lines
13 KiB

3 years ago
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'mainwindow.ui'
#
# Created by: PyQt5 UI code generator 5.15.6
3 years ago
#
# 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(1003, 668)
3 years ago
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.centralwidget)
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.verticalPianoFrame = QtWidgets.QFrame(self.centralwidget)
self.verticalPianoFrame.setMinimumSize(QtCore.QSize(150, 0))
self.verticalPianoFrame.setMaximumSize(QtCore.QSize(150, 16777215))
self.verticalPianoFrame.setFrameShape(QtWidgets.QFrame.NoFrame)
self.verticalPianoFrame.setFrameShadow(QtWidgets.QFrame.Plain)
self.verticalPianoFrame.setObjectName("verticalPianoFrame")
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.verticalPianoFrame)
3 years ago
self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_4.setSpacing(0)
self.verticalLayout_4.setObjectName("verticalLayout_4")
self.horizontalLayout_3.addWidget(self.verticalPianoFrame)
self.rightFrame = QtWidgets.QWidget(self.centralwidget)
self.rightFrame.setObjectName("rightFrame")
self.verticalLayout = QtWidgets.QVBoxLayout(self.rightFrame)
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.verticalLayout.setObjectName("verticalLayout")
self.auditionerWidget = QtWidgets.QWidget(self.rightFrame)
self.auditionerWidget.setObjectName("auditionerWidget")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.auditionerWidget)
self.horizontalLayout.setContentsMargins(9, 9, -1, 9)
self.horizontalLayout.setObjectName("horizontalLayout")
self.auditionerVolumeDial = QtWidgets.QDial(self.auditionerWidget)
self.auditionerVolumeDial.setMaximumSize(QtCore.QSize(32, 32))
self.auditionerVolumeDial.setSizeIncrement(QtCore.QSize(3, 0))
self.auditionerVolumeDial.setMinimum(-40)
self.auditionerVolumeDial.setMaximum(0)
self.auditionerVolumeDial.setPageStep(3)
self.auditionerVolumeDial.setProperty("value", -3)
self.auditionerVolumeDial.setWrapping(False)
self.auditionerVolumeDial.setNotchTarget(3.0)
self.auditionerVolumeDial.setNotchesVisible(True)
self.auditionerVolumeDial.setObjectName("auditionerVolumeDial")
self.horizontalLayout.addWidget(self.auditionerVolumeDial)
self.label = QtWidgets.QLabel(self.auditionerWidget)
self.label.setObjectName("label")
self.horizontalLayout.addWidget(self.label)
self.auditionerMidiInputComboBox = QtWidgets.QComboBox(self.auditionerWidget)
self.auditionerMidiInputComboBox.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToContents)
self.auditionerMidiInputComboBox.setObjectName("auditionerMidiInputComboBox")
self.horizontalLayout.addWidget(self.auditionerMidiInputComboBox)
self.auditionerCurrentInstrument_label = QtWidgets.QLabel(self.auditionerWidget)
self.auditionerCurrentInstrument_label.setObjectName("auditionerCurrentInstrument_label")
self.horizontalLayout.addWidget(self.auditionerCurrentInstrument_label)
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self.verticalLayout.addWidget(self.auditionerWidget)
self.splitter = QtWidgets.QSplitter(self.rightFrame)
3 years ago
self.splitter.setOrientation(QtCore.Qt.Vertical)
self.splitter.setObjectName("splitter")
self.iinstruments_tabWidget = QtWidgets.QTabWidget(self.splitter)
self.iinstruments_tabWidget.setEnabled(True)
self.iinstruments_tabWidget.setObjectName("iinstruments_tabWidget")
self.Instruments = QtWidgets.QWidget()
self.Instruments.setObjectName("Instruments")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.Instruments)
3 years ago
self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_2.setSpacing(0)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.instruments_treeWidget = QtWidgets.QTreeWidget(self.Instruments)
3 years ago
self.instruments_treeWidget.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
self.instruments_treeWidget.setProperty("showDropIndicator", False)
self.instruments_treeWidget.setAlternatingRowColors(True)
self.instruments_treeWidget.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection)
3 years ago
self.instruments_treeWidget.setVerticalScrollMode(QtWidgets.QAbstractItemView.ScrollPerPixel)
self.instruments_treeWidget.setHorizontalScrollMode(QtWidgets.QAbstractItemView.ScrollPerPixel)
self.instruments_treeWidget.setObjectName("instruments_treeWidget")
self.verticalLayout_2.addWidget(self.instruments_treeWidget)
self.iinstruments_tabWidget.addTab(self.Instruments, "")
self.Favorites = QtWidgets.QWidget()
self.Favorites.setObjectName("Favorites")
self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.Favorites)
self.verticalLayout_5.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_5.setSpacing(0)
self.verticalLayout_5.setObjectName("verticalLayout_5")
self.favorites_treeWidget = QtWidgets.QTreeWidget(self.Favorites)
self.favorites_treeWidget.setObjectName("favorites_treeWidget")
self.verticalLayout_5.addWidget(self.favorites_treeWidget)
self.iinstruments_tabWidget.addTab(self.Favorites, "")
3 years ago
self.details_groupBox = QtWidgets.QGroupBox(self.splitter)
self.details_groupBox.setObjectName("details_groupBox")
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.details_groupBox)
self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_3.setSpacing(0)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.details_scrollArea = QtWidgets.QScrollArea(self.details_groupBox)
self.details_scrollArea.setFrameShape(QtWidgets.QFrame.NoFrame)
self.details_scrollArea.setFrameShadow(QtWidgets.QFrame.Plain)
self.details_scrollArea.setLineWidth(0)
self.details_scrollArea.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents)
3 years ago
self.details_scrollArea.setWidgetResizable(True)
self.details_scrollArea.setObjectName("details_scrollArea")
self.scrollAreaWidgetContents = QtWidgets.QWidget()
self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 823, 136))
3 years ago
self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.scrollAreaWidgetContents)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.widget = QtWidgets.QWidget(self.scrollAreaWidgetContents)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.widget.sizePolicy().hasHeightForWidth())
self.widget.setSizePolicy(sizePolicy)
self.widget.setObjectName("widget")
self.formLayout = QtWidgets.QFormLayout(self.widget)
self.formLayout.setSizeConstraint(QtWidgets.QLayout.SetMinAndMaxSize)
self.formLayout.setContentsMargins(-1, 20, 15, -1)
self.formLayout.setObjectName("formLayout")
self.variant_label = QtWidgets.QLabel(self.widget)
self.variant_label.setObjectName("variant_label")
self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.variant_label)
self.variants_comboBox = QtWidgets.QComboBox(self.widget)
self.variants_comboBox.setObjectName("variants_comboBox")
self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.variants_comboBox)
self.keySwitch_label = QtWidgets.QLabel(self.widget)
self.keySwitch_label.setObjectName("keySwitch_label")
self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.keySwitch_label)
self.keySwitch_comboBox = QtWidgets.QComboBox(self.widget)
self.keySwitch_comboBox.setObjectName("keySwitch_comboBox")
self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.keySwitch_comboBox)
self.info_label = QtWidgets.QLabel(self.widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.info_label.sizePolicy().hasHeightForWidth())
self.info_label.setSizePolicy(sizePolicy)
self.info_label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
self.info_label.setWordWrap(True)
self.info_label.setObjectName("info_label")
self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.info_label)
self.horizontalLayout_2.addWidget(self.widget)
self.controls_groupBox = QtWidgets.QGroupBox(self.scrollAreaWidgetContents)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.controls_groupBox.sizePolicy().hasHeightForWidth())
self.controls_groupBox.setSizePolicy(sizePolicy)
self.controls_groupBox.setObjectName("controls_groupBox")
self.horizontalLayout_2.addWidget(self.controls_groupBox)
3 years ago
self.details_scrollArea.setWidget(self.scrollAreaWidgetContents)
self.verticalLayout_3.addWidget(self.details_scrollArea)
self.verticalLayout.addWidget(self.splitter)
self.horizontalPianoFrame = QtWidgets.QFrame(self.rightFrame)
self.horizontalPianoFrame.setMinimumSize(QtCore.QSize(0, 100))
self.horizontalPianoFrame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.horizontalPianoFrame.setFrameShadow(QtWidgets.QFrame.Raised)
self.horizontalPianoFrame.setObjectName("horizontalPianoFrame")
self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.horizontalPianoFrame)
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.verticalLayout.addWidget(self.horizontalPianoFrame)
self.horizontalLayout_3.addWidget(self.rightFrame)
3 years ago
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 1003, 20))
3 years ago
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
self.iinstruments_tabWidget.setCurrentIndex(0)
3 years ago
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.label.setText(_translate("MainWindow", "Auditioner MIDI Input"))
self.auditionerCurrentInstrument_label.setText(_translate("MainWindow", "TextLabel"))
3 years ago
self.instruments_treeWidget.headerItem().setText(1, _translate("MainWindow", "ID"))
self.instruments_treeWidget.headerItem().setText(2, _translate("MainWindow", "Volume"))
self.instruments_treeWidget.headerItem().setText(3, _translate("MainWindow", "Name"))
self.instruments_treeWidget.headerItem().setText(4, _translate("MainWindow", "Variant"))
self.instruments_treeWidget.headerItem().setText(5, _translate("MainWindow", "Tags"))
self.iinstruments_tabWidget.setTabText(self.iinstruments_tabWidget.indexOf(self.Instruments), _translate("MainWindow", "Instruments"))
self.favorites_treeWidget.headerItem().setText(1, _translate("MainWindow", "ID"))
self.favorites_treeWidget.headerItem().setText(2, _translate("MainWindow", "Volume"))
self.favorites_treeWidget.headerItem().setText(3, _translate("MainWindow", "Name"))
self.favorites_treeWidget.headerItem().setText(4, _translate("MainWindow", "Variant"))
self.favorites_treeWidget.headerItem().setText(5, _translate("MainWindow", "Tags"))
self.iinstruments_tabWidget.setTabText(self.iinstruments_tabWidget.indexOf(self.Favorites), _translate("MainWindow", "Favorites"))
3 years ago
self.details_groupBox.setTitle(_translate("MainWindow", "NamePlaceholder"))
self.variant_label.setText(_translate("MainWindow", "Variants"))
self.keySwitch_label.setText(_translate("MainWindow", "KeySwitch"))
self.info_label.setText(_translate("MainWindow", "TextLabel"))
self.controls_groupBox.setTitle(_translate("MainWindow", "Controls"))