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

gEDA-cvs: CVS update: system-gschemrc.in



  User: cnieves 
  Date: 06/12/05 17:56:13

  Modified:    .        system-gschemrc.in
  Log:
  * lib/system_gschemrc.in, scheme/auto-place-attribs.scm:
  
    Make the auto place function smarter when dealing with objects
  
    with pins on 3 or 4 sides. Now it avoids to overlap the pins or
  
    the attributes when autoplacing.
  
  
  
  
  Revision  Changes    Path
  1.109     +32 -30    eda/geda/gaf/gschem/lib/system-gschemrc.in
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: system-gschemrc.in
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/lib/system-gschemrc.in,v
  retrieving revision 1.108
  retrieving revision 1.109
  diff -u -b -r1.108 -r1.109
  --- system-gschemrc.in	5 Dec 2006 03:04:31 -0000	1.108
  +++ system-gschemrc.in	5 Dec 2006 22:56:13 -0000	1.109
  @@ -838,42 +838,42 @@
      ;   Example: "Lower Right".
      ; The alignment and angle will be also set.
      ; Attrib_name  Direct. X_offset Y_offset Reference       Alignment    Angle 
  -  '( ("pinlabel"  ">"          50        0  "Lower Right"   "Lower Left"     0)
  -     ("pinlabel"  "<"         -50        0  "Lower Left"    "Lower Right"    0)
  -     ("pinlabel"  "^"           0       50  "Upper Middle"  "Lower Left"    90)
  -     ("pinlabel"  "v"           0      -50  "Lower Middle"  "Lower Right"   90)
  -     ("pinnumber" ">"        -100       50  "Lower Right"   "Lower Right"    0)
  -     ("pinnumber" "<"         100       50  "Lower Left"    "Lower Left"     0)
  -     ("pinnumber" "^"         -50     -100  "Upper Middle"  "Lower Right"   90)
  -     ("pinnumber" "v"         -50      100  "Lower Middle"  "Lower Left"    90)
  +  '( ("pinlabel"  ">"   50     0  "Lower Right"   "Lower Left"     0  ""   0)
  +     ("pinlabel"  "<"  -50     0  "Lower Left"    "Lower Right"    0  ""   0)
  +     ("pinlabel"  "^"    0    50  "Upper Middle"  "Lower Left"    90  ""   0)
  +     ("pinlabel"  "v"    0   -50  "Lower Middle"  "Lower Right"   90  ""   0)
  +     ("pinnumber" ">" -100    50  "Lower Right"   "Lower Right"    0  ""   0)
  +     ("pinnumber" "<"  100    50  "Lower Left"    "Lower Left"     0  ""   0)
  +     ("pinnumber" "^"  -50  -100  "Upper Middle"  "Lower Right"   90  ""   0)
  +     ("pinnumber" "v"  -50   100  "Lower Middle"  "Lower Left"    90  ""   0)
   
        ; Component attributes
        ;   One direction
  -     ("refdes"    "<"         -50       50  "Upper Middle"  "Lower Right"    0)
  -     ("value"     "<"          50       50  "Upper Middle"  "Lower Left"     0)
  -     ("refdes"    ">"         -50       50  "Upper Middle"  "Lower Right"    0)
  -     ("value"     ">"          50       50  "Upper Middle"  "Lower Left"     0)
  -     ("refdes"    "^"          50      100  "Middle Left"   "Lower Right"    0)
  -     ("value"     "^"          50     -100  "Middle Left"   "Lower Right"    0)
  -     ("refdes"    "v"          50      100  "Middle Left"   "Lower Right"    0)
  -     ("value"     "v"          50     -100  "Middle Left"   "Lower Right"    0)
  +     ("refdes"    "<"  -50    50  "Upper Middle"  "Lower Right"    0  ""   0)
  +     ("value"     "<"   50    50  "Upper Middle"  "Lower Left"     0  ""   0)
  +     ("refdes"    ">"  -50    50  "Upper Middle"  "Lower Right"    0  ""   0)
  +     ("value"     ">"   50    50  "Upper Middle"  "Lower Left"     0  ""   0)
  +     ("refdes"    "^"   50   100  "Middle Left"   "Lower Right"    0  ""   0)
  +     ("value"     "^"   50  -100  "Middle Left"   "Lower Right"    0  ""   0)
  +     ("refdes"    "v"   50   100  "Middle Left"   "Lower Right"    0  ""   0)
  +     ("value"     "v"   50  -100  "Middle Left"   "Lower Right"    0  ""   0)
        ;   Two directions
  -     ("refdes"    "<>"        -50       50  "Upper Middle"  "Lower Right"    0)
  -     ("value"     "<>"         50       50  "Upper Middle"  "Lower Left"     0)
  -     ("refdes"    "^v"        -50      100  "Middle Left"   "Lower Right"    0)
  -     ("value"     "^v"        -50     -100  "Middle Left"   "Lower Right"    0)
  +     ("refdes"   "<>"  -50    50  "Upper Middle"  "Lower Right"    0  ""   0)
  +     ("value"    "<>"   50    50  "Upper Middle"  "Lower Left"     0  ""   0)
  +     ("refdes"   "^v"  -50   100  "Middle Left"   "Lower Right"    0  ""   0)
  +     ("value"    "^v"  -50  -100  "Middle Left"   "Lower Right"    0  ""   0)
        ;   Three directions
  -     ("refdes"    "<^v"       -50      100  "Middle Left"   "Lower Right"    0)
  -     ("value"     "<^v"       -50     -100  "Middle Left"   "Lower Right"    0)
  -     ("refdes"    ">^v"        50      100  "Middle Right"  "Lower Left"     0)
  -     ("value"     ">^v"        50     -100  "Middle Right"  "Lower Left"     0)
  -     ("refdes"    "<>v"       -50      -50  "Lower Middle"  "Upper Right"    0)
  -     ("value"     "<>v"        50      -50  "Lower Middle"  "Upper Left"     0)
  -     ("refdes"    "<>^"       -50       50  "Upper Middle"  "Lower Right"    0)
  -     ("value"     "<>^"        50       50  "Upper Middle"  "Lower Left"     0)
  +     ("refdes"  "<^v"  -50   100  "Middle Left"   "Lower Right"    0  ""   0)
  +     ("value"   "<^v"  -50  -100  "Middle Left"   "Lower Right"    0  ""   0)
  +     ("refdes"  ">^v"   50   100  "Middle Right"  "Lower Left"     0  ""   0)
  +     ("value"   ">^v"   50  -100  "Middle Right"  "Lower Left"     0  ""   0)
  +     ("refdes"  "<>v"  -50   -50  "Lower Middle"  "Upper Right"    0  ""   0)
  +     ("value"   "<>v"   50   -50  "Lower Middle"  "Upper Left"     0  ""   0)
  +     ("refdes"  "<>^"  -50    50  "Upper Middle"  "Lower Right"    0  ""   0)
  +     ("value"   "<>^"   50    50  "Upper Middle"  "Lower Left"     0  ""   0)
        ;   Four directions
  -     ("refdes"    "<>^v"      300       50  "Upper Left"    "Lower Left"     0)
  -     ("value"     "<>^v"     -300       50  "Upper Right"   "Lower Right"    0)
  +     ("refdes" "<>^v"  300    50  "Upper Left"    "Lower Left"     0  "^<" 50)
  +     ("value"  "<>^v" -300    50  "Upper Right"   "Lower Right"    0  "^>" 50)
        ))
   
   ; Position of parameters inside default-position-of-text-attributes
  @@ -884,6 +884,8 @@
   (define def-reference-pos     4)
   (define def-alignment-pos     5)
   (define def-angle-pos         6)
  +(define def-move-pos 	      7)
  +(define def-spacing-pos       8)
   
   ; Adds the default pin attributes to each newly placed pin.
   (define (add-default-pin-attributes object)
  
  
  


_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs