From 6e5fe40c4a7d87082998089b337cb8617821c170 Mon Sep 17 00:00:00 2001
From: Stefan Schippers
Date: Wed, 9 Sep 2020 00:21:40 +0200
Subject: [PATCH] fix bind instructions for Windows Alt-*-KeyPress
combinations, doc updates for fill attributes in shapes.
---
Changelog | 10 ++++++++++
doc/xschem_man/xschem_elements.html | 5 ++++-
src/xschem.tcl | 6 ++++--
3 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/Changelog b/Changelog
index 9d2418c1..084293b7 100644
--- a/Changelog
+++ b/Changelog
@@ -1,4 +1,14 @@
2.9.8
+- enable "bus=true" attribute for lines as well as for wires.
+ As a side effect LCC schematics with bussed wires will display thick buses
+- added command (menu Symbol->Show only instance Bounding boxes) to toggle
+ displaying instance detals / only bounding box.
+- added "dash=n" (n=integer) attribute for lines, polygons, rectangles, arcs to set dashed line style.
+ n is the dash length in pixels.
+- verilog_ignore, spice_ignore, vhdl_ignore attributes on schematic pins are propagated to symbol pin attributes
+ (if using make symbol from schematic, otherwise propagate by hand).
+ These pins are not netlisted in the respective netlist format
+- -b option to detach xschem from terminal
- NO_CAIRO builds also use 'layer=' attribute to display text on custom layers.
- pdf and svg exports follow the enable_layer[] array to display/hide layers as does draw()
- LCC function (Local Custom Cell):
diff --git a/doc/xschem_man/xschem_elements.html b/doc/xschem_man/xschem_elements.html
index 43be274b..3a7352e8 100644
--- a/doc/xschem_man/xschem_elements.html
+++ b/doc/xschem_man/xschem_elements.html
@@ -56,13 +56,15 @@ p{padding: 15px 30px 10px;}
POLYGONS
Polygons are paths that can be drawn on any layer. Placements begins with the 'ctrl-w' key
- and continues as long as the user clicks points on the drawing area. Placement ends when:
+ and continues as long as the user clicks points on the drawing area. Placement ends when:
- the last point is coincident to the first point.
- or by clicking the right mouse button, for an open polygon.
- or by hitting the Return key, for a closed polygon
(this can be done also by clicking the last point coincident to the first polygon point).
+
+ A fill=true attribute may be given to have the shape filled with the layer fill style.
CIRCLES / ARCS
@@ -77,6 +79,7 @@ p{padding: 15px 30px 10px;}
- (start point selected in stretch mode):by starting a move (m) operation and moving the mouse the start arc angle may be changed.
- (arch center selected in stretch mode): by starting a move (m) operation and moving the mouse the arc radius may be changed.
If a circle is needed then use the Ctrl-Shift-C key combination.
+
A fill=true attribute may be given to have the shape filled with the layer fill style.
diff --git a/src/xschem.tcl b/src/xschem.tcl
index 67edd55b..f68878a6 100644
--- a/src/xschem.tcl
+++ b/src/xschem.tcl
@@ -2929,8 +2929,8 @@ proc build_windows {} {
# on Windows Alt key mask is reported as 131072 (1<<17) so build masks manually with values passed from C code
if {$::OS == "Windows" } {
bind .drw {xschem callback %T %x %y %N 0 0 [expr $Mod1Mask]}
- bind .drw {xschem callback %T %x %y %N 0 0 [expr $ShiftMask + $Mod1Mask]}
- bind .drw {xschem callback %T %x %y %N 0 0 9 [expr $ControlMask + $Mod1Mask]}
+ bind .drw {xschem callback %T %x %y %N 0 0 [expr $ControlMask + $Mod1Mask]}
+ bind .drw {xschem callback %T %x %y %N 0 0 [expr $ShiftMask + $Mod1Mask]}
}
bind .drw {xschem callback %T %x %y %N 0 0 %s}
@@ -2950,6 +2950,8 @@ proc build_windows {} {
### MAIN PROGRAM
###
+namespace import -force ttk::*
+
set OS [lindex $tcl_platform(os) 0]
# tcl variable XSCHEM_LIBRARY_PATH should already be set in xschemrc