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