Python: module skeinforge_application.skeinforge_plugins.analyze_plugins.analyze_utilities.display_line

skeinforge_application.skeinforge_plugins.analyze_plugins.analyze_utilities.display_line ($Date: 2008/21/04 $) | index /home/enrique/Desktop/backup/babbleold/script/reprap/fabmetheus/skeinforge_application/skeinforge_plugins/analyze_plugins/analyze_utilities/display_line.py

Previous / Next / Contents

`
Display line is a mouse tool to select and display information about the line.
When a line is clicked, the line will be selected and information about the line will be displayed. If a gcode line is clicked, the information will be file line count of the line clicked, counting from one, and the line itself.
When the display line tool is chosen and the canvas has the focus, display line 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, display line will increase the line index of the layer by one, and change the selection accordingly. If the line index of the layer goes over the index of the last line, the layer index will be increased by one and the new line index will be zero. When the left arrow key is pressed, the index will be decreased. If the line index goes below the index of the first line, the layer index will be decreased by one and the new line index will be at the last line. The up arrow key increases the layer index by one and the down arow key decreases the line index.`

Previous / Next / Contents

Modules

``

__init__ | fabmetheus_utilities.gcodec | fabmetheus_utilities.settings |

Classes

``

skeinforge_application.skeinforge_plugins.analyze_plugins.analyze_utilities.mouse_tool_base.MouseToolBase
  DisplayLine

class DisplayLine(skeinforge_application.skeinforge_plugins.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.`

destroyEverything(self)
  `Destroy items.`

drawLineText(self, location, tags)
  `Draw the line text.`

drawSelectedColoredLineText(self)
  `Draw the selected line and text.`

getSelectedColoredLine(self)
  `Draw the selected line, add it to the items and return the colored line.`

isSelectionTool(self)
  `Return if this mouse tool is a selection tool.`

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.`

update(self)
  `Update the mouse tool.`

Methods inherited from skeinforge_application.skeinforge_plugins.analyze_plugins.analyze_utilities.mouse_tool_base.MouseToolBase:

buttonRelease1(self, event)
  `The left button was released, <ButtonRelease-1> function.`

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.`

keyPressReturn(self, event)
  `The return key was pressed.`

motion(self, event, shift=False)
  `The mouse moved, <Motion> function.`

setWindowItems(self, window)
  `Set the canvas and items.`

Functions

``

getNewMouseTool()
  `Get a new mouse tool.`

Data
`` |  | __author__ = 'Enrique Perez (perez_enrique@yahoo.com)' __date__ = '$Date: 2008/21/04 $' __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' absolute_import = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)

Author
`` |  | Enrique Perez (perez_enrique@yahoo.com)