gzz-dev
[Top][All Lists]
Advanced

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

Re: [Gzz] Demoing FenPDF and fenfire doesn't compile


From: Benja Fallenstein
Subject: Re: [Gzz] Demoing FenPDF and fenfire doesn't compile
Date: Sun, 13 Jul 2003 21:49:09 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030704 Debian/1.4-1


Benja Fallenstein wrote:
That would be a lot of work AFAIK. I would suggest a structure of
interconnected canvases; this can be done with the code we have now.

The single-focus should be possible with little change to buoyoing.py. Currently that doesn't seem to accept *any* user input, though. I don't know what caused that.

I don't know what caused this, but now it's gone. I probably did something wrong, didn't clean something or so.

Attached is a diff to make the whole thing single-focus. Hope this works for you.

- Benja
Index: org/fenfire/demo/buoyoing.py
===================================================================
RCS file: /cvsroot/fenfire/fenfire/org/fenfire/demo/buoyoing.py,v
retrieving revision 1.89
diff -u -r1.89 buoyoing.py
--- org/fenfire/demo/buoyoing.py        7 Jul 2003 22:56:06 -0000       1.89
+++ org/fenfire/demo/buoyoing.py        13 Jul 2003 19:48:48 -0000
@@ -234,8 +234,8 @@
         #h0 = (self.split+.25) * h
         #h1 = (1-self.split) * h
 
-        w0 = w*2/3
-        h0 = w/2 - 40
+        w0 = w*3/4
+        h0 = h - 40
 
         w1 = w+100
         h1 = h/5+100
@@ -259,35 +259,36 @@
                      s0, s0, 
                      w0, h0)
 
-       vs.coords.setOrthoBoxParams(self.into2, 1, 
-                     -50,
-                      h-h1+50,
-                     s1, s1, 
-                     w1/s1, h1/s1)
+       #vs.coords.setOrthoBoxParams(self.into2, 1, 
+       #             -50,
+        #              h-h1+50,
+       #             s1, s1, 
+       #             w1/s1, h1/s1)
 
        vs.coords.setOrthoBoxParams(self.buoyinto1, 1, 
                      ctrx - .5*buoywidth0, 0 +  .5*h0 - .5*buoyheight0,
                      s0, s0, 
                      buoywidth0/s0, buoyheight0/s0)
 
-       vs.coords.setOrthoBoxParams(self.buoyinto2, 1, 
-                     ctrx - .5*buoywidth1, h-h1+50,
-                     s1, s1, 
-                     buoywidth1/s1, buoyheight1/s1)
+       #vs.coords.setOrthoBoxParams(self.buoyinto2, 1, 
+       #             ctrx - .5*buoywidth1, h-h1+50,
+       #             s1, s1, 
+       #             buoywidth1/s1, buoyheight1/s1)
 
        
     def place(self, vs):
        self.height = vs.size.height
        self.width = vs.size.width
        self.into1 = vs.orthoBoxCS(0, "FocusFrame1", 0, 0, 0, 0, 0, 0, 0)
-       self.into2 = vs.orthoBoxCS(0, "FocusFrame2", 0, 0, 0, 0, 0, 0, 0)
+       #self.into2 = vs.orthoBoxCS(0, "FocusFrame2", 0, 0, 0, 0, 0, 0, 0)
 
        self.buoyinto1 = vs.orthoBoxCS(0, "BuoyFrame1", 0, 0, 0, 0, 0, 0, 0)
-       self.buoyinto2 = vs.orthoBoxCS(0, "BuoyFrame2", 0, 0, 0, 0, 0, 0, 0)
+       #self.buoyinto2 = vs.orthoBoxCS(0, "BuoyFrame2", 0, 0, 0, 0, 0, 0, 0)
 
        self._doset(vs)
 
-       return [(self.into1, self.buoyinto1), (self.into2, self.buoyinto2)]
+       #return [(self.into1, self.buoyinto1), (self.into2, self.buoyinto2)]
+       return [(self.into1, self.buoyinto1)]
 
     def mouse(self, ev, oldvs):
         if dbg: pa(ev)
@@ -366,7 +367,7 @@
 class Scene(vob.buoy.buoymanager.MultiBuoyManager):
     def __init__(self):
        vob.buoy.buoymanager.MultiBuoyManager.__init__(self, 
-               [mainNode, mainNode2], [ppconnector, tconnector],
+               [mainNode], [ppconnector, tconnector],
                DoubleGeometer(self, context, nodeview),
                 context=context)
         w.setCursor('default')

reply via email to

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