On Wednesday 28 November 2007 21:20:00 Peter TB Brett wrote:
> Hi folks,
>
> The attached patch uses some functionality I added a few months ago to
> change the names presented in the component dialog box to something less
> offensively cryptic.
>
Revised patch. This puts the libraries in a sensible order by default, so we
can ship with sort-component-libraries turned off.
Then users' custom libraries will appear at the top of the list like they
should.
New screenshot:
http://www.srcf.ucam.org/%7Eptbb2/gschem-pretty-clibnames2.png
Peter
--
Peter Brett
Electronic Systems Engineer
Integral Informatics Ltd
From e4a1fa8545e76b4ef82cc1253e65a844fa5fea88 Mon Sep 17 00:00:00 2001
From: Peter TB Brett <peter@xxxxxxxxxxxxx>
Date: Thu, 29 Nov 2007 13:32:15 +0000
Subject: [PATCH] symbols: Nicer names for default libraries
Use the features added in the component library backend rewrite to
give the default component libraries less cryptic names.
Also, put them in a sensible order, and disable component library
sorting by default so that that order is preserved.
---
gschem/lib/system-gschemrc.in | 4 +-
symbols/geda-clib.scm | 112 ++++++++++++++++++++++------------------
2 files changed, 64 insertions(+), 52 deletions(-)
diff --git a/gschem/lib/system-gschemrc.in b/gschem/lib/system-gschemrc.in
index 6c97797..cac762f 100644
--- a/gschem/lib/system-gschemrc.in
+++ b/gschem/lib/system-gschemrc.in
@@ -245,8 +245,8 @@
; cosmetic, and will not alter the component search order (latest
; added gets scanned first).
;
-;(sort-component-library "disabled")
-(sort-component-library "enabled")
+(sort-component-library "disabled")
+;(sort-component-library "enabled")
; text-feedback string
;
diff --git a/symbols/geda-clib.scm b/symbols/geda-clib.scm
index e3b33a5..1d0672b 100644
--- a/symbols/geda-clib.scm
+++ b/symbols/geda-clib.scm
@@ -10,53 +10,65 @@
; libraries.
(for-each
(lambda (dir)
- (component-library (build-path geda-sym-path dir)))
-'(
- "74"
- "4000"
- "IEC417"
- "amphenol"
- "analog"
- "linear"
- "altera"
- "lattice"
- "xilinx"
- "idt"
- "misc"
- "power"
- "philips"
- "minicircuits"
- "st"
- "apex"
- "allegro"
- "irf"
- "transistor"
- "io"
- "titleblock"
- "memory"
- "micro"
- "maxim"
- "national"
- "radio"
- "tube"
- "connector"
- "switch"
- "switcap"
- ;"verilog"
- ;"vhdl"
- "spice"
- "rf"
- "bus"
- "pla"
- "ecl"
- "dec"
- "supervisor"
- "opto"
- "diode"
- "relay"
- "cascade"
- "asic"
- "asicpads"
- ;"gnetman"
- "local"
- ))
+ (if (list? dir)
+ (component-library (build-path geda-sym-path (car dir)) (cadr dir))
+ (component-library (build-path geda-sym-path dir)))
+ )
+ (reverse '(
+ "local"
+ ; Generic symbols
+ ("analog" "Basic devices")
+ ("connector" "Connectors (generic)")
+ ("diode" "Diodes (generic)")
+ ("io" "Input/output (generic)")
+ ("power" "Power rails")
+ ("radio" "Radio elements (generic)")
+ ("switch" "Switches (generic)")
+ ("titleblock" "Titleblocks (generic)")
+ ("IEC417" "IEC 60417")
+ ; Common logic series
+ ("74" "74-series logic")
+ ("4000" "4000-series logic")
+ ("ecl" "ECL logic")
+ ; Simulation
+ ("cascade" "Cascade simulation elements")
+ ("spice" "SPICE simulation elements")
+ ("switcap" "SWITCAP simulation elements")
+ ; ASIC design
+ ("asic" "Basic devices (ASIC)")
+ ("asicpads" "Contact pads (ASIC)")
+ ; Manufacturers
+ ("allegro" "Allegro Microsystems")
+ ("altera" "Altera")
+ ("amphenol" "Connectors (Amphenol)")
+ ("apex" "Apex Microtechnology")
+ ("dec" "DEC")
+ ("idt" "IDT")
+ ("irf" "International Rectifier")
+ ("lattice" "Lattice Semiconductor")
+ ("linear" "Linear Technology")
+ ("maxim" "Maxim/Dallas")
+ ("minicircuits" "Mini-Circuits")
+ ("national" "National Semiconductor")
+ ("philips" "Philips Electronics")
+ ("st" "ST Microelectronics")
+ ("xilinx" "Xilinx")
+ ; Misc. stuff
+ ("bus" "PC104 bus")
+ ("memory" "Memory devices (misc)")
+ ("micro" "Microcontrollers (misc)")
+ ("transistor" "Transistors (misc)")
+ ("tube" "Vacuum tubes (misc)")
+ ("rf" "RF elements (misc)")
+ ("pla" "Programmable logic arrays (misc)")
+ ("supervisor" "Microprocessor supervisors (misc)")
+ ("opto" "Optocouplers (misc)")
+ ("relay" "Relays (misc)")
+ ("misc" "Misc. unsorted symbols")
+
+ ; Other
+
+ ;"verilog"
+ ;"vhdl"
+ ;"gnetman"
+ )))
--
1.5.3.3
Attachment:
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ geda-user mailing list geda-user@xxxxxxxxxxxxxx http://www.seul.org/cgi-bin/mailman/listinfo/geda-user