gzz-commits
[Top][All Lists]
Advanced

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

[Gzz-commits] fenfire/org/fenfire/bin fenpdf10.py


From: Tuomas J. Lukka
Subject: [Gzz-commits] fenfire/org/fenfire/bin fenpdf10.py
Date: Sat, 09 Aug 2003 07:50:08 -0400

CVSROOT:        /cvsroot/fenfire
Module name:    fenfire
Branch:         
Changes by:     Tuomas J. Lukka <address@hidden>        03/08/09 07:50:08

Modified files:
        org/fenfire/bin: fenpdf10.py 

Log message:
        Start incremental change towards flexible geometers

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/fenfire/fenfire/org/fenfire/bin/fenpdf10.py.diff?tr1=1.6&tr2=1.7&r1=text&r2=text

Patches:
Index: fenfire/org/fenfire/bin/fenpdf10.py
diff -u fenfire/org/fenfire/bin/fenpdf10.py:1.6 
fenfire/org/fenfire/bin/fenpdf10.py:1.7
--- fenfire/org/fenfire/bin/fenpdf10.py:1.6     Fri Aug  8 08:45:06 2003
+++ fenfire/org/fenfire/bin/fenpdf10.py Sat Aug  9 07:50:08 2003
@@ -33,16 +33,14 @@
 
 print """
 
-     ########################## 
-     ##                      ##
-     ##  LOADING FenPDF 1.0  ##
-     ##                      ##
-     ########################## 
-
-
-FenPDF is offered you by the Fenfire team(http://fenfire.org).
+     ############################### 
+     ##                           ##
+     ##  LOADING FenPDF1.0 v0.0   ##
+     ##                           ##
+     ###############################
 
 
+FenPDF is brought to you by the Fenfire team (http://fenfire.org).
  
 Fenfire is free software; you can redistribute it and/or modify it under
 the terms of the GNU Lesser General Public License as published by
@@ -336,7 +334,7 @@
         w1 = w+100
         h1 = h/5+100
 
-        s0 = 1
+        s0 = 1.
         s1 = .8
 
        ctrx = w/2
@@ -371,6 +369,11 @@
                      s1, s1, 
                      buoywidth1/s1, buoyheight1/s1)
 
+       vs.coords.setOrthoBoxParams(self.mainbox1, 1,
+                       0, 0, s0, s0, w/s0, h0/s0);
+       vs.coords.setOrthoBoxParams(self.mainbox2, 1,
+                       0, h0, s1, s1, w/s1, h1/s1);
+
        
     def place(self, vs):
        self.height = vs.size.height
@@ -381,11 +384,15 @@
        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.mainbox1 = vs.orthoBoxCS(0,"MainFrame1", 0, 0, 0, 0, 0, 0, 0);
+       self.mainbox2 = vs.orthoBoxCS(0,"MainFrame2", 0, 0, 0, 0, 0, 0, 0);
+
        self._doset(vs)
 
         self.context.renderContext(vs, 0)
 
-       return [(self.into1, self.buoyinto1), (self.into2, self.buoyinto2)]
+       return [(self.mainbox1, self.into1, self.buoyinto1), 
+               (self.mainbox2, self.into2, self.buoyinto2)]
 
     def mouse(self, ev, oldvs):
         if dbg: p(ev)




reply via email to

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