33 |
'Moving the pan around or the node if accursed.', |
'Moving the pan around or the node if accursed.', |
34 |
actions.mouse.CanvasNodePressListener( |
actions.mouse.CanvasNodePressListener( |
35 |
actions.mouse.NodeMover(), |
actions.mouse.NodeMover(), |
36 |
actions.mouse.PanMover())) |
actions.mouse.Pan_Fastest())) |
37 |
self.mainMouse.setListener(1, vob.VobMouseEvent.SHIFT_MASK, |
self.mainMouse.setListener(1, vob.VobMouseEvent.SHIFT_MASK, |
38 |
'Selecting area of main view.', |
'Selecting area of main view.', |
39 |
actions.mouse.SelectArea()) |
actions.mouse.SelectArea()) |
46 |
# With button 3 |
# With button 3 |
47 |
self.mainMouse.setListener(3, 0, self.mainMouse.VERTICAL, 1.0, |
self.mainMouse.setListener(3, 0, self.mainMouse.VERTICAL, 1.0, |
48 |
'Zooming the main view.', |
'Zooming the main view.', |
49 |
actions.mouse.ZoomPan()) |
actions.mouse.Zoom()) |
50 |
self.mainMouse.setListener(3, 0, self.mainMouse.HORIZONTAL, 1.0, |
self.mainMouse.setListener(3, 0, self.mainMouse.HORIZONTAL, 1.0, |
51 |
'Changing the size of main view (currently only for pagescroll).', |
'Changing the size of main view (currently only for pagescroll).', |
52 |
actions.mouse.ChangeSize()) |
actions.mouse.ChangeSize()) |
58 |
actions.mouse.MouseMenu()) |
actions.mouse.MouseMenu()) |
59 |
|
|
60 |
# With wheel |
# With wheel |
61 |
self.mainMouse.setWheelListener(0, 'Moving the pan', \ |
self.mainMouse.setWheelListener(0, 'Scrolling', \ |
62 |
actions.mouse.PanMover()) |
actions.mouse.ScrollWheelPan()) |
63 |
|
|
64 |
self.context.states.mainMouse = self.mainMouse |
self.context.states.mainMouse = self.mainMouse |
65 |
|
|