Index: trunk/src/examples/psu.lht =================================================================== --- trunk/src/examples/psu.lht (revision 994) +++ trunk/src/examples/psu.lht (revision 995) @@ -51,6 +51,7 @@ ha:obj_direct.2 { li:pens { ha:pen.3 { shape=circle; size=250; color=#FF00FF; } + ha:pen.42 { shape=circle; size=250; color=#2222BB; } } li:objects { ha:group_ref.20 { @@ -81,13 +82,10 @@ ha:group.30 { li:pens { - ha:pen.3 { shape=circle; size=250; color=#991111; } - ha:pen.4 { shape=circle; size=250; color=#2222BB; } - ha:pen.5 { shape=circle; size=250; color=#119911; } } li:objects { - ha:line.31 { x1=20000; y1=12000; x2=22000; y2=12000; pen=4; } - ha:line.32 { x1=22000; y1=16000; x2=22000; y2=12000; pen=4; } + ha:line.31 { x1=20000; y1=12000; x2=22000; y2=12000; pen=42; } + ha:line.32 { x1=22000; y1=16000; x2=22000; y2=12000; pen=42; } } ha:attrib { uid=xxxxx3 Index: trunk/src/libcschem/Makefile.in =================================================================== --- trunk/src/libcschem/Makefile.in (revision 994) +++ trunk/src/libcschem/Makefile.in (revision 995) @@ -44,6 +44,7 @@ append /local/csch/OBJS [@ ../plugins/io_lihata/io_lihata.o ../plugins/io_lihata/read.o + ../plugins/io_lihata/write.o ../plugins/export_animator/export_animator.o ../plugins/export_tedax/export_tedax.o ../plugins/std_devmap/std_devmap.o Index: trunk/src/plugins/io_lihata/io_lihata.c =================================================================== --- trunk/src/plugins/io_lihata/io_lihata.c (revision 994) +++ trunk/src/plugins/io_lihata/io_lihata.c (revision 995) @@ -2,7 +2,7 @@ * COPYRIGHT * * cschem - modular/flexible schematics editor - libcschem (lihata format support) - * Copyright (C) 2018 Tibor 'Igor2' Palinkas + * Copyright (C) 2018,2020 Tibor 'Igor2' Palinkas * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -30,6 +30,7 @@ #include #include #include "read.h" +#include "write.h" static csch_plug_io_t lhtv1; @@ -60,6 +61,7 @@ lhtv1.load_prio = io_lihata_load_prio; lhtv1.load_sheet = io_lihata_load_sheet; lhtv1.load_project = io_lihata_load_project; + lhtv1.save_sheet = io_lihata_save_sheet; csch_plug_io_register(&lhtv1); return 0; } Index: trunk/src/plugins/io_lihata/write.c =================================================================== --- trunk/src/plugins/io_lihata/write.c (nonexistent) +++ trunk/src/plugins/io_lihata/write.c (revision 995) @@ -0,0 +1,46 @@ +/* + * COPYRIGHT + * + * cschem - modular/flexible schematics editor - libcschem (lihata format support) + * Copyright (C) 2020 Tibor 'Igor2' Palinkas + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version.* + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; 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/cschem + * lead developer: email to cschem (at) igor2.repo.hu + * mailing list: cschem (at) list.repo.hu (send "subscribe") + */ + + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "write.h" + +int io_lihata_save_sheet(const char *fn, const char *fmt, const csch_sheet_t *dst) +{ + return -1; +} + Index: trunk/src/plugins/io_lihata/write.h =================================================================== --- trunk/src/plugins/io_lihata/write.h (nonexistent) +++ trunk/src/plugins/io_lihata/write.h (revision 995) @@ -0,0 +1,31 @@ +/* + * COPYRIGHT + * + * cschem - modular/flexible schematics editor - libcschem (core library) + * Copyright (C) 2020 Tibor 'Igor2' Palinkas + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version.* + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; 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/cschem + * lead developer: email to cschem (at) igor2.repo.hu + * mailing list: cschem (at) list.repo.hu (send "subscribe") + */ + + +#include + +int io_lihata_save_sheet(const char *fn, const char *fmt, const csch_sheet_t *dst); +