@ -294,6 +294,12 @@ class MenuActionDatabase(object):
#Midi
self.mainWindow.ui.actionInstrument_Change:SecondaryProgramChangeMenu(self.mainWindow),#no lambda for submenus. They get created here once and have a __call__ option that executes them. There is no internal state in these menus.
self.mainWindow.ui.actionChannel_Change:SecondaryChannelChangeMenu(self.mainWindow),#no lambda for submenus. They get created here once and have a __call__ option that executes them. There is no internal state in these menus.
#Lilypond
#Print and Export is in self.actions
self.mainWindow.ui.actionLyBarline:ChooseOne(self.mainWindow,"Choose a Barline",api.getLilypondBarlineList()),
self.mainWindow.ui.actionLyRepeat:ChooseOne(self.mainWindow,"Choose a Repeat",api.getLilypondRepeatList()),
@ -149,10 +151,10 @@ class TickWidget(QtWidgets.QDialog):
classSubmenu(QtWidgets.QDialog):
#TODO: instead of using a QDialog we could use a QWidget and use it as proxy widget on the graphic scene, placing the menu where the input cursor is.
def__init__(self,mainWindow,labelString):
super().__init__(mainWindow)#if you don't set the parent to the main window the whole screen will be the root and the dialog pops up in the middle of it.
super().__init__(mainWindow)#if you don't set the parent to the main window the whole screen will be the root and the dialog pops up in the middle of it.
#self.setModal(True) #we don't need this when called with self.exec() instead of self.show()
self.layout=QtWidgets.QFormLayout()
#self.layout = QtWidgets.QVBoxLayout()
#self.layout = QtWidgets.QVBoxLayout()
self.setLayout(self.layout)
label=QtWidgets.QLabel(labelString)#"Choose a clef" or so.
@ -180,14 +182,20 @@ class Submenu(QtWidgets.QDialog):