From: Dave F. <dav...@co...> - 2004-03-29 00:27:12
|
On Sunday 28 March 2004 11:31 pm, joakim verona wrote: > Hello, > > I've managed to draw a xml dialog in xrced and got it to load within > jazz too! > (ok so it's only one line of code because of Patricks nice wrapper, but > anyhow...) > > Its still the "midi delay" dialog. > > To get the dialog to actually work, I need to know some things: > - Where to get the current track these days > - The filter > - The selection To get the current track: replace any #include "song.h" with #include "engine/Project.h". In your cpp file, put extern jppProject* gProject; at the top with all your global variables. Then use gProject, which now inherits tSong, to get tracks just like you used to out of tSong. (it was easier for me to just inherit tSong and work on overloading/adding to the interface than to build from scratch. Luckily I slept between sessions, it was so clearly obvious last night that I should just inherit tSong rather than rewrite all of it. Rewriting will come with time and need, but inheriting it got the track interface in the Project where it belongs ;) ) The filter is still as it has always been, for now. Selection is also as it has always been, but it'd be really nice if you went ahead and added selection to jppProject. I'm working on it, but it's slow going since I still don't completely understand the selection code right now, and it's pretty convoluted. Also, if you stumble across calls to the global Song object, you should go ahead and replace them with gProject. At least, you'll have to to get it to work. ;) Dave > - Where should the dialog caller function go? > It used to live in tTrackWin, but I cant remember why, so I stuck it in > tPianowin. > > > Cheers, > /Joakim > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > jazzplusplus-devel mailing list > jaz...@li... > https://lists.sourceforge.net/lists/listinfo/jazzplusplus-devel -- Visit my website! http://www.davefancella.com/?event=em Win98 error 005: Mouse not found. Click left mouse button on ok to continue. |