skeinforge_tools.analyze_plugins.analyze_utilities.view_move ($Date: 2008/21/04 $)
index
/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/analyze_plugins/analyze_utilities/view_move.py

Previous / Next / Contents


Viewpoint move is a mouse tool to move the viewpoint in the xy plane.

When the mouse is clicked and dragged on the canvas, viewpoint move will drag the scroll pane accordingly. If the shift key is also pressed, the scroll pane will be moved only in the x or y direction, whichever is largest.

When the viewpoint move tool is chosen and the canvas has the focus, viewpoint move will listen to the arrow keys. Clicking in the canvas gives the canvas the focus, and when the canvas has the focus a thick black border is drawn around the canvas. When the right arrow key is pressed, viewpoint move will move the scroll pane to the right by a pixel. When the left arrow key is pressed, the scroll pane will be moved a pixel to the left. The up arrow key moves the scroll pane a pixel up and the down arow key moves the scroll pane a pixel down.


Previous / Next / Contents


 
Modules
       
__init__
skeinforge_tools.skeinforge_utilities.settings

 
Classes
       
skeinforge_tools.analyze_plugins.analyze_utilities.mouse_tool_base.MouseToolBase
ViewpointMove

 
class ViewpointMove(skeinforge_tools.analyze_plugins.analyze_utilities.mouse_tool_base.MouseToolBase)
    Display the line when it is clicked.
 
  Methods defined here:
button1(self, event, shift=False)
Print line text and connection line.
buttonRelease1(self, event, shift=False)
The left button was released, <ButtonRelease-1> function.
destroyEverything(self)
Destroy items.
keyPressDown(self, event)
The down arrow was pressed.
keyPressLeft(self, event)
The left arrow was pressed.
keyPressRight(self, event)
The right arrow was pressed.
keyPressUp(self, event)
The up arrow was pressed.
motion(self, event, shift=False)
The mouse moved, <Motion> function.
relativeMove(self, relativeMotion)
Move the view given the relative motion.
setScrollPaneMove(self, relativeMotion)
The up arrow was pressed.

Methods inherited from skeinforge_tools.analyze_plugins.analyze_utilities.mouse_tool_base.MouseToolBase:
destroyEverythingGetFocus(self)
Destroy items and get the focus for the canvas.
getReset(self, window)
Reset the mouse tool to default.
getTagsGivenXY(self, x, y)
Get the tag for the x and y.
isSelectionTool(self)
Return if this mouse tool is a selection tool.
keyPressReturn(self, event)
The return key was pressed.
setWindowItems(self, window)
Set the canvas and items.
update(self)
Update the mouse tool.

 
Functions
       
getNewMouseTool()
Get a new mouse tool.

 
Data
        __author__ = 'Enrique Perez (perez_enrique@yahoo.com)'
__date__ = '$Date: 2008/21/04 $'
__license__ = 'GPL 3.0'
absolute_import = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)

 
Author
        Enrique Perez (perez_enrique@yahoo.com)