From: Christopher C. <st...@tr...> - 2009-03-22 12:48:17
|
OOPS: originally sent this to: ros...@li... :) OOOOOPS: sent it with the wrong email address! I think sleep would be cool! I have been working on getting the program bank changes to work in the matrix editor: http://pastebin.com/m36bf7675 I added comment with arrows like this to illustrate my issue: <----- I am trying to pass a pointer for MatrixView to eventually call MatrixView's getCurrentSegment() method for creating an EventView. I was able to get the Insert Event Dialog to open by passing a null segment but it crashed when I submitted it. So I am trying to pass the pointer to MatrixView so I can use it in this function: http://pastebin.com/m22eeb96b The problem is that once I changed my KAction to accommodate the calling of a different slot so I could pass a parameter the new slot is never called. I am not sure why. So the long and the short is the old KAction fired the dialog but not segment was passed: new KAction(i18n("Add Program Change"), icon2, Key_F9, RosegardenGUIApp::self(), SLOT(slotProgramChangeSelected()), actionCollection(), "program_change"); But the new KAction does nothing: new KAction(i18n("Add Program Change"), icon2, Key_F9, this, SLOT(slotProgramChangeSelected()), actionCollection(), "program_change"); //<----- This KACtion does not seem to work which calls this: void MatrixEraser::slotProgramChangeSelected() { //<----- This method is created to allow for the passing of the parameter to the slot because apparently a menu click cannot pass a parameter. printf("Inside MatrixEraser::slotProgramChangeSelected()"); RosegardenGUIApp::self()->slotProgramChangeSelected(_parent); } I am open to a different way to get the segment all together if you have any ideas! Thanks! |