Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29821
Modified Files: Tag: impd_0_37 g_hdial.c g_hslider.c Log Message: [hslider] [vslider] [hradio] [vradio]: bugfix
Index: g_hslider.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/g_hslider.c,v retrieving revision 1.1.1.3.2.2.2.32 retrieving revision 1.1.1.3.2.2.2.33 diff -C2 -d -r1.1.1.3.2.2.2.32 -r1.1.1.3.2.2.2.33 *** g_hslider.c 13 May 2004 14:37:20 -0000 1.1.1.3.2.2.2.32 --- g_hslider.c 13 Aug 2004 16:39:38 -0000 1.1.1.3.2.2.2.33 *************** *** 115,118 **** --- 115,128 ---- {if(iemgui_loadbang(x)) slider_bang(x);}
+ static void slider_savefn(t_slider *x, t_binbuf *b) { + t_iemgui *y = (t_iemgui *)x; + pd_savehead(b, y, isvert(x)?"vsl":"hsl"); + pd_saveargs(b,"iiddbiaaaiiiiccci;b", + &y->x_w,&y->x_h,&x->x_min,&x->x_max,&x->x_is_log,&y->x_isa, + &y->x_snd,&y->x_rcv,&y->x_lab, + &y->x_ldx,&y->x_ldy,&y->x_font_style,&y->x_fontsize, + &y->x_bcol,&y->x_fcol,&y->x_lcol,&x->x_val,&x->x_steady); + } + static void slider_reload(t_slider *x, t_symbol *s, int argc, t_atom *argv) { *************** *** 187,190 **** --- 197,201 ---- sym_vslider = gensym("vslider"); class_setwidget(c, &wb); + class_setsavefn(c,(t_savefn)slider_savefn); class_sethelpsymbol(c, gensym("hslider")); }
Index: g_hdial.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/g_hdial.c,v retrieving revision 1.1.1.4.2.2.2.27 retrieving revision 1.1.1.4.2.2.2.28 diff -C2 -d -r1.1.1.4.2.2.2.27 -r1.1.1.4.2.2.2.28 *** g_hdial.c 13 May 2004 14:37:20 -0000 1.1.1.4.2.2.2.27 --- g_hdial.c 13 Aug 2004 16:39:38 -0000 1.1.1.4.2.2.2.28 *************** *** 142,145 **** --- 142,156 ---- static void radio_single_change(t_radio *x) {x->x_change = 0;}
+ static void radio_save(t_radio *x, t_binbuf *b) { + t_iemgui *y = (t_iemgui *)x; + if (!b) return; + pd_savehead(b, y, x->x_flavor->s_name); + pd_saveargs(b, "ibiiaaaiiiiccci", + &y->x_w,&x->x_change,&y->x_isa,&x->x_number,&y->x_snd,&y->x_rcv,&y->x_lab, + &y->x_ldx,&y->x_ldy,&y->x_font_style,&y->x_fontsize, + &y->x_bcol,&y->x_fcol,&y->x_lcol,&x->x_on); + } + + static void radio_reload(t_radio *x, t_symbol *s, int argc, t_atom *argv) { *************** *** 208,211 **** --- 219,223 ----
class_setwidget(c, &wb); + class_setsavefn(c,radio_save); class_sethelpsymbol(c, gensym("hradio")); class_addcreator((t_newmethod)radio_new, gensym("hradio"), A_GIMME, 0);