SelectionTool selects atoms and bonds from the screen.
#include <selectiontool.h>
The name of the tool, will be displayed in the user interface.
Implements ToolPlugin.
QString description |
( |
| ) |
const |
|
virtual |
A description of the tool, may be displayed in the user interface.
Implements ToolPlugin.
unsigned char priority |
( |
| ) |
const |
|
virtual |
A priority of the tool for sorting in the user interface.
Implements ToolPlugin.
QAction* activateAction |
( |
| ) |
const |
|
virtual |
- Returns
- The QAction that will cause this tool to become active.
Implements ToolPlugin.
QWidget* toolWidget |
( |
| ) |
const |
|
virtual |
- Returns
- A QWidget that will be displayed to the user while this tool is active.
Implements ToolPlugin.
Called when the current molecule changes.
Implements ToolPlugin.
Set the GLRenderer used by the tool.
Reimplemented from ToolPlugin.
QUndoCommand* mousePressEvent |
( |
QMouseEvent * |
e | ) |
|
|
virtual |
Respond to user-input events.
- Parameters
-
- Returns
- A QUndoCommand that can be used to undo any changes to the molecule. If no undoable change is made, the method may return NULL.
Reimplemented from ToolPlugin.
QUndoCommand* mouseReleaseEvent |
( |
QMouseEvent * |
e | ) |
|
|
virtual |
Respond to user-input events.
- Parameters
-
- Returns
- A QUndoCommand that can be used to undo any changes to the molecule. If no undoable change is made, the method may return NULL.
Reimplemented from ToolPlugin.
QUndoCommand* mouseDoubleClickEvent |
( |
QMouseEvent * |
e | ) |
|
|
virtual |
Respond to user-input events.
- Parameters
-
- Returns
- A QUndoCommand that can be used to undo any changes to the molecule. If no undoable change is made, the method may return NULL.
Reimplemented from ToolPlugin.
QUndoCommand* mouseMoveEvent |
( |
QMouseEvent * |
e | ) |
|
|
virtual |
Respond to user-input events.
- Parameters
-
- Returns
- A QUndoCommand that can be used to undo any changes to the molecule. If no undoable change is made, the method may return NULL.
Reimplemented from ToolPlugin.
QUndoCommand* keyPressEvent |
( |
QKeyEvent * |
e | ) |
|
|
virtual |
Respond to user-input events.
- Parameters
-
- Returns
- A QUndoCommand that can be used to undo any changes to the molecule. If no undoable change is made, the method may return NULL.
Reimplemented from ToolPlugin.
Override this method to add drawables to the scene graph.
Reimplemented from ToolPlugin.
The documentation for this class was generated from the following file: