/[fenfire]/fenfire/org/fenfire/view/lava/mindMapView2D.py
ViewVC logotype

Diff of /fenfire/org/fenfire/view/lava/mindMapView2D.py

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

revision 1.51 by humppake, Wed Aug 27 18:46:34 2003 UTC revision 1.52 by humppake, Wed Aug 27 19:19:43 2003 UTC
# Line 128  class MindMapMainNode2D(ff.view.buoy.Mai Line 128  class MindMapMainNode2D(ff.view.buoy.Mai
128          vs.matcher.add(self.floatingView.matchingParent, into, node)          vs.matcher.add(self.floatingView.matchingParent, into, node)
129          cs = vs.orthoBoxCS(into,node,0, x, y, 1,1, p.getWidth(), p.getHeight())          cs = vs.orthoBoxCS(into,node,0, x, y, 1,1, p.getWidth(), p.getHeight())
130          p.place(vs, cs)          p.place(vs, cs)
131          vs.coords.activate(cs)  
132            csEnlarged = vs.coords.orthoBox(into,0, x*2, y*2, 1,1, p.getWidth()*2, p.getHeight()*2)
133            vs.matcher.add(cs, csEnlarged, "Enlarged_"+node)
134    
135            vs.coords.activate(csEnlarged)
136    
137  class MindMapView2D(ff.view.View2D):  class MindMapView2D(ff.view.View2D):
138      def __init__(self, fen, context):      def __init__(self, fen, context):
# Line 244  class MindMapView2D(ff.view.View2D): Line 248  class MindMapView2D(ff.view.View2D):
248          cs = vs.orthoBoxCS(into, node,0, x,y, textScale, textScale, p.getWidth(), p.getHeight())          cs = vs.orthoBoxCS(into, node,0, x,y, textScale, textScale, p.getWidth(), p.getHeight())
249          p.place(vs, cs)          p.place(vs, cs)
250    
251          vs.coords.activate(cs)  
252            ## XXX This could work, but setting TextCursor after selecting, would be difficult  
253            # set the active coordinate system coverage  
254            if x > -self.filletWidth/2:  
255                x = -self.filletWidth/2
256                w = self.filletWidth*scale*2
257            else: w = p.getWidth()*textScale  
258            if y > -self.filletWidth/2:  
259                y = -self.filletWidth/2
260                h = self.filletWidth*scale*2
261            else: h = p.getHeight()*textScale  
262              
263            csEnlarged = vs.coords.orthoBox(into,0, x,y, textScale, textScale, w, h)
264            vs.matcher.add(cs, csEnlarged, "Enlarged_"+node)
265            
266            vs.coords.activate(csEnlarged)

Legend:
Removed from v.1.51  
changed lines
  Added in v.1.52

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