From bb8ccce4d1593be28719c7e85849076b8fc96632 Mon Sep 17 00:00:00 2001 From: Stefan Frederik Date: Sun, 7 Nov 2021 01:26:31 +0100 Subject: [PATCH] comments in resources.tcl, license info --- src/resources.tcl | 41 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/src/resources.tcl b/src/resources.tcl index d02914ad..462153f7 100644 --- a/src/resources.tcl +++ b/src/resources.tcl @@ -1,7 +1,46 @@ +# +# File: resources.tcl +# +# This file is part of XSCHEM, +# a schematic capture and Spice/Vhdl/Verilog netlisting tool for circuit +# simulation. +# Copyright (C) 1998-2021 Stefan Frederik Schippers +# +# 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 + + + + ## -## Tcl Resources for XSchem +## Tcl Resources for XSchem toolbars ## + +## Toolbar images are 24x24, +## Context menu images are 16x16 +## +## NOTE: if a svg image is created (with transparent white) it needs to be converted to gif, +## however inkscape does not convert from svg to gif, so the steps are: +## +## # this creates paste.png +## inkscape --export-type="png" -w 24 -h 24 paste.svg +## # generate gif and base64 encode. +## # we need to lose transparency in gif otherwise all antialiasing in png image is lost +## # so we set white background and eliminate alpha channel (unsupported in gif). +## convert -background white -alpha remove -alpha off paste.png gif:- |base64 + ## ## Toolbar buttons ##