/[fenfire]/fenfire/org/fenfire/bin/fenpdf10.py
ViewVC logotype

Diff of /fenfire/org/fenfire/bin/fenpdf10.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by tjl, Sat Aug 9 12:31:16 2003 UTC revision 1.9 by tjl, Sat Aug 9 13:31:16 2003 UTC
# Line 331  class DoubleGeometer: Line 331  class DoubleGeometer:
331          w0 = w*2/3          w0 = w*2/3
332          h0 = w/2 - 40          h0 = w/2 - 40
333    
334          w1 = w+100          h1 = h - h0
         h1 = h/5+100  
335    
336          s0 = 1.          s0 = 1.
337          s1 = .8          s1 = .8
338    
         ctrx = w/2  
   
         buoywidth0 = w0 * 1.2  
         buoyheight0 = h0 * 1.2  
   
         buoywidth1 = w1 * .7  
         buoyheight1 = h1 * 1  
   
         if (dbg): p("SET DOUBLE ", h0, h1, w0, w1, s0, s1, buoywidth0, buoywidth1)  
   
         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)  
   
339          vs.coords.setOrthoBoxParams(self.mainbox1, 1,          vs.coords.setOrthoBoxParams(self.mainbox1, 1,
340                          0, 0, s0, s0, w/s0, h0/s0);                          0, 0, s0, s0, w/s0, h0/s0);
341          vs.coords.setOrthoBoxParams(self.mainbox2, 1,          vs.coords.setOrthoBoxParams(self.mainbox2, 1,
# Line 367  class DoubleGeometer: Line 346  class DoubleGeometer:
346          self.height = vs.size.height          self.height = vs.size.height
347          self.width = vs.size.width          self.width = vs.size.width
348    
         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)  
   
349          self.mainbox1 = vs.orthoBoxCS(0,"MainFrame1", 0, 0, 0, 0, 0, 0, 0);          self.mainbox1 = vs.orthoBoxCS(0,"MainFrame1", 0, 0, 0, 0, 0, 0, 0);
350          self.mainbox2 = vs.orthoBoxCS(0,"MainFrame2", 0, 0, 0, 0, 0, 0, 0);          self.mainbox2 = vs.orthoBoxCS(0,"MainFrame2", 0, 0, 0, 0, 0, 0, 0);
351    
# Line 377  class DoubleGeometer: Line 353  class DoubleGeometer:
353    
354          self.context.renderContext(vs, 0)          self.context.renderContext(vs, 0)
355    
356          return [(self.mainbox1, None, self.buoyinto1),          return [(self.mainbox1, None, None),
357                  (self.mainbox2, None, self.buoyinto2)]                  (self.mainbox2, None, None)]
358    
359      def mouse(self, ev, oldvs):      def mouse(self, ev, oldvs):
360          if dbg: p(ev)          if dbg: p(ev)

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26