From: Dave F. <dav...@co...> - 2004-03-24 23:57:27
|
Joakim, If it were me, and it's *not*, :) , I'd write one single dialog-generator that takes an argument telling it which dialog to generate and then loads the xml resources for it and creates it, grabs the properties, and then makes them available through an associative array, python-like. (There's an STL template for it, but I forget what it's called) Then adding a dialog is a simple matter of creating the xrc file for it and then calling the generator in your event handler. If it were me, that is. :) (I, too, prefer the java-style one-class-per-file method, and a file for each class. Ever play robocode?) Dave On Wednesday 24 March 2004 11:27 pm, joakim verona wrote: > Hello, > > I was going to try to get up to speed by implementing the mididelay > dialog with the new cool xml resource system. > (I chose this dialog since I wrote the code for it originally and > because its really simple) > > Then I noticed that pianowin no longer inherits eventwin, and the original > wx2 ported dialog no longer works(which doesnt matter since I originaly > ported it > with the ugly property dialog) > > So, hmm what to do now? > > I can design the xml resource, but where should the rest of the code go, > in the new improved layered design? > > this is what it currently looks like: > > tCmdMidiDelay, a command class that acts on the track structure. > Should this go into a "kernel" dir? > > tmidiDelayDlg, a dialog class. Should it be broken out, and put in the > dialogs dir? > Or, since the code will be trivial, just handled in a function? > > (I think I prefer a java-style a-file-per-class method) > > 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 We interrupt this fortune for an important announcement... |