dia r3961 - in trunk: . doc shapes/Circuit



Author: hans
Date: Sun Apr 27 10:10:48 2008
New Revision: 3961
URL: http://svn.gnome.org/viewvc/dia?rev=3961&view=rev

Log:
2008-04-27  Hans Breuer  <hans breuer org>

	* doc/custom-shapes : mention <default-width/> and <default-height/>
	* shapes/circuit/(h|v)*.shape : use them to have more recognizable
	shapes. Fixes bug #493237.



Modified:
   trunk/ChangeLog
   trunk/doc/custom-shapes
   trunk/shapes/Circuit/hcapacitor.shape
   trunk/shapes/Circuit/hdiode.shape
   trunk/shapes/Circuit/hfuse_de.shape
   trunk/shapes/Circuit/hinductor.shape
   trunk/shapes/Circuit/hinductor_de.shape
   trunk/shapes/Circuit/hjumper.shape
   trunk/shapes/Circuit/hled_de.shape
   trunk/shapes/Circuit/hpowersource_de.shape
   trunk/shapes/Circuit/hresistor.shape
   trunk/shapes/Circuit/hresistor_de.shape
   trunk/shapes/Circuit/hzener.shape
   trunk/shapes/Circuit/vcapacitor.shape
   trunk/shapes/Circuit/vdiode.shape
   trunk/shapes/Circuit/vfuse_de.shape
   trunk/shapes/Circuit/vinductor.shape
   trunk/shapes/Circuit/vinductor_de.shape
   trunk/shapes/Circuit/vled_de.shape
   trunk/shapes/Circuit/vpowersource_de.shape
   trunk/shapes/Circuit/vresistor.shape
   trunk/shapes/Circuit/vresistor_de.shape
   trunk/shapes/Circuit/vzener.shape

Modified: trunk/doc/custom-shapes
==============================================================================
--- trunk/doc/custom-shapes	(original)
+++ trunk/doc/custom-shapes	Sun Apr 27 10:10:48 2008
@@ -97,6 +97,10 @@
 (Only one textbox per shape) Where the attributes give the bounds of 
 the text box in the same coordinate system as the SVG shape description.
 
+Shapes are given a default size on creation. If that default size does
+not fit your needs you can overwrite it by (one or both):
+  <default-width>1cm</default-width>
+  <default-height>3cm</default-height>
 
 The svg element describes the shape.  The width and height attributes
 are ignored, and only given to comply with the SVG specification.  For

Modified: trunk/shapes/Circuit/hcapacitor.shape
==============================================================================
--- trunk/shapes/Circuit/hcapacitor.shape	(original)
+++ trunk/shapes/Circuit/hcapacitor.shape	Sun Apr 27 10:10:48 2008
@@ -5,6 +5,8 @@
   <name>Circuit - Horizontal Capacitor</name>
   <description>A horizontally aligned capacitor</description>
   <icon>hcapacitor.png</icon>
+  <default-width>3cm</default-width>
+  <default-height>1cm</default-height>
   <connections>
     <point x="0" y="0"/>
     <point x="5" y="0"/>

Modified: trunk/shapes/Circuit/hdiode.shape
==============================================================================
--- trunk/shapes/Circuit/hdiode.shape	(original)
+++ trunk/shapes/Circuit/hdiode.shape	Sun Apr 27 10:10:48 2008
@@ -5,6 +5,8 @@
   <name>Circuit - Horizontal Diode</name>
   <description>A horizontally aligned diode</description>
   <icon>hdiode.png</icon>
+  <default-width>3cm</default-width>
+  <default-height>1cm</default-height>
   <connections>
     <point x="0" y="0"/>
     <point x="5.75" y="0"/>

Modified: trunk/shapes/Circuit/hfuse_de.shape
==============================================================================
--- trunk/shapes/Circuit/hfuse_de.shape	(original)
+++ trunk/shapes/Circuit/hfuse_de.shape	Sun Apr 27 10:10:48 2008
@@ -5,6 +5,8 @@
   <name>Circuit - Horizontal Fuse (European)</name>
   <description>A horizontally aligned fuse</description>
   <icon>hfuse_de.png</icon>
+  <default-width>3cm</default-width>
+  <default-height>1cm</default-height>
   <connections>
     <point x="0" y="0"/>
     <point x="6" y="0"/>

Modified: trunk/shapes/Circuit/hinductor.shape
==============================================================================
--- trunk/shapes/Circuit/hinductor.shape	(original)
+++ trunk/shapes/Circuit/hinductor.shape	Sun Apr 27 10:10:48 2008
@@ -5,6 +5,8 @@
   <name>Circuit - Horizontal Inductor</name>
   <description>A horizontally aligned inductor</description>
   <icon>hinductor.png</icon>
+  <default-width>3cm</default-width>
+  <default-height>1cm</default-height>
   <connections>
     <point x="0" y="0"/>
     <point x="20" y="0"/>

Modified: trunk/shapes/Circuit/hinductor_de.shape
==============================================================================
--- trunk/shapes/Circuit/hinductor_de.shape	(original)
+++ trunk/shapes/Circuit/hinductor_de.shape	Sun Apr 27 10:10:48 2008
@@ -5,6 +5,8 @@
   <name>Circuit - Horizontal Inductor (European)</name>
   <description>A horizontally aligned inductor</description>
   <icon>hinductor_de.png</icon>
+  <default-width>3cm</default-width>
+  <default-height>1cm</default-height>
   <connections>
     <point x="0" y="0"/>
     <point x="6" y="0"/>

Modified: trunk/shapes/Circuit/hjumper.shape
==============================================================================
--- trunk/shapes/Circuit/hjumper.shape	(original)
+++ trunk/shapes/Circuit/hjumper.shape	Sun Apr 27 10:10:48 2008
@@ -5,6 +5,8 @@
   <name>Circuit - Horizontal Jumper</name>
   <description>A Horizontal Jumper</description>
   <icon>hjumper.png</icon>
+  <default-width>3cm</default-width>
+  <default-height>1cm</default-height>
   <connections>
     <point x="0" y="0"/>
     <point x="6" y="0"/>

Modified: trunk/shapes/Circuit/hled_de.shape
==============================================================================
--- trunk/shapes/Circuit/hled_de.shape	(original)
+++ trunk/shapes/Circuit/hled_de.shape	Sun Apr 27 10:10:48 2008
@@ -5,6 +5,8 @@
   <name>Circuit - Horizontal Led (European)</name>
   <description>A horizontally aligned led</description>
   <icon>hled_de.png</icon>
+  <default-width>3cm</default-width>
+  <default-height>1.5cm</default-height>
   <connections>
     <point x="0" y="0"/>
     <point x="5.75" y="0"/>

Modified: trunk/shapes/Circuit/hpowersource_de.shape
==============================================================================
--- trunk/shapes/Circuit/hpowersource_de.shape	(original)
+++ trunk/shapes/Circuit/hpowersource_de.shape	Sun Apr 27 10:10:48 2008
@@ -5,6 +5,8 @@
   <name>Circuit - Horizontal Powersource (European)</name>
   <description>A horizontally aligned powersource</description>
   <icon>hpowersource_de.png</icon>
+  <default-width>3cm</default-width>
+  <default-height>1cm</default-height>
   <connections>
     <point x="0" y="0"/>
     <point x="6" y="0"/>

Modified: trunk/shapes/Circuit/hresistor.shape
==============================================================================
--- trunk/shapes/Circuit/hresistor.shape	(original)
+++ trunk/shapes/Circuit/hresistor.shape	Sun Apr 27 10:10:48 2008
@@ -5,6 +5,8 @@
   <name>Circuit - Horizontal Resistor</name>
   <description>A horizontally aligned resistor</description>
   <icon>hresistor.png</icon>
+  <default-width>3cm</default-width>
+  <default-height>1cm</default-height>
   <connections>
     <point x="0" y="0"/>
     <point x="7.5" y="0"/>

Modified: trunk/shapes/Circuit/hresistor_de.shape
==============================================================================
--- trunk/shapes/Circuit/hresistor_de.shape	(original)
+++ trunk/shapes/Circuit/hresistor_de.shape	Sun Apr 27 10:10:48 2008
@@ -5,6 +5,8 @@
   <name>Circuit - Horizontal Resistor (European)</name>
   <description>A horizontally aligned resistor</description>
   <icon>hresistor_de.png</icon>
+  <default-width>3cm</default-width>
+  <default-height>1cm</default-height>
   <connections>
     <point x="0" y="0"/>
     <point x="6" y="0"/>

Modified: trunk/shapes/Circuit/hzener.shape
==============================================================================
--- trunk/shapes/Circuit/hzener.shape	(original)
+++ trunk/shapes/Circuit/hzener.shape	Sun Apr 27 10:10:48 2008
@@ -5,6 +5,8 @@
   <name>Circuit - Horizontal Zener Diode</name>
   <description>A horizontally aligned zener diode</description>
   <icon>hzener.png</icon>
+  <default-width>3cm</default-width>
+  <default-height>1cm</default-height>
   <connections>
     <point x="0" y="0"/>
     <point x="5.85" y="0"/>

Modified: trunk/shapes/Circuit/vcapacitor.shape
==============================================================================
--- trunk/shapes/Circuit/vcapacitor.shape	(original)
+++ trunk/shapes/Circuit/vcapacitor.shape	Sun Apr 27 10:10:48 2008
@@ -5,6 +5,8 @@
   <name>Circuit - Vertical Capacitor</name>
   <description>A vertically aligned capacitor</description>
   <icon>vcapacitor.png</icon>
+  <default-width>1cm</default-width>
+  <default-height>3cm</default-height>
   <connections>
     <point x="0" y="0"/>
     <point x="0" y="5"/>

Modified: trunk/shapes/Circuit/vdiode.shape
==============================================================================
--- trunk/shapes/Circuit/vdiode.shape	(original)
+++ trunk/shapes/Circuit/vdiode.shape	Sun Apr 27 10:10:48 2008
@@ -5,6 +5,8 @@
   <name>Circuit - Vertical Diode</name>
   <description>A vertically aligned diode</description>
   <icon>vdiode.png</icon>
+  <default-width>1cm</default-width>
+  <default-height>3cm</default-height>
   <connections>
     <point x="0" y="0"/>
     <point x="0" y="5.75"/>

Modified: trunk/shapes/Circuit/vfuse_de.shape
==============================================================================
--- trunk/shapes/Circuit/vfuse_de.shape	(original)
+++ trunk/shapes/Circuit/vfuse_de.shape	Sun Apr 27 10:10:48 2008
@@ -5,6 +5,8 @@
   <name>Circuit - Vertical Fuse (European)</name>
   <description>A vertically aligned fuse</description>
   <icon>vfuse_de.png</icon>
+  <default-width>1cm</default-width>
+  <default-height>3cm</default-height>
   <connections>
     <point x="0" y="0"/>
     <point x="0" y="6"/>

Modified: trunk/shapes/Circuit/vinductor.shape
==============================================================================
--- trunk/shapes/Circuit/vinductor.shape	(original)
+++ trunk/shapes/Circuit/vinductor.shape	Sun Apr 27 10:10:48 2008
@@ -5,6 +5,8 @@
   <name>Circuit - Vertical Inductor</name>
   <description>A vertically aligned inductor</description>
   <icon>vinductor.png</icon>
+  <default-width>1cm</default-width>
+  <default-height>3cm</default-height>
   <connections>
     <point x="0" y="0"/>
     <point x="0" y="20"/>

Modified: trunk/shapes/Circuit/vinductor_de.shape
==============================================================================
--- trunk/shapes/Circuit/vinductor_de.shape	(original)
+++ trunk/shapes/Circuit/vinductor_de.shape	Sun Apr 27 10:10:48 2008
@@ -5,6 +5,8 @@
   <name>Circuit - Vertical Inductor (European)</name>
   <description>A vertically aligned inductor</description>
   <icon>vinductor_de.png</icon>
+  <default-width>1cm</default-width>
+  <default-height>3cm</default-height>
   <connections>
     <point x="0" y="0"/>
     <point x="0" y="6"/>

Modified: trunk/shapes/Circuit/vled_de.shape
==============================================================================
--- trunk/shapes/Circuit/vled_de.shape	(original)
+++ trunk/shapes/Circuit/vled_de.shape	Sun Apr 27 10:10:48 2008
@@ -5,6 +5,8 @@
   <name>Circuit - Vertical Led (European)</name>
   <description>A vertically aligned led</description>
   <icon>vled_de.png</icon>
+  <default-width>1.5cm</default-width>
+  <default-height>3cm</default-height>
   <connections>
     <point x="0" y="0"/>
     <point x="0" y="5.75"/>

Modified: trunk/shapes/Circuit/vpowersource_de.shape
==============================================================================
--- trunk/shapes/Circuit/vpowersource_de.shape	(original)
+++ trunk/shapes/Circuit/vpowersource_de.shape	Sun Apr 27 10:10:48 2008
@@ -5,6 +5,8 @@
   <name>Circuit - Vertical Powersource (European)</name>
   <description>A vertically aligned powersource</description>
   <icon>vpowersource_de.png</icon>
+  <default-width>1cm</default-width>
+  <default-height>3cm</default-height>
   <connections>
     <point x="0" y="0"/>
     <point x="0" y="6"/>

Modified: trunk/shapes/Circuit/vresistor.shape
==============================================================================
--- trunk/shapes/Circuit/vresistor.shape	(original)
+++ trunk/shapes/Circuit/vresistor.shape	Sun Apr 27 10:10:48 2008
@@ -5,6 +5,8 @@
   <name>Circuit - Vertical Resistor</name>
   <description>A vertically aligned resistor</description>
   <icon>vresistor.png</icon>
+  <default-width>1cm</default-width>
+  <default-height>3cm</default-height>
   <connections>
     <point x="0" y="0"/>
     <point x="0" y="7.5"/>

Modified: trunk/shapes/Circuit/vresistor_de.shape
==============================================================================
--- trunk/shapes/Circuit/vresistor_de.shape	(original)
+++ trunk/shapes/Circuit/vresistor_de.shape	Sun Apr 27 10:10:48 2008
@@ -5,6 +5,8 @@
   <name>Circuit - Vertical Resistor (European)</name>
   <description>A vertically aligned resistor</description>
   <icon>vresistor_de.png</icon>
+  <default-width>1cm</default-width>
+  <default-height>3cm</default-height>
   <connections>
     <point x="0" y="0"/>
     <point x="0" y="6"/>

Modified: trunk/shapes/Circuit/vzener.shape
==============================================================================
--- trunk/shapes/Circuit/vzener.shape	(original)
+++ trunk/shapes/Circuit/vzener.shape	Sun Apr 27 10:10:48 2008
@@ -5,6 +5,8 @@
   <name>Circuit - Vertical Zener Diode</name>
   <description>A vertically aligned zener diode</description>
   <icon>vzener.png</icon>
+  <default-width>1cm</default-width>
+  <default-height>3cm</default-height>
   <connections>
     <point x="0" y="0"/>
     <point x="0" y="5.85"/>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]