34 |
def __init__(self, context): |
def __init__(self, context): |
35 |
self.context = context |
self.context = context |
36 |
def super(self): |
def super(self): |
37 |
self.main = self.context.states.mgr.getLastMain() |
self.main = self.context.states.buoymanager.getLastMain() |
38 |
self.oldVS = self.context.states.mgr.getVs() |
self.oldVS = self.context.states.buoymanager.getVs() |
39 |
|
|
40 |
|
|
41 |
######## Actions to control pan of main nodes etc. |
######## Actions to control pan of main nodes etc. |
183 |
class BuoyMouseMenu(AbstractAction, vob.mouse.MouseClickListener): |
class BuoyMouseMenu(AbstractAction, vob.mouse.MouseClickListener): |
184 |
def clicked(self, x, y): |
def clicked(self, x, y): |
185 |
self.super() |
self.super() |
186 |
mgr = self.context.states.mgr |
buoymanager = self.context.states.buoymanager |
187 |
p('hit',mgr.buoyHit) |
p('hit',buoymanager.buoyHit) |
188 |
self.context.mousemenu.showList(x,y, 'buoymenu') |
self.context.mousemenu.showList(x,y, 'buoymenu') |
189 |
self.context.states.fastChg = 0 |
self.context.states.fastChg = 0 |
190 |
vob.AbstractUpdateManager.setNoAnimation() |
vob.AbstractUpdateManager.setNoAnimation() |
192 |
class BuoyFollowClick(AbstractAction, vob.mouse.MouseClickListener): |
class BuoyFollowClick(AbstractAction, vob.mouse.MouseClickListener): |
193 |
def clicked(self, x,y): |
def clicked(self, x,y): |
194 |
self.super() |
self.super() |
195 |
mgr = self.context.states.mgr |
buoymanager = self.context.states.buoymanager |
196 |
p('hit',mgr.buoyHit, mgr.buoyHit.single) |
p('hit',buoymanager.buoyHit, buoymanager.buoyHit.single) |
197 |
mgr.buoyHit.single.followLink(mgr.buoyHit.link) |
buoymanager.buoyHit.single.followLink(buoymanager.buoyHit.link) |
198 |
self.context.states.fastChg = 0 |
self.context.states.fastChg = 0 |
199 |
|
|
200 |
|
|