Index: trunk/scconfig/Rev.h =================================================================== --- trunk/scconfig/Rev.h (revision 9918) +++ trunk/scconfig/Rev.h (revision 9919) @@ -1 +1 @@ -static const int myrev = 9840; +static const int myrev = 9919; Index: trunk/scconfig/Rev.tab =================================================================== --- trunk/scconfig/Rev.tab (revision 9918) +++ trunk/scconfig/Rev.tab (revision 9919) @@ -1,3 +1,4 @@ +9919 configure rubberband_orig got its own config subtree 9840 configure compile and link libminuid 9600 configure eagle bin parser 9271 configure core cleanup (split select.c and operation.c) Index: trunk/src/Makefile.dep =================================================================== --- trunk/src/Makefile.dep (revision 9918) +++ trunk/src/Makefile.dep (revision 9919) @@ -2839,6 +2839,7 @@ ../src_plugins/lib_gtk_common/dlg_about.o: \ ../src_plugins/lib_gtk_common/dlg_about.c ../config.h \ ../src_plugins/lib_gtk_common/dlg_about.h compat_nls.h build_run.h \ + ../src_plugins/lib_gtk_common/compat.h \ ../src_plugins/lib_gtk_common/dlg_report.h ../src_plugins/lib_gtk_common/dlg_attribute.o: \ ../src_plugins/lib_gtk_common/dlg_attribute.c ../config.h conf_core.h \ @@ -4591,7 +4592,8 @@ ../src_3rd/liblihata/lihata.h ../src_3rd/liblihata/parser.h \ ../src_3rd/liblihata/genht/htsp.h ../src_3rd/genvector/vtp0.h \ list_conf.h layer_grp.h ../src_plugins/rubberband_orig/fgeometry.h \ - obj_common.h polygon.h + obj_common.h polygon.h ../src_plugins/rubberband_orig/rubberband_conf.h \ + conf.h ../src_plugins/rubberband_orig/rubberband_conf_fields.h ../src_plugins/shand_cmd/command.o: ../src_plugins/shand_cmd/command.c \ ../config.h conf_core.h conf.h global_typedefs.h pcb_bool.h unit.h \ pcb-printf.h ../src_3rd/genvector/gds_char.h \ Index: trunk/src_plugins/rubberband_orig/Plug.tmpasm =================================================================== --- trunk/src_plugins/rubberband_orig/Plug.tmpasm (revision 9918) +++ trunk/src_plugins/rubberband_orig/Plug.tmpasm (revision 9919) @@ -3,6 +3,7 @@ $(PLUGDIR)/rubberband_orig/rubberband.o $(PLUGDIR)/rubberband_orig/fgeometry.o @] +put /local/pcb/mod/CONF {$(PLUGDIR)/rubberband_orig/rubberband_conf.h} switch /local/pcb/rubberband_orig/controls case {buildin} include /local/pcb/tmpasm/buildin; end; Index: trunk/src_plugins/rubberband_orig/rubberband.c =================================================================== --- trunk/src_plugins/rubberband_orig/rubberband.c (revision 9918) +++ trunk/src_plugins/rubberband_orig/rubberband.c (revision 9919) @@ -53,6 +53,10 @@ #include "polygon.h" +#include "rubberband_conf.h" +conf_rubberband_orig_t conf_rbo; + + typedef struct { /* rubberband lines for element moves */ pcb_layer_t *Layer; /* layer that holds the line */ pcb_line_t *Line; /* the line itself */ @@ -1255,6 +1259,7 @@ void pplg_uninit_rubberband_orig(void) { pcb_event_unbind_allcookie(rubber_cookie); + conf_unreg_fields("plugins/rubberband_orig/"); } int pplg_init_rubberband_orig(void) @@ -1271,6 +1276,10 @@ pcb_event_bind(PCB_EVENT_RUBBER_FIT_CROSSHAIR, rbe_fit_crosshair, ctx, rubber_cookie); pcb_event_bind(PCB_EVENT_RUBBER_CONSTRAIN_MAIN_LINE, rbe_constrain_main_line, ctx, rubber_cookie); +#define conf_reg(field,isarray,type_name,cpath,cname,desc,flags) \ + conf_reg_field(conf_mincut, field,isarray,type_name,cpath,cname,desc,flags); +#include "rubberband_conf_fields.h" + return 0; } Index: trunk/src_plugins/rubberband_orig/rubberband_conf.h =================================================================== --- trunk/src_plugins/rubberband_orig/rubberband_conf.h (nonexistent) +++ trunk/src_plugins/rubberband_orig/rubberband_conf.h (revision 9919) @@ -0,0 +1,14 @@ +#ifndef PCB_MINCUT_CONF_H +#define PCB_MINCUT_CONF_H + +#include "conf.h" + +typedef struct { + const struct plugins { + const struct rubberband_orig { + CFT_BOOLEAN new_arc_mode; /* TODO */ + } rubberband_orig; + } plugins; +} conf_rubberband_orig_t; + +#endif