gEDA-dev: Adding Tools menu to Gschem to improve gEDA ui
Paul Tan
pt75234 at aim.com
Wed Dec 12 02:04:21 EST 2007
Hi All,
After our discussion about the proposal to add user/common
scripts to Gschem Tools menu, I decided I should come up
with a simple setup to illustrate how easy it can be done, as
long as the scripts require only parameters which can be
derived from filename/filepath.
Attached is a simple scheme script which we can use as a
template to add other scripts(Bash, Python, Ruby, etc)
to the Gschem menu.
To setup: (This has been only tested under FC6 linux)
(1) Copy the attached file "gsch-tools-menu.scm" to (normally)
/usr/share/gEDA/scheme/ directory.
(2) Add the following line (without the semi-colon) at the end of
system-gschemrc file, normally under /usr/share/gEDA/ folder:
(load (string-append gedadata "/scheme/gsch-tools-menu.scm"))
(3) run gschem
Since my interests are in the VLSI design side, the
attached scheme code is for Verilog, VHDL, Spice etc,. The user
can easily modify/add codes to do what they want.
To be able to handle multiple parameters (not derived from
filename) and multi-page, a generic SCM-GTK popup window
function may need to be added to Gschem core. This should
not be hard to do, just need time to get it right. It can
also be done with "zenity" or "dialog" if these packages
are also commonly installed in non FC6 system.
Thank you, Dan McMahill and others, for pointing out the
codes where some of these features are used in gEDA/PCB.
A way to allow user easy customization is to
have several gsch-tools-menu.scm like files, using
the commented in/out to do the job:
(load (string-append gedadata "gsch-tools-menu-xxx"))
; (load (string-append gedadata "gsch-tools-menu-yyy"))
I would like to propose to add some commonly used
gsch-tools-menu-xxx.scm files to our gEDA release, so
that gEDA user interface can be improved.
Best Regards,
Paul Tan
________________________________________________________________________
More new features than ever. Check out the new AIM(R) Mail ! -
http://webmail.aim.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gsch-tools-menu.scm
Type: application/octet-stream
Size: 5918 bytes
Desc: not available
Url : http://www.seul.org/pipermail/geda-dev/attachments/20071212/b9799fbc/attachment.obj
More information about the geda-dev
mailing list