On Saturday 14 May 2005 01:30 am, Stephen Torri wrote:

> I have never submitted a patch to rosegarden yet so I cannot claim to
> any previous efforts. My copy of rosegarden is from CVS so I made sure
> the patch was against the HEAD version.

OK, that was someone else then.  The guy was trying to be helpful by cleaning 
up all the warnings, and the way he did it broke our compatibility with KDE 
3.1 or something.  I don't remember the details.  I'm not sufficiently 
cognizant of the broader issues here to have an opinion one way or the other, 
but I do appreciate your effort, and I hope it passes muster.

> Getting the icon there in the first place. I thought that my code should
> be added to gui/rosegardengui.cpp. I will need to spend time tomorrow
> looking at how the windows like "MIDI mixer" is placed in the main
> window. This goes to my earlier question about UML. I asked that
> question to see if there were any class or sequence diagrams for
> rosegarden.

Find some menu to stick your new action on, then make a menu entry and a 
toolbar entry in rosegardenui.rc

Then find a suitable place in rosegardengui.cpp to stick in the KAction bit 
where you load your icon and connect your menu/toolbar action to a slot.

Then find some suitable place to stick your slot.

Presto.  Examples abound.

-- 
Michael McIntyre  ----   Silvan <[EMAIL PROTECTED]>
Linux fanatic, and certified Geek;  registered Linux user #243621
http://www.geocities.com/Paris/Rue/5407/
http://rosegarden.sourceforge.net/tutorial/


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to