33 |
|
|
34 |
print """ |
print """ |
35 |
|
|
36 |
########################## |
############################### |
37 |
## ## |
## ## |
38 |
## LOADING FenPDF 1.0 ## |
## LOADING FenPDF1.0 v0.0 ## |
39 |
## ## |
## ## |
40 |
########################## |
############################### |
|
|
|
|
|
|
|
FenPDF is offered you by the Fenfire team(http://fenfire.org). |
|
41 |
|
|
42 |
|
|
43 |
|
FenPDF is brought to you by the Fenfire team (http://fenfire.org). |
44 |
|
|
45 |
Fenfire is free software; you can redistribute it and/or modify it under |
Fenfire is free software; you can redistribute it and/or modify it under |
46 |
the terms of the GNU Lesser General Public License as published by |
the terms of the GNU Lesser General Public License as published by |
334 |
w1 = w+100 |
w1 = w+100 |
335 |
h1 = h/5+100 |
h1 = h/5+100 |
336 |
|
|
337 |
s0 = 1 |
s0 = 1. |
338 |
s1 = .8 |
s1 = .8 |
339 |
|
|
340 |
ctrx = w/2 |
ctrx = w/2 |
369 |
s1, s1, |
s1, s1, |
370 |
buoywidth1/s1, buoyheight1/s1) |
buoywidth1/s1, buoyheight1/s1) |
371 |
|
|
372 |
|
vs.coords.setOrthoBoxParams(self.mainbox1, 1, |
373 |
|
0, 0, s0, s0, w/s0, h0/s0); |
374 |
|
vs.coords.setOrthoBoxParams(self.mainbox2, 1, |
375 |
|
0, h0, s1, s1, w/s1, h1/s1); |
376 |
|
|
377 |
|
|
378 |
def place(self, vs): |
def place(self, vs): |
379 |
self.height = vs.size.height |
self.height = vs.size.height |
384 |
self.buoyinto1 = vs.orthoBoxCS(0, "BuoyFrame1", 0, 0, 0, 0, 0, 0, 0) |
self.buoyinto1 = vs.orthoBoxCS(0, "BuoyFrame1", 0, 0, 0, 0, 0, 0, 0) |
385 |
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) |
386 |
|
|
387 |
|
self.mainbox1 = vs.orthoBoxCS(0,"MainFrame1", 0, 0, 0, 0, 0, 0, 0); |
388 |
|
self.mainbox2 = vs.orthoBoxCS(0,"MainFrame2", 0, 0, 0, 0, 0, 0, 0); |
389 |
|
|
390 |
self._doset(vs) |
self._doset(vs) |
391 |
|
|
392 |
self.context.renderContext(vs, 0) |
self.context.renderContext(vs, 0) |
393 |
|
|
394 |
return [(self.into1, self.buoyinto1), (self.into2, self.buoyinto2)] |
return [(self.mainbox1, self.into1, self.buoyinto1), |
395 |
|
(self.mainbox2, self.into2, self.buoyinto2)] |
396 |
|
|
397 |
def mouse(self, ev, oldvs): |
def mouse(self, ev, oldvs): |
398 |
if dbg: p(ev) |
if dbg: p(ev) |