Index: trunk/scconfig/Rev.h =================================================================== --- trunk/scconfig/Rev.h (revision 33688) +++ trunk/scconfig/Rev.h (revision 33689) @@ -1 +1 @@ -static const int myrev = 33621; +static const int myrev = 33689; Index: trunk/scconfig/Rev.tab =================================================================== --- trunk/scconfig/Rev.tab (revision 33688) +++ trunk/scconfig/Rev.tab (revision 33689) @@ -1,4 +1,4 @@ -33621 configure new plugin: io_pads +33689 configure new plugin: io_pads 33489 configure new plugin: show_netnames 33460 configure local dialogs plugin configuration 33403 distclean move script plugin to librnd Index: trunk/src_plugins/io_pads/Plug.tmpasm =================================================================== --- trunk/src_plugins/io_pads/Plug.tmpasm (revision 33688) +++ trunk/src_plugins/io_pads/Plug.tmpasm (revision 33689) @@ -2,6 +2,7 @@ put /local/pcb/mod/OBJS [@ $(PLUGDIR)/io_pads/io_pads.o $(PLUGDIR)/io_pads/read.o + $(PLUGDIR)/io_pads/delay_create.o @] put /local/pcb/mod/BYACCIC {$(PLUGDIR)/io_pads/pads_gram} Index: trunk/src_plugins/io_pads/delay_create.c =================================================================== --- trunk/src_plugins/io_pads/delay_create.c (nonexistent) +++ trunk/src_plugins/io_pads/delay_create.c (revision 33689) @@ -0,0 +1,31 @@ +/* + * COPYRIGHT + * + * pcb-rnd, interactive printed circuit board design + * + * delayed creation of objects + * pcb-rnd Copyright (C) 2021 Tibor 'Igor2' Palinkas + * (Supported by NLnet NGI0 PET Fund in 2021) + * + * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Contact: + * Project page: http://repo.hu/projects/pcb-rnd + * lead developer: http://repo.hu/projects/pcb-rnd/contact.html + * mailing list: pcb-rnd (at) list.repo.hu (send "subscribe") + */ + +#include "config.h" +#include "delay_create.h" Index: trunk/src_plugins/io_pads/delay_create.h =================================================================== --- trunk/src_plugins/io_pads/delay_create.h (nonexistent) +++ trunk/src_plugins/io_pads/delay_create.h (revision 33689) @@ -0,0 +1,26 @@ +#include +#include +#include "layer.h" +#include "obj_common.h" + +typedef struct { + char *name; + pcb_layer_type_t lyt; + void *user_ctx; + union { + char start; + void *bulkp[32]; + double bulkd[32]; + } local_user_data; +} pcb_dlcr_layer_t; + + +typedef struct { + pcb_any_obj_t obj; + gdl_elem_t link; +} pcb_dlcr_draw_t; + +typedef struct { + htsp_t layers; /* key=->name, val=pcb_dlcr_layer_t */ + gdl_list_t drawing; /* of pcb_dlcr_draw_t; */ +} pcb_dlcr_t;