OOPS: originally sent this to: 
[email protected] :)
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!



------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to