I think for now the best thing would be to design abstractions around the controls to support presets. I've got an example of this which I'm hoping to include in the "real" 0.35 release, if I can ever get it all working at once...
cheers Miller
On Thu, Jun 06, 2002 at 12:12:07PM +0200, Yves Degoyon wrote:
of course i agree with that,
but the question was : hem , how to do this right now ???
"state" is prone to errors whenever objects structure changes, true .. ok
you might have some problems to set it up ... ok
my advice was just to give it a try..
yves/
Krzysztof Czaja wrote:
hi Yves,
I am not sure maintaining
state' external is an option, unless there is a way of querying gui objects for their state. Since there is no api with access methods, one would need to take for granted, that the structs declared in g_all_guis.h will not change for some time. But even if there is a (permanent) api, I think the proper place for a
preset' (or `state') class would be alongside Pd gui internals.Krzysztof
Yves Degoyon wrote: ...
i must put the highlights on "state" object from ggee . . . it does save the state of sliders, numberboxes, .. and is able to restore them easily.
but, it doen't save all kind of objects ( no toggles, hslider, vslider, ... ) --