#include <sttool2.h>


Public Member Functions | |
| a2dFastDragMultiTool (a2dStToolContr *controller) | |
| bool | ZoomSave () |
| Is Zooming while the tool is busy Save. | |
| void | SetMode (int mode) |
| general integer to set operation modes for a tool (e.g the way it draws) | |
Static Public Attributes | |
| static const a2dCommandId | COMID_PushTool_FastDragMulti |
| push this tool on the tools stack | |
Protected Member Functions | |
| void | GenerateAnotation () |
| to display a string along with a tool drawing. | |
| void | OnChar (wxKeyEvent &event) |
| called on key events | |
| void | OnMouseEvent (wxMouseEvent &event) |
| called on mouse events | |
| void | OnIdle (wxIdleEvent &event) |
| handler for idle events | |
| virtual bool | EnterBusyMode () |
| starts a new action (e.g drawing something ) in a tool that is already pushed. | |
| virtual void | FinishBusyMode () |
| virtual void | AbortBusyMode () |
| Called when the user aborts editing a distinct object */. | |
| void | CaptureMouse () |
| redirect all mouse events for the canvas to this object | |
| void | ReleaseMouse () |
| release the mouse capture for this object | |
| virtual void | DragRelative (double x, double y) |
| called for incremental keyboard shifts | |
| virtual void | Render () |
| render in drag style | |
| virtual void | AdjustShift (double *x, double *y) |
| This is overriden by copy tools to have a minimum distance between original and copy. | |
| virtual wxString | GetCommandGroupName () |
| return the command group name for commands of a derived class | |
| virtual bool | CreateToolObjects () |
| Create the editcopy and other tool objects (e.g. decorations). | |
| virtual void | CleanupToolObjects () |
| Cleanup the editcopy other tool objects (e.g. decorations). | |
Protected Attributes | |
| a2dCanvasObjectList | m_objects |
| the list of selected objects | |
| a2dCanvasObjectList | m_copies |
| double | m_startObjectx |
| double | m_startObjecty |
| double | m_startMousexw |
| double | m_startMouseyw |
Definition at line 212 of file sttool2.h.
| bool a2dFastDragMultiTool::ZoomSave | ( | ) | [inline, virtual] |
Is Zooming while the tool is busy Save.
If so, the active tool will redraw itself in the new Mapping state
Implements a2dBaseTool.
| void a2dFastDragMultiTool::SetMode | ( | int | mode | ) | [virtual] |
general integer to set operation modes for a tool (e.g the way it draws)
tools most check the mode and handle in accordance In general Tab should be used to tab/switch/circle between modes understood by a tool.
Reimplemented from a2dBaseTool.
Definition at line 1322 of file sttool2.cpp.
| bool a2dFastDragMultiTool::EnterBusyMode | ( | ) | [protected, virtual] |
starts a new action (e.g drawing something ) in a tool that is already pushed.
Opens a new a2dCommandGroup, which will be closed at the end of an action. This is normally in FinishBusyMode(), but might be delayed when other tools are pushed, like the edit tool to further edit the drawn figure. This should become part of the same command group.
Reimplemented from a2dStTool.
Definition at line 1084 of file sttool2.cpp.
| void a2dFastDragMultiTool::AbortBusyMode | ( | ) | [protected, virtual] |
Called when the user aborts editing a distinct object */.
Reimplemented from a2dStTool.
Definition at line 1106 of file sttool2.cpp.
| virtual wxString a2dFastDragMultiTool::GetCommandGroupName | ( | ) | [inline, protected, virtual] |
return the command group name for commands of a derived class
this defaults to the class name
Reimplemented from a2dBaseTool.
Reimplemented in a2dFastCopyMultiTool.
| bool a2dFastDragMultiTool::CreateToolObjects | ( | ) | [protected, virtual] |
Create the editcopy and other tool objects (e.g. decorations).
m_original must be set before this function is called
Reimplemented from a2dStTool.
Definition at line 1258 of file sttool2.cpp.