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): |
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) |