[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz/gfx/demo xupdf.py
From: |
Tuomas J. Lukka |
Subject: |
[Gzz-commits] gzz/gfx/demo xupdf.py |
Date: |
Fri, 27 Sep 2002 14:52:27 -0400 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Tuomas J. Lukka <address@hidden> 02/09/27 14:52:26
Modified files:
gfx/demo : xupdf.py
Log message:
yay
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/demo/xupdf.py.diff?tr1=1.26&tr2=1.27&r1=text&r2=text
Patches:
Index: gzz/gfx/demo/xupdf.py
diff -c gzz/gfx/demo/xupdf.py:1.26 gzz/gfx/demo/xupdf.py:1.27
*** gzz/gfx/demo/xupdf.py:1.26 Fri Sep 27 14:22:59 2002
--- gzz/gfx/demo/xupdf.py Fri Sep 27 14:52:26 2002
***************
*** 1,5 ****
--- 1,7 ----
from __future__ import nested_scopes
from gzz.index import XuLink
+ from gzz.gfx.gl import Stencil
+
# Now, this is the start of the REAL demo, the one
# with Xanadu links between PDF and text.
***************
*** 126,133 ****
self.cell = cell
self.content = space.cellTexter.getEnfilade(cell, None)
self.pap = getPDFPapers(self.content)
! self.irregu = IrreguFrame(0.2, 2, 1.5, # XXX
! 1)
# Height = always 1.
# Start = always (0,0)
def placepapers(self, vs,
--- 128,135 ----
self.cell = cell
self.content = space.cellTexter.getEnfilade(cell, None)
self.pap = getPDFPapers(self.content)
! self.irregu = IrreguFrame(0.06, 2, 1.5, # XXX
! 0.5)
# Height = always 1.
# Start = always (0,0)
def placepapers(self, vs,
***************
*** 168,187 ****
pp = PutPapers()
if cliprect:
! irr = vs.coords.affineCoordsys(0, 0, 0.2, 0.1, 0.90, 0, 0, 0.50)
! # (cliprect[0]+cliprect[2])/2,
! # (cliprect[1]+cliprect[3])/2,
! # (cliprect[2]-cliprect[0])/2,
! # 0, 0,
! # (cliprect[3]-cliprect[1])/2)
vs.matcher.add(irr, key+"_irr")
! c0 = vs.coords.affineCoordsys(0, 10, 500, 500, 300, 0, 0, 300)
! vs.matcher.add(c0, key+"_c0")
! vs.map.put(self.white)
! vs.map.put(self.irregu.frame, c0, irr)
! vs.map.put(self.black)
! vs.map.put(self.irregu.content, c0, irr)
! print "Irr: ",c0,self.irregu.frame, self.irregu.content
else:
pp.run()
--- 170,198 ----
pp = PutPapers()
if cliprect:
! irr = vs.coords.affineCoordsys(0, 0,
! (cliprect[0]+cliprect[2])/2,
! (cliprect[1]+cliprect[3])/2,
! (cliprect[2]-cliprect[0])/2,
! 0, 0,
! (cliprect[3]-cliprect[1])/2)
vs.matcher.add(irr, key+"_irr")
!
! class FrameR(java.lang.Runnable):
! def run(rself):
! vs.map.put(self.black)
! vs.map.put(self.irregu.frame, cs1into, irr)
! class ContentR(java.lang.Runnable):
! def run(rself):
! vs.map.put(self.white)
! vs.map.put(self.irregu.content, cs1into, irr)
! Stencil.drawStenciled(vs,
! ContentR(),
! None,
! FrameR(),
! pp,
! 0)
!
else:
pp.run()
***************
*** 440,446 ****
vs.matcher.add(cs1_trans, globalcursor.getId()+"__trans")
if self.clip:
! clip = (-10+globalx, -1+globaly, 10+globalx, 10+globaly)
else:
clip = None
globalview.placepapers(vs, cs1_trans,
--- 451,457 ----
vs.matcher.add(cs1_trans, globalcursor.getId()+"__trans")
if self.clip:
! clip = (-0.2+globalx, -0.2+globaly, 0.2+globalx, 0.2+globaly)
else:
clip = None
globalview.placepapers(vs, cs1_trans,
- [Gzz-commits] gzz/gfx/demo xupdf.py, Tuomas J. Lukka, 2002/09/17
- [Gzz-commits] gzz/gfx/demo xupdf.py, Tuomas J. Lukka, 2002/09/17
- [Gzz-commits] gzz/gfx/demo xupdf.py, Tuomas J. Lukka, 2002/09/18
- [Gzz-commits] gzz/gfx/demo xupdf.py, Tuomas J. Lukka, 2002/09/18
- [Gzz-commits] gzz/gfx/demo xupdf.py, Janne V. Kujala, 2002/09/18
- [Gzz-commits] gzz/gfx/demo xupdf.py, Tuomas J. Lukka, 2002/09/18
- [Gzz-commits] gzz/gfx/demo xupdf.py, Tuomas J. Lukka, 2002/09/27
- [Gzz-commits] gzz/gfx/demo xupdf.py,
Tuomas J. Lukka <=
- [Gzz-commits] gzz/gfx/demo xupdf.py, Tuukka Hastrup, 2002/09/30