/[fenfire]/fenfire/org/fenfire/view/buoy/actions.py
ViewVC logotype

Diff of /fenfire/org/fenfire/view/buoy/actions.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by mudyc, Mon Aug 11 12:07:31 2003 UTC revision 1.9 by mudyc, Tue Aug 12 09:27:33 2003 UTC
# Line 34  class AbstractAction: Line 34  class AbstractAction:
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.
# Line 183  class CanvasNodePressListener(vob.mouse. Line 183  class CanvasNodePressListener(vob.mouse.
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()
# Line 192  class BuoyMouseMenu(AbstractAction, vob. Line 192  class BuoyMouseMenu(AbstractAction, vob.
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                    

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

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