/[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.53 by humppake, Wed Aug 27 19:31:45 2003 UTC revision 1.54 by humppake, Thu Aug 28 09:30:27 2003 UTC
# Line 130  class MindMapMainNode2D(ff.view.buoy.Mai Line 130  class MindMapMainNode2D(ff.view.buoy.Mai
130          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())
131          p.place(vs, cs)          p.place(vs, cs)
132    
133          csEnlarged = vs.coords.orthoBox(into,0, x*2, y*2, 1,1, p.getWidth()*2, p.getHeight()*2)  #        csEnlarged = vs.coords.orthoBox(into,0, x*2, y*2, 1,1, p.getWidth()*2, p.getHeight()*2)
134          vs.matcher.add(cs, csEnlarged, "Enlarged_"+node)  #        vs.matcher.add(cs, csEnlarged, "Enlarged_"+node)
135    
136          vs.coords.activate(csEnlarged)  #        vs.coords.activate(csEnlarged)
137            vs.coords.activate(cs)
138    
139  class MindMapView2D(ff.view.View2D):  class MindMapView2D(ff.view.View2D):
140      def __init__(self, fen, context):      def __init__(self, fen, context):
# Line 252  class MindMapView2D(ff.view.View2D): Line 253  class MindMapView2D(ff.view.View2D):
253    
254          ## XXX This could work, but setting TextCursor after selecting, would be difficult            ## XXX This could work, but setting TextCursor after selecting, would be difficult  
255          # set the active coordinate system coverage            # set the active coordinate system coverage  
256          if x > -self.filletWidth/2:    #        if x > -self.filletWidth/2:  
257              x = -self.filletWidth/2  #            x = -self.filletWidth/2
258              w = self.filletWidth*scale*2  #            w = self.filletWidth*scale*2
259          else: w = p.getWidth()*textScale    #        else: w = p.getWidth()*textScale  
260          if y > -self.filletWidth/2:    #        if y > -self.filletWidth/2:  
261              y = -self.filletWidth/2  #            y = -self.filletWidth/2
262              h = self.filletWidth*scale*2  #            h = self.filletWidth*scale*2
263          else: h = p.getHeight()*textScale    #        else: h = p.getHeight()*textScale  
264                        
265          csEnlarged = vs.coords.orthoBox(into,0, x,y, textScale, textScale, w, h)  #        csEnlarged = vs.coords.orthoBox(into,0, x,y, textScale, textScale, w, h)
266          vs.matcher.add(cs, csEnlarged, "Enlarged_"+node)  #        vs.matcher.add(cs, csEnlarged, "Enlarged_"+node)
267                    
268          vs.coords.activate(csEnlarged)  #        vs.coords.activate(csEnlarged)
269            vs.coords.activate(cs)

Legend:
Removed from v.1.53  
changed lines
  Added in v.1.54

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