hi,
as Krysztof was asking about presets, 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, ... ) --
there's a mismatch between includes delivered with ggee0.24b and the code, you must copy new includes from pd0.35-test>17 to ggee/include . . .
cheers,
yves/
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, ... ) --
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, ... ) --
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, ... ) --
On Thu, 6 Jun 2002, 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.
..... *$%! hasnt that been the case once ? I don't want to do the implementation, because I am not going to mess around in the iem gui objects. On the other hand, the state object has one big disadvantage, that is, if you delete gui objects in a patch you can't load previously saved states anymore. So we have to find a solution to name the objects automatically and permanently (writing the name to the .pd files). This way the states could be loaded after edits too.
Guenter
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, ... ) --