aboutsummaryrefslogtreecommitdiffstats
path: root/gui-project/src/MainWindow.py
diff options
context:
space:
mode:
Diffstat (limited to 'gui-project/src/MainWindow.py')
-rw-r--r--gui-project/src/MainWindow.py111
1 files changed, 111 insertions, 0 deletions
diff --git a/gui-project/src/MainWindow.py b/gui-project/src/MainWindow.py
new file mode 100644
index 0000000..137bd33
--- /dev/null
+++ b/gui-project/src/MainWindow.py
@@ -0,0 +1,111 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'mainwindow.ui'
+#
+# Created by: PyQt5 UI code generator 5.15.6
+#
+# 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(971, 767)
+ self.centralwidget = QtWidgets.QWidget(MainWindow)
+ self.centralwidget.setObjectName("centralwidget")
+ self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
+ self.verticalLayout.setObjectName("verticalLayout")
+ self.listsLayout = QtWidgets.QHBoxLayout()
+ self.listsLayout.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint)
+ self.listsLayout.setSpacing(6)
+ self.listsLayout.setObjectName("listsLayout")
+ self.songListView = QtWidgets.QListView(self.centralwidget)
+ self.songListView.setObjectName("songListView")
+ self.listsLayout.addWidget(self.songListView)
+ self.abListView = QtWidgets.QListView(self.centralwidget)
+ self.abListView.setObjectName("abListView")
+ self.listsLayout.addWidget(self.abListView)
+ self.verticalLayout.addLayout(self.listsLayout)
+ self.slidersLayout = QtWidgets.QVBoxLayout()
+ self.slidersLayout.setObjectName("slidersLayout")
+ self.songSlider = QtWidgets.QSlider(self.centralwidget)
+ self.songSlider.setMinimumSize(QtCore.QSize(0, 0))
+ self.songSlider.setOrientation(QtCore.Qt.Horizontal)
+ self.songSlider.setObjectName("songSlider")
+ self.slidersLayout.addWidget(self.songSlider)
+ self.aSlider = QtWidgets.QSlider(self.centralwidget)
+ self.aSlider.setOrientation(QtCore.Qt.Horizontal)
+ self.aSlider.setObjectName("aSlider")
+ self.slidersLayout.addWidget(self.aSlider)
+ self.bSlider = QtWidgets.QSlider(self.centralwidget)
+ self.bSlider.setOrientation(QtCore.Qt.Horizontal)
+ self.bSlider.setObjectName("bSlider")
+ self.slidersLayout.addWidget(self.bSlider)
+ self.verticalLayout.addLayout(self.slidersLayout)
+ self.buttonsLayout = QtWidgets.QGridLayout()
+ self.buttonsLayout.setObjectName("buttonsLayout")
+ self.pauseButton = QtWidgets.QPushButton(self.centralwidget)
+ self.pauseButton.setObjectName("pauseButton")
+ self.buttonsLayout.addWidget(self.pauseButton, 0, 1, 1, 1)
+ self.initMidiButton = QtWidgets.QPushButton(self.centralwidget)
+ self.initMidiButton.setObjectName("initMidiButton")
+ self.buttonsLayout.addWidget(self.initMidiButton, 0, 4, 1, 1)
+ self.rateSlider = QtWidgets.QSlider(self.centralwidget)
+ sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.rateSlider.sizePolicy().hasHeightForWidth())
+ self.rateSlider.setSizePolicy(sizePolicy)
+ self.rateSlider.setOrientation(QtCore.Qt.Horizontal)
+ self.rateSlider.setObjectName("rateSlider")
+ self.buttonsLayout.addWidget(self.rateSlider, 2, 0, 1, 1)
+ self.playButton = QtWidgets.QPushButton(self.centralwidget)
+ self.playButton.setObjectName("playButton")
+ self.buttonsLayout.addWidget(self.playButton, 0, 0, 1, 1)
+ self.saveSessionButton = QtWidgets.QPushButton(self.centralwidget)
+ self.saveSessionButton.setObjectName("saveSessionButton")
+ self.buttonsLayout.addWidget(self.saveSessionButton, 0, 2, 1, 1)
+ self.storeAbButton = QtWidgets.QPushButton(self.centralwidget)
+ self.storeAbButton.setObjectName("storeAbButton")
+ self.buttonsLayout.addWidget(self.storeAbButton, 2, 3, 1, 1)
+ self.loadSessionButton = QtWidgets.QPushButton(self.centralwidget)
+ self.loadSessionButton.setObjectName("loadSessionButton")
+ self.buttonsLayout.addWidget(self.loadSessionButton, 0, 3, 1, 1)
+ self.abRepeatCheckBox = QtWidgets.QCheckBox(self.centralwidget)
+ self.abRepeatCheckBox.setObjectName("abRepeatCheckBox")
+ self.buttonsLayout.addWidget(self.abRepeatCheckBox, 2, 1, 1, 1)
+ self.addSongButton = QtWidgets.QPushButton(self.centralwidget)
+ self.addSongButton.setObjectName("addSongButton")
+ self.buttonsLayout.addWidget(self.addSongButton, 2, 4, 1, 1)
+ self.horizontalLayout = QtWidgets.QHBoxLayout()
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ self.setAButton = QtWidgets.QPushButton(self.centralwidget)
+ self.setAButton.setObjectName("setAButton")
+ self.horizontalLayout.addWidget(self.setAButton)
+ self.setBButton = QtWidgets.QPushButton(self.centralwidget)
+ self.setBButton.setObjectName("setBButton")
+ self.horizontalLayout.addWidget(self.setBButton)
+ self.buttonsLayout.addLayout(self.horizontalLayout, 2, 2, 1, 1)
+ self.verticalLayout.addLayout(self.buttonsLayout)
+ MainWindow.setCentralWidget(self.centralwidget)
+
+ self.retranslateUi(MainWindow)
+ QtCore.QMetaObject.connectSlotsByName(MainWindow)
+
+ def retranslateUi(self, MainWindow):
+ _translate = QtCore.QCoreApplication.translate
+ MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
+ self.pauseButton.setText(_translate("MainWindow", "Pause"))
+ self.initMidiButton.setText(_translate("MainWindow", "Connect MIDI"))
+ self.playButton.setText(_translate("MainWindow", "Play"))
+ self.saveSessionButton.setText(_translate("MainWindow", "Save session"))
+ self.storeAbButton.setText(_translate("MainWindow", "Store AB"))
+ self.loadSessionButton.setText(_translate("MainWindow", "Load session"))
+ self.abRepeatCheckBox.setText(_translate("MainWindow", "AB repeat"))
+ self.addSongButton.setText(_translate("MainWindow", "Add song"))
+ self.setAButton.setText(_translate("MainWindow", "Set A"))
+ self.setBButton.setText(_translate("MainWindow", "Set B"))