/[fenfire]/fenfire/org/fenfire/demo/actions.py
ViewVC logotype

Diff of /fenfire/org/fenfire/demo/actions.py

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

revision 1.3 by mudyc, Thu Jun 26 02:29:01 2003 UTC revision 1.4 by mudyc, Thu Jun 26 12:29:30 2003 UTC
# Line 36  class AbstractContextController(ff.util. Line 36  class AbstractContextController(ff.util.
36  ######## Actions to control pan of main nodes etc.  ######## Actions to control pan of main nodes etc.
37    
38  class MovePanFast(AbstractContextController):  class MovePanFast(AbstractContextController):
39        def __init__(self, context, select):
40            AbstractContextController(context)
41            self.select = select
42      def isChangeable(self): return 1      def isChangeable(self): return 1
43      def change(self, x, y):      def change(self, x, y):
44          if dbg: p('move pan fast')          if dbg: p('move pan fast')
# Line 46  class MovePanFast(AbstractContextControl Line 49  class MovePanFast(AbstractContextControl
49          self.obj.chgFast(self.oldVS)          self.obj.chgFast(self.oldVS)
50    
51          self.context.states.p()          self.context.states.p()
52            if self.context.states.hasCtrl():
53                xy0 = self.context.states.getPressPans()
54                self.select.setArea(xy[0], xy[1], f.getPanX(), f.getPanY())
55            else: self.select.setArea(0,0,0,0)
56    
57  class MovePanSlow(ff.util.ControlBinding.AbstractController):  class MovePanSlow(ff.util.ControlBinding.AbstractController):
58      def isChangeable(self): return 0      def isChangeable(self): return 0

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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