Index: trunk/scconfig/Rev.h =================================================================== --- trunk/scconfig/Rev.h (revision 12401) +++ trunk/scconfig/Rev.h (revision 12402) @@ -1 +1 @@ -static const int myrev = 12221; +static const int myrev = 12401; Index: trunk/scconfig/Rev.tab =================================================================== --- trunk/scconfig/Rev.tab (revision 12401) +++ trunk/scconfig/Rev.tab (revision 12402) @@ -1,3 +1,4 @@ +12401 configure new source files for more generic thermal support 12221 configure new source files for padstacks 12108 configure tool code splitup 11724 configure new default pcb Index: trunk/src/Makefile.in =================================================================== --- trunk/src/Makefile.in (revision 12401) +++ trunk/src/Makefile.in (revision 12402) @@ -143,6 +143,7 @@ stub_mincut.o stub_stroke.o stub_vendor.o + thermal.o tool.o tool_arc.o tool_arrow.o Index: trunk/src/obj_padstack.h =================================================================== --- trunk/src/obj_padstack.h (revision 12401) +++ trunk/src/obj_padstack.h (revision 12402) @@ -25,17 +25,6 @@ #include "obj_common.h" -typedef enum pcb_thermal_e { - /* bit 0 and 1: shape */ - PCB_THERMAL_NOSHAPE = 0, /* no shape shall be drawn, omit copper, no connection */ - PCB_THERMAL_ROUND = 1, - PCB_THERMAL_SHARP = 2, - PCB_THERMAL_SOLID = 3, - - /* bit 2: orientation */ - PCB_THERMAL_DIAGONAL = 4 -} pcb_thermal_t; - /* The actual padstack is just a reference to a padstack proto within the same data */ struct pcb_padstack_s { PCB_ANYOBJECTFIELDS; Index: trunk/src/thermal.c =================================================================== --- trunk/src/thermal.c (nonexistent) +++ trunk/src/thermal.c (revision 12402) @@ -0,0 +1,25 @@ +/* + * COPYRIGHT + * + * pcb-rnd, interactive printed circuit board design + * Copyright (C) 2017 Tibor 'Igor2' Palinkas + * + * 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 "thermal.h" Index: trunk/src/thermal.h =================================================================== --- trunk/src/thermal.h (nonexistent) +++ trunk/src/thermal.h (revision 12402) @@ -0,0 +1,33 @@ +/* + * COPYRIGHT + * + * pcb-rnd, interactive printed circuit board design + * Copyright (C) 2017 Tibor 'Igor2' Palinkas + * + * 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. + * + */ + +typedef enum pcb_thermal_e { + /* bit 0 and 1: shape */ + PCB_THERMAL_NOSHAPE = 0, /* no shape shall be drawn, omit copper, no connection */ + PCB_THERMAL_ROUND = 1, + PCB_THERMAL_SHARP = 2, + PCB_THERMAL_SOLID = 3, + + /* bit 2: orientation */ + PCB_THERMAL_DIAGONAL = 4 +} pcb_thermal_t; +