/[gzz]/gzz/gzz/view/buoy/pagespanNodes.py
ViewVC logotype

Diff of /gzz/gzz/view/buoy/pagespanNodes.py

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

revision 1.15 by tjl, Thu Feb 6 11:53:14 2003 UTC revision 1.16 by tjl, Thu Feb 6 12:28:00 2003 UTC
# Line 39  class WholePageSpanNodeType(AbstractPage Line 39  class WholePageSpanNodeType(AbstractPage
39          if layout == None:          if layout == None:
40              layout = pscv.getLayout(anchorSpan.getScrollBlock())              layout = pscv.getLayout(anchorSpan.getScrollBlock())
41          # For now, we'll just squish to fit          # For now, we'll just squish to fit
42          unit = vs.unitSqCS(into, "UNIT")          layout.placeBoxed(vs, into, .5, 200)
         scaled = vs.scaleCS(unit, "SCALED", 1.0 / layout.w, 1.0 / layout.h)  
         layout.place(vs, scaled, .5, 200)  
43    
44  class AnchorPageSpanNodeType(AbstractPageSpanNodeType):  class AnchorPageSpanNodeType(AbstractPageSpanNodeType):
45      def renderBuoy(self, vs, into, linkId, anchorSpan):      def renderBuoy(self, vs, into, linkId, anchorSpan):
# Line 71  class PageSpanMainNode(BuoyViewMainNode) Line 69  class PageSpanMainNode(BuoyViewMainNode)
69    
70          # XXX This is not right: the distortion          # XXX This is not right: the distortion
71          # should be done here.          # should be done here.
72          unit = vs.unitSqCS(into, "UNIT")          self.layout.placeBoxed(vs, into, 1, 200)
         scaled = vs.scaleCS(unit, "SCALED",  
                 1.0 / self.layout.w, 1.0 / self.layout.h)  
         self.layout.place(vs, scaled, 1, 200)  
73    
74          matches = (self.nodetype.scrollBlockLinker          matches = (self.nodetype.scrollBlockLinker
75                              .enfiladeOverlap.getMatches(self.enf))                              .enfiladeOverlap.getMatches(self.enf))

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

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