# -*- 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(1057, 708) MainWindow.setWindowTitle("Patroneo") self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget) self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.verticalLayout.setSpacing(0) self.verticalLayout.setObjectName("verticalLayout") self.splitter = QtWidgets.QSplitter(self.centralwidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.splitter.sizePolicy().hasHeightForWidth()) self.splitter.setSizePolicy(sizePolicy) self.splitter.setFrameShape(QtWidgets.QFrame.NoFrame) self.splitter.setLineWidth(0) self.splitter.setOrientation(QtCore.Qt.Vertical) self.splitter.setHandleWidth(6) self.splitter.setObjectName("splitter") self.songArea = QtWidgets.QWidget(self.splitter) self.songArea.setObjectName("songArea") self.horizontalLayout = QtWidgets.QHBoxLayout(self.songArea) self.horizontalLayout.setContentsMargins(0, 0, 0, 5) self.horizontalLayout.setSpacing(0) self.horizontalLayout.setObjectName("horizontalLayout") self.widget_2 = QtWidgets.QWidget(self.songArea) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.widget_2.sizePolicy().hasHeightForWidth()) self.widget_2.setSizePolicy(sizePolicy) self.widget_2.setMinimumSize(QtCore.QSize(300, 0)) self.widget_2.setMaximumSize(QtCore.QSize(200, 16777215)) self.widget_2.setObjectName("widget_2") self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.widget_2) self.verticalLayout_4.setContentsMargins(0, 0, 0, 0) self.verticalLayout_4.setSpacing(0) self.verticalLayout_4.setObjectName("verticalLayout_4") self.widget_3 = QtWidgets.QWidget(self.widget_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.widget_3.sizePolicy().hasHeightForWidth()) self.widget_3.setSizePolicy(sizePolicy) self.widget_3.setMinimumSize(QtCore.QSize(300, 30)) self.widget_3.setMaximumSize(QtCore.QSize(200, 30)) self.widget_3.setObjectName("widget_3") self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.widget_3) self.horizontalLayout_2.setContentsMargins(1, 1, 1, 1) self.horizontalLayout_2.setSpacing(2) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.playPauseButton = QtWidgets.QPushButton(self.widget_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.playPauseButton.sizePolicy().hasHeightForWidth()) self.playPauseButton.setSizePolicy(sizePolicy) self.playPauseButton.setText("play") self.playPauseButton.setShortcut("Space") self.playPauseButton.setFlat(False) self.playPauseButton.setObjectName("playPauseButton") self.horizontalLayout_2.addWidget(self.playPauseButton) self.loopButton = QtWidgets.QPushButton(self.widget_3) self.loopButton.setText("loop") self.loopButton.setShortcut("") self.loopButton.setObjectName("loopButton") self.horizontalLayout_2.addWidget(self.loopButton) self.loopMeasureFactorSpinBox = QtWidgets.QSpinBox(self.widget_3) self.loopMeasureFactorSpinBox.setMinimum(1) self.loopMeasureFactorSpinBox.setMaximum(4096) self.loopMeasureFactorSpinBox.setObjectName("loopMeasureFactorSpinBox") self.horizontalLayout_2.addWidget(self.loopMeasureFactorSpinBox) self.toStartButton = QtWidgets.QPushButton(self.widget_3) self.toStartButton.setText("first") self.toStartButton.setShortcut("Home") self.toStartButton.setObjectName("toStartButton") self.horizontalLayout_2.addWidget(self.toStartButton) self.verticalLayout_4.addWidget(self.widget_3) self.trackEditorView = QtWidgets.QGraphicsView(self.widget_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.trackEditorView.sizePolicy().hasHeightForWidth()) self.trackEditorView.setSizePolicy(sizePolicy) self.trackEditorView.setMinimumSize(QtCore.QSize(300, 0)) self.trackEditorView.setMaximumSize(QtCore.QSize(200, 16777215)) self.trackEditorView.setFrameShape(QtWidgets.QFrame.NoFrame) self.trackEditorView.setFrameShadow(QtWidgets.QFrame.Plain) self.trackEditorView.setLineWidth(0) self.trackEditorView.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) self.trackEditorView.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) self.trackEditorView.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop) self.trackEditorView.setObjectName("trackEditorView") self.verticalLayout_4.addWidget(self.trackEditorView) self.horizontalLayout.addWidget(self.widget_2) self.widget = QtWidgets.QWidget(self.songArea) self.widget.setObjectName("widget") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.widget) self.verticalLayout_3.setContentsMargins(0, 0, 0, 0) self.verticalLayout_3.setSpacing(0) self.verticalLayout_3.setObjectName("verticalLayout_3") self.timelineView = QtWidgets.QGraphicsView(self.widget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.timelineView.sizePolicy().hasHeightForWidth()) self.timelineView.setSizePolicy(sizePolicy) self.timelineView.setMinimumSize(QtCore.QSize(0, 30)) self.timelineView.setMaximumSize(QtCore.QSize(16777215, 30)) self.timelineView.setFrameShape(QtWidgets.QFrame.NoFrame) self.timelineView.setFrameShadow(QtWidgets.QFrame.Plain) self.timelineView.setLineWidth(0) self.timelineView.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) self.timelineView.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) self.timelineView.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop) self.timelineView.setObjectName("timelineView") self.verticalLayout_3.addWidget(self.timelineView) self.songEditorView = QtWidgets.QGraphicsView(self.widget) self.songEditorView.setFrameShape(QtWidgets.QFrame.NoFrame) self.songEditorView.setFrameShadow(QtWidgets.QFrame.Plain) self.songEditorView.setLineWidth(0) self.songEditorView.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded) self.songEditorView.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop) self.songEditorView.setObjectName("songEditorView") self.verticalLayout_3.addWidget(self.songEditorView) self.horizontalLayout.addWidget(self.widget) self.patternArea = QtWidgets.QWidget(self.splitter) self.patternArea.setObjectName("patternArea") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.patternArea) self.verticalLayout_2.setContentsMargins(0, 5, 0, 0) self.verticalLayout_2.setSpacing(0) self.verticalLayout_2.setObjectName("verticalLayout_2") self.gridView = QtWidgets.QGraphicsView(self.patternArea) self.gridView.setFrameShape(QtWidgets.QFrame.NoFrame) self.gridView.setFrameShadow(QtWidgets.QFrame.Plain) self.gridView.setLineWidth(0) self.gridView.setAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignTop) self.gridView.setObjectName("gridView") self.verticalLayout_2.addWidget(self.gridView) self.verticalLayout.addWidget(self.splitter) MainWindow.setCentralWidget(self.centralwidget) self.toolBar = QtWidgets.QToolBar(MainWindow) self.toolBar.setWindowTitle("toolBar") self.toolBar.setToolTip("") self.toolBar.setMovable(False) self.toolBar.setFloatable(False) self.toolBar.setObjectName("toolBar") MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 1057, 20)) self.menubar.setObjectName("menubar") MainWindow.setMenuBar(self.menubar) self.actionAddPattern = QtWidgets.QAction(MainWindow) self.actionAddPattern.setObjectName("actionAddPattern") self.actionPlayPause = QtWidgets.QAction(MainWindow) self.actionPlayPause.setText("PlayPause") self.actionPlayPause.setObjectName("actionPlayPause") self.actionLoop = QtWidgets.QAction(MainWindow) self.actionLoop.setText("Loop") self.actionLoop.setObjectName("actionLoop") self.actionToStart = QtWidgets.QAction(MainWindow) self.actionToStart.setText("To Start") self.actionToStart.setObjectName("actionToStart") self.actionClone_Selected_Track = QtWidgets.QAction(MainWindow) self.actionClone_Selected_Track.setText("Clone selected Track") self.actionClone_Selected_Track.setShortcut("") self.actionClone_Selected_Track.setObjectName("actionClone_Selected_Track") self.actionAddPianoRoll = QtWidgets.QAction(MainWindow) self.actionAddPianoRoll.setObjectName("actionAddPianoRoll") self.toolBar.addAction(self.actionClone_Selected_Track) self.toolBar.addAction(self.actionAddPattern) self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate self.actionAddPattern.setText(_translate("MainWindow", "Add empty Track")) self.actionAddPattern.setIconText(_translate("MainWindow", "Add empty Track")) self.actionAddPattern.setToolTip(_translate("MainWindow", "Add a new empty Pattern Track")) self.actionClone_Selected_Track.setIconText(_translate("MainWindow", "Clone selected Track")) self.actionAddPianoRoll.setText(_translate("MainWindow", "Add PianoRoll")) self.actionAddPianoRoll.setToolTip(_translate("MainWindow", "Add PianoRoll"))