Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13527
Modified Files: Tag: devel_0_39 desire.c Log Message: added somemore stuff for the wire
Index: desire.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/Attic/desire.c,v retrieving revision 1.1.2.57 retrieving revision 1.1.2.58 diff -C2 -d -r1.1.2.57 -r1.1.2.58 *** desire.c 24 Nov 2005 11:41:01 -0000 1.1.2.57 --- desire.c 24 Nov 2005 15:25:45 -0000 1.1.2.58 *************** *** 11970,11973 **** --- 11970,11974 ---- static void *bng_new(t_symbol *s, int argc, t_atom *argv) { + post("@@@@@@@ bng_new @@@@@@"); t_bng *x = (t_bng *)iemgui_new(bng_class); x->ftbreak = 250; *************** *** 12759,12766 **** //---------- // wire /* void wire_notice(t_gobj *x, struct _gobj *origin, int argc, t_atom *argv) { t_canvas *self = (t_canvas *)x; ! post("canvas_notice(%p,%p,%d,...): havewindow=%d mapped=%d",x,origin,argc,self->gl_havewindow,self->gl_mapped); gobj_changed3(self,origin,argc,argv); } --- 12760,12775 ---- //---------- // wire + typedef struct { IEMGUI_FIELDS + int from; + int outport; + int to; + int inport; + } t_wire; + + /* void wire_notice(t_gobj *x, struct _gobj *origin, int argc, t_atom *argv) { t_canvas *self = (t_canvas *)x; ! post("(%p,%p,%d,...): havewindow=%d mapped=%d",x,origin,argc,self->gl_havewindow,self->gl_mapped); gobj_changed3(self,origin,argc,argv); } *************** *** 12779,12786 **** }
static void g_wire_setup(void) { ! t_class *c = wire_class = class_new(gensym("wire"), 0, ! (t_method)wire_free, sizeof(t_object), CLASS_NOINLET, 0); iemgui_subclass(c); //class_setnotice(c, wire_notice); --- 12788,12809 ---- }
+ static void *wire_new(t_symbol *s, int argc, t_atom *argv) + { + post ("----- wire_new -----"); + t_wire *x = (t_wire *)iemgui_new(wire_class); + x->from = 0; + x->outport = 0; + x->to = 0; + x->inport = 0; + //bng_check_minmax(x); + //outlet_new((t_text *)x, &s_bang); + //bng_reload(x,0,argc,argv); + return x; + } + static void g_wire_setup(void) { ! t_class *c = wire_class = class_new(gensym("connect"), (t_newmethod)wire_new, ! (t_method)iemgui_free, sizeof(t_wire),0, A_GIMME, 0); iemgui_subclass(c); //class_setnotice(c, wire_notice); *************** *** 12910,12914 **** S(g_array) S(g_canvas) S(g_guiconnect) S(g_scalar) S(g_template) S(g_traversal) S(g_text) S(g_bang) S(g_toggle) S(g_radio) ! S(g_slider) S(g_numbox) S(g_mycanvas) S(g_vumeter) S(g_dropper) #undef S } --- 12933,12937 ---- S(g_array) S(g_canvas) S(g_guiconnect) S(g_scalar) S(g_template) S(g_traversal) S(g_text) S(g_bang) S(g_toggle) S(g_radio) ! S(g_slider) S(g_numbox) S(g_mycanvas) S(g_vumeter) S(g_dropper) S(g_wire) #undef S }