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