bool moveresmode_do_end(WMoveresMode *mode, bool apply) { WRegion *reg=mode->reg; assert(reg!=NULL); assert(tmpmode==mode); tmpmode=NULL; if(XOR_RESIZE){ moveres_draw_rubberband(mode); if(apply){ WRQGeomParams rq=RQGEOMPARAMS_INIT; rq.geom=mode->geom; rq.flags=mode->rqflags&~REGION_RQGEOM_TRYONLY; region_rqgeom(reg, &rq, &mode->geom); } XUngrabServer(ioncore_g.dpy); } if(apply) set_saved(mode, reg); if(mode->infowin!=NULL){ mainloop_defer_destroy((Obj*)mode->infowin); mode->infowin=NULL; } destroy_obj((Obj*)mode); return TRUE; }
void GlowNodeClass::save( ofstream& fp, glow_eSaveMode mode) { char *s; int i; if ( saved) return; set_saved(1); if ( slider) x0 = x1 = y1 = 0; if ( next_nc) ((GlowNodeClass *)next_nc)->save( fp, mode); if ( nc_extern) return; if ( (mode == glow_eSaveMode_Trace && group != glow_eNodeGroup_Trace) || (mode == glow_eSaveMode_Edit && group == glow_eNodeGroup_Trace) ) return; fp << int(glow_eSave_NodeClass) << endl; fp << int(glow_eSave_NodeClass_nc_name) << FSPACE << nc_name << endl; fp << int(glow_eSave_NodeClass_a) << endl; a.save( fp, mode); fp << int(glow_eSave_NodeClass_group) << FSPACE << int(group) << endl; fp << int(glow_eSave_NodeClass_dynamicsize) << FSPACE << dynamicsize << endl; fp << int(glow_eSave_NodeClass_dynamic) << endl; if( dynamic) { fp << "\""; for ( s = dynamic; *s; s++) { if ( *s == '"') fp << "\\"; fp << *s; } fp << "\"" << endl; } fp << int(glow_eSave_NodeClass_arg_cnt) << FSPACE << arg_cnt << endl; fp << int(glow_eSave_NodeClass_argname) << endl; for ( i = 0; i < arg_cnt; i++) fp << argname[i] << endl; fp << int(glow_eSave_NodeClass_argtype) << endl; for ( i = 0; i < arg_cnt; i++) fp << argtype[i] << endl; fp << int(glow_eSave_NodeClass_dyn_type1) << FSPACE << dyn_type1 << endl; fp << int(glow_eSave_NodeClass_dyn_type2) << FSPACE << dyn_type2 << endl; fp << int(glow_eSave_NodeClass_dyn_action_type1) << FSPACE << dyn_action_type1 << endl; fp << int(glow_eSave_NodeClass_dyn_action_type2) << FSPACE << dyn_action_type2 << endl; fp << int(glow_eSave_NodeClass_dyn_color1) << FSPACE << int(dyn_color[0]) << endl; fp << int(glow_eSave_NodeClass_dyn_color2) << FSPACE << int(dyn_color[1]) << endl; fp << int(glow_eSave_NodeClass_dyn_color3) << FSPACE << int(dyn_color[2]) << endl; fp << int(glow_eSave_NodeClass_dyn_color4) << FSPACE << int(dyn_color[3]) << endl; fp << int(glow_eSave_NodeClass_dyn_attr1) << FSPACE << dyn_attr[0] << endl; fp << int(glow_eSave_NodeClass_dyn_attr2) << FSPACE << dyn_attr[1] << endl; fp << int(glow_eSave_NodeClass_dyn_attr3) << FSPACE << dyn_attr[2] << endl; fp << int(glow_eSave_NodeClass_dyn_attr4) << FSPACE << dyn_attr[3] << endl; fp << int(glow_eSave_NodeClass_no_con_obstacle) << FSPACE << no_con_obstacle << endl; fp << int(glow_eSave_NodeClass_slider) << FSPACE << slider << endl; fp << int(glow_eSave_NodeClass_java_name) << FSPACE << java_name << endl; fp << int(glow_eSave_NodeClass_next_nodeclass) << FSPACE << next_nodeclass << endl; fp << int(glow_eSave_NodeClass_animation_count) << FSPACE << animation_count << endl; fp << int(glow_eSave_NodeClass_cycle) << FSPACE << int(cycle) << endl; fp << int(glow_eSave_NodeClass_y0) << FSPACE << y0 << endl; fp << int(glow_eSave_NodeClass_y1) << FSPACE << y1 << endl; fp << int(glow_eSave_NodeClass_x0) << FSPACE << x0 << endl; fp << int(glow_eSave_NodeClass_x1) << FSPACE << x1 << endl; fp << int(glow_eSave_NodeClass_input_focus_mark) << FSPACE << int(input_focus_mark) << endl; fp << int(glow_eSave_NodeClass_recursive_trace) << FSPACE << recursive_trace << endl; if ( user_data && ctx->userdata_save_callback) { fp << int(glow_eSave_NodeClass_userdata_cb) << endl; (ctx->userdata_save_callback)(&fp, this, glow_eUserdataCbType_NodeClass); } fp << int(glow_eSave_End) << endl; }