163 |
noteA1 = Nodes.get(ppAct.newNote(paperA, -30,-30, 'This is a test!')) |
noteA1 = Nodes.get(ppAct.newNote(paperA, -30,-30, 'This is a test!')) |
164 |
noteA2 = Nodes.get(ppAct.newNote(paperA, -60,-70, 'This is a test2!')) |
noteA2 = Nodes.get(ppAct.newNote(paperA, -60,-70, 'This is a test2!')) |
165 |
noteA3 = Nodes.get(ppAct.newNote(paperA, 100, 100, '')) |
noteA3 = Nodes.get(ppAct.newNote(paperA, 100, 100, '')) |
166 |
|
noteA4 = Nodes.get(ppAct.newNote(paperA, -60,70, 'This is a very long test which is used to see if ')) |
167 |
|
|
168 |
ppAct.assocNotes(noteA1, 1, noteA2); |
ppAct.assocNotes(noteA1, 1, noteA2); |
169 |
|
|
404 |
p('mainMouse released? - there\'s a bug in here!') |
p('mainMouse released? - there\'s a bug in here!') |
405 |
mousePrint(self.lastEvent, 'lastEvent') |
mousePrint(self.lastEvent, 'lastEvent') |
406 |
|
|
407 |
|
# release event must go to mainMouse MouseMultiplexer to work correctly! |
408 |
|
# mainMouse.deliverEvent(ev) |
409 |
|
# flush implemented... |
410 |
|
mainMouse.flush() |
411 |
|
|
412 |
|
self.context.clean() |
413 |
|
w.setCursor('default') |
414 |
|
|
415 |
# workaround.. |
# workaround.. |
416 |
if self.lastEvent.getType() == ev.MOUSE_PRESSED: |
if self.lastEvent.getType() == ev.MOUSE_PRESSED: |
417 |
p('workaround for a bug') |
p('workaround for a bug') |
418 |
return 1 |
return 1 |
419 |
|
|
|
# release event must go to mainMouse MouseMultiplexer to work correctly! |
|
|
mainMouse.deliverEvent(ev) |
|
|
|
|
|
self.context.states.clean() |
|
|
w.setCursor('default') |
|
420 |
# There is a bug in AbstractUpdateManager code(?) and that's why now is must to return. |
# There is a bug in AbstractUpdateManager code(?) and that's why now is must to return. |
421 |
#return 1 |
#return 1 |
422 |
return 0 |
return 0 |
426 |
if ev.getType() != ev.MOUSE_CLICKED: |
if ev.getType() != ev.MOUSE_CLICKED: |
427 |
return 0 |
return 0 |
428 |
|
|
429 |
planes = [] |
if self.context.doMouse(ev, oldvs): |
430 |
for single in self.mgr.singles: |
mainMouse.flush() |
431 |
planes.append(single.getMainNode()) |
vob.AbstractUpdateManager.chg() |
|
newPlanes = self.context.doMouse(ev, oldvs, planes, self.nv) |
|
|
if newPlanes == 1: return 1 |
|
|
|
|
|
if newPlanes != None and planes != newPlanes: |
|
|
p('going to change the singles with new ones') |
|
|
for i in range(0, len(newPlanes)): |
|
|
self.mgr.singles[i] = vob.buoy.buoymanager.SingleFocusManager( |
|
|
newPlanes[i], |
|
|
self.mgr.connectors) |
|
|
vob.AbstractUpdateManager.chg() |
|
432 |
return 1 |
return 1 |
433 |
|
|
434 |
return 0 |
return 0 |
435 |
|
|
436 |
|
|