gzz-commits
[Top][All Lists]
Advanced

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

[Gzz-commits] gzz/gzz/view/buoy buoymanager.py zzNodes.py


From: Tuomas J. Lukka
Subject: [Gzz-commits] gzz/gzz/view/buoy buoymanager.py zzNodes.py
Date: Thu, 06 Feb 2003 07:14:32 -0500

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Tuomas J. Lukka <address@hidden>        03/02/06 07:14:30

Modified files:
        gzz/view/buoy  : buoymanager.py zzNodes.py 

Log message:
        Better plcing

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gzz/view/buoy/buoymanager.py.diff?tr1=1.8&tr2=1.9&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gzz/view/buoy/zzNodes.py.diff?tr1=1.7&tr2=1.8&r1=text&r2=text

Patches:
Index: gzz/gzz/view/buoy/buoymanager.py
diff -u gzz/gzz/view/buoy/buoymanager.py:1.8 
gzz/gzz/view/buoy/buoymanager.py:1.9
--- gzz/gzz/view/buoy/buoymanager.py:1.8        Thu Feb  6 06:53:14 2003
+++ gzz/gzz/view/buoy/buoymanager.py    Thu Feb  6 07:14:29 2003
@@ -64,7 +64,7 @@
                                x+r, 300,
                                0.1)
        self.vs.matcher.add(buoy, linkId)
-       into = self.vs.orthoBoxCS(buoy, "V", 0, 0, 0, .5, .5, 100, 100)
+       into = self.vs.orthoBoxCS(buoy, "V", 0, 0, 0, .5, .5, 150, 150)
        into = self.nadir(into)
        self.vs.activate(into)
        self.cs[into] = (otherNode, linkId, otherAnchor)
Index: gzz/gzz/view/buoy/zzNodes.py
diff -u gzz/gzz/view/buoy/zzNodes.py:1.7 gzz/gzz/view/buoy/zzNodes.py:1.8
--- gzz/gzz/view/buoy/zzNodes.py:1.7    Thu Feb  6 06:53:14 2003
+++ gzz/gzz/view/buoy/zzNodes.py        Thu Feb  6 07:14:29 2003
@@ -19,14 +19,23 @@
        gzz.view.PageSpanCellView(),
        gzz.view.ImageCellContentView()))
 
+defx = 400
+defy = 300
+
 class VanishingNodeType(CellBuoyViewNodeType):
     def ownsCell(self, c):
        """This generic view owns all cells.
        """
        return 1
     def renderBuoy(self, vs, into, cell, content, foo):
+       size = jarray.zeros(2, 'f')
+       vs.coords.getSqSize(into, size)
+
+       scaled = vs.orthoBoxCS(into, "SCALED", 0, 0, 0,
+                   size[0] / defx, size[1] / defy, defx, defy)
+
        viewcontext.setAccursed(cell)
-       vanishing.render(vs, into, viewcontext)
+       vanishing.render(vs, scaled, viewcontext)
     def createMainNode(self, cell, content, hook):
        return VanishingMainNode(cell, hook)
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]