Index: trunk/scconfig/plugins.h =================================================================== --- trunk/scconfig/plugins.h (revision 5639) +++ trunk/scconfig/plugins.h (revision 5640) @@ -32,6 +32,7 @@ plugin_def("propedit", "object property editor", sbuildin, 1) plugin_def("loghid", "diagnostics: log HID calls",sdisable, 1) plugin_def("query", "query language", sbuildin, 1) +plugin_def("acompnet", "net auto-completion", sdisable, 1) plugin_def("rubberband_orig", "the original rubberband", sbuildin, 1) plugin_header("\nFootprint backends:\n") Index: trunk/src_plugins/acompnet/Makefile =================================================================== --- trunk/src_plugins/acompnet/Makefile (nonexistent) +++ trunk/src_plugins/acompnet/Makefile (revision 5640) @@ -0,0 +1,5 @@ +all: + cd ../../src && make mod_acompnet + +clean: + rm *.o *.so 2>/dev/null ; true Index: trunk/src_plugins/acompnet/Plug.tmpasm =================================================================== --- trunk/src_plugins/acompnet/Plug.tmpasm (nonexistent) +++ trunk/src_plugins/acompnet/Plug.tmpasm (revision 5640) @@ -0,0 +1,8 @@ +put /local/pcb/mod {acompnet} +put /local/pcb/mod/OBJS [@ $(PLUGDIR)/acompnet/acompnet.o @] + +switch /local/pcb/acompnet/controls + case {buildin} include /local/pcb/tmpasm/buildin; end; + case {plugin} include /local/pcb/tmpasm/plugin; end; + case {disable} include /local/pcb/tmpasm/disable; end; +end Index: trunk/src_plugins/acompnet/README =================================================================== --- trunk/src_plugins/acompnet/README (nonexistent) +++ trunk/src_plugins/acompnet/README (revision 5640) @@ -0,0 +1,5 @@ +Auto-complete the current network. A very limited autorouter/assistant. + +#state: WIP +#default: disable +#implements: (feature) Index: trunk/src_plugins/acompnet/acompnet.c =================================================================== --- trunk/src_plugins/acompnet/acompnet.c (nonexistent) +++ trunk/src_plugins/acompnet/acompnet.c (revision 5640) @@ -0,0 +1,65 @@ +/* + * COPYRIGHT + * + * pcb-rnd, interactive printed circuit board design + * Copyright (C) 2016 Tibor 'Igor2' Palinkas + * + * This module, debug, was written and is Copyright (C) 2016 by Tibor Palinkas + * this module is also subject to the GNU GPL as described below + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + */ + +#include "config.h" +#include "board.h" +#include "data.h" +#include "layer.h" +#include "layer_ui.h" +/*#include "acompnet_conf.h"*/ +#include "action_helper.h" +#include "hid_actions.h" +#include "plugins.h" +#include "conf.h" +#include "error.h" + +static const char pcb_acts_acompnet[] = "acompnet()\n" ; +static const char pcb_acth_acompnet[] = "Attempt to auto-complete the current network"; + +static int pcb_act_acompnet(int argc, const char **argv, pcb_coord_t x, pcb_coord_t y) +{ + return 0; +} + +pcb_hid_action_t acompnet_action_list[] = { + {"acompnet", 0, pcb_act_acompnet, + pcb_acth_acompnet, pcb_acts_acompnet}, +}; + +static const char *acompnet_cookie = "acompnet plugin"; + +PCB_REGISTER_ACTIONS(acompnet_action_list, acompnet_cookie) + +static void hid_acompnet_uninit(void) +{ + pcb_hid_remove_actions_by_cookie(acompnet_cookie); +} + +#include "dolists.h" +pcb_uninit_t hid_acompnet_init(void) +{ + PCB_REGISTER_ACTIONS(acompnet_action_list, acompnet_cookie) + return hid_acompnet_uninit; +} Index: trunk/src_plugins/plugins_feature.tmpasm =================================================================== --- trunk/src_plugins/plugins_feature.tmpasm (revision 5639) +++ trunk/src_plugins/plugins_feature.tmpasm (revision 5640) @@ -32,4 +32,5 @@ include {../src_plugins/diag/Plug.tmpasm} include {../src_plugins/loghid/Plug.tmpasm} include {../src_plugins/query/Plug.tmpasm} +include {../src_plugins/acompnet/Plug.tmpasm} include {../src_plugins/rubberband_orig/Plug.tmpasm}