Index: trunk/scconfig/Rev.h =================================================================== --- trunk/scconfig/Rev.h (revision 33458) +++ trunk/scconfig/Rev.h (revision 33459) @@ -1 +1 @@ -static const int myrev = 33403; +static const int myrev = 33459; Index: trunk/scconfig/Rev.tab =================================================================== --- trunk/scconfig/Rev.tab (revision 33458) +++ trunk/scconfig/Rev.tab (revision 33459) @@ -1,3 +1,4 @@ +33459 configure local dialogs plugin configuration 33403 distclean move script plugin to librnd 33376 distclean scripting support cleanup 33318 distclean switch over to using librnd as a whole Index: trunk/src_plugins/dialogs/Plug.tmpasm =================================================================== --- trunk/src_plugins/dialogs/Plug.tmpasm (revision 33458) +++ trunk/src_plugins/dialogs/Plug.tmpasm (revision 33459) @@ -16,6 +16,10 @@ $(PLUGDIR)/dialogs/dlg_view.o @] +put /local/pcb/mod/CONFFILE {adialogs.conf} +put /local/pcb/mod/CONF {$(LIBRND_PLUGDIR)/lib_hid_common/adialogs_conf.h} +put /local/pcb/mod/CONFVAR {adialogs_conf_internal} + switch /local/pcb/dialogs/controls case {buildin} include /local/pcb/tmpasm/buildin; end; case {plugin} include /local/pcb/tmpasm/plugin; end; Index: trunk/src_plugins/dialogs/adialogs.conf =================================================================== --- trunk/src_plugins/dialogs/adialogs.conf (nonexistent) +++ trunk/src_plugins/dialogs/adialogs.conf (revision 33459) @@ -0,0 +1,11 @@ +li:pcb-rnd-conf-v1 { + ha:append { + ha:plugins { + ha:dialogs { + ha:library { + preview_refresh_timeout = 500 + } + } + } + } +} Index: trunk/src_plugins/dialogs/adialogs_conf.h =================================================================== --- trunk/src_plugins/dialogs/adialogs_conf.h (nonexistent) +++ trunk/src_plugins/dialogs/adialogs_conf.h (revision 33459) @@ -0,0 +1,18 @@ +#ifndef PCB_ADIALOGS_CONF_H +#define PCB_ADIALOGS_CONF_H + +#include + +/* pcb-rnd specific dialog config */ + +typedef struct { + const struct { + const struct { + const struct { + RND_CFT_INTEGER preview_refresh_timeout; /* how much time to wait (in milliseconds) after the last edit in filter before refreshing the preview, e.g. for parametric footprints */ + } library; + } dialogs; + } plugins; +} conf_adialogs_t; + +#endif Index: trunk/src_plugins/dialogs/dialogs.c =================================================================== --- trunk/src_plugins/dialogs/dialogs.c (revision 33458) +++ trunk/src_plugins/dialogs/dialogs.c (revision 33459) @@ -63,6 +63,12 @@ #include "dlg_view.h" #include "dlg_pref.h" +#include "adialogs_conf.h" +#include "conf_internal.c" + +conf_adialogs_t adialogs_conf; +#define ADIALOGS_CONF_FN "adialogs.conf" + extern const char pcb_acts_dlg_confval_edit[]; extern const char pcb_acth_dlg_confval_edit[]; extern fgw_error_t pcb_act_dlg_confval_edit(fgw_arg_t *res, int argc, fgw_arg_t *argv); @@ -112,6 +118,8 @@ rnd_remove_actions_by_cookie(dialogs_cookie); pcb_view_dlg_uninit(); pcb_dlg_fontsel_uninit(); + + rnd_conf_unreg_file(ADIALOGS_CONF_FN, adialogs_conf_internal); rnd_conf_unreg_fields("plugins/dialogs/"); } @@ -119,6 +127,12 @@ { RND_API_CHK_VER; +#define conf_reg(field,isarray,type_name,cpath,cname,desc,flags) \ + rnd_conf_reg_field(dialogs_conf, field,isarray,type_name,cpath,cname,desc,flags); +#include "adialogs_conf_fields.h" + + rnd_conf_reg_file(ADIALOGS_CONF_FN, adialogs_conf_internal); + RND_REGISTER_ACTIONS(dialogs_action_list, dialogs_cookie) pcb_dlg_pref_init(); pcb_dlg_pstklib_init();