#include <sttool.h>


Public Member Functions | |
| a2dDragNewTool (a2dStToolContr *controller, a2dCanvasObject *newObject) | |
| bool | ZoomSave () |
| Is Zooming while the tool is busy Save. | |
| void | OnMouseEvent (wxMouseEvent &event) |
| called on mouse events | |
| virtual void | AdjustRenderOptions () |
| Adjust the rendering options to the needs of this tool. | |
Static Public Attributes | |
| static const a2dCommandId | COMID_PushTool_DragNew |
| push this tool on the tools stack | |
Protected Member Functions | |
| void | OnComEvent (a2dComEvent &event) |
| called when a tool has changed (fill stroke layer spline ) | |
| void | OnEnter (wxMouseEvent &event) |
| when dragging an object from another window into the tool its window, this window wants to have the focus. | |
| virtual wxString | GetCommandGroupName () |
| return the command group name for commands of a derived class | |
| virtual void | DoStopTool (bool abort) |
| to do tool specific stuff to stop a tool. Called from StopTool(). | |
| virtual bool | EnterBusyMode () |
| starts a new action (e.g drawing something ) in a tool that is already pushed. | |
| virtual void | FinishBusyMode (bool closeCommandGroup=true) |
| Called when the user finishes editing a distinct object */. | |
Protected Attributes | |
| a2dCanvasObjectPtr | m_newObject |
| a2dCanvasObjectPtr | m_parentAddedTo |
| This is the parent, to which the temporary object was added. | |
This is like a2dDragTool but it goes automatically into drag mode if it receives a mouse event.
Key left right up down to move while draging active (Left Down)
Definition at line 1072 of file sttool.h.
| a2dDragNewTool::a2dDragNewTool | ( | a2dStToolContr * | controller, | |
| a2dCanvasObject * | newObject | |||
| ) |
| controller | controller to place tool in | |
| newObject | the canvas object that is drag & droped |
Definition at line 3263 of file sttool.cpp.
| bool a2dDragNewTool::ZoomSave | ( | ) | [inline, virtual] |
Is Zooming while the tool is busy Save.
If so, the active tool will redraw itself in the new Mapping state
Reimplemented from a2dDragTool.
| virtual wxString a2dDragNewTool::GetCommandGroupName | ( | ) | [inline, protected, virtual] |
return the command group name for commands of a derived class
this defaults to the class name
Reimplemented from a2dDragTool.
| bool a2dDragNewTool::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 a2dDragTool.
Definition at line 3388 of file sttool.cpp.
| void a2dDragNewTool::FinishBusyMode | ( | bool | closeCommandGroup = true |
) | [protected, virtual] |
Called when the user finishes editing a distinct object */.
GetActive You should call the base class (this) version at the END of your function
Reimplemented from a2dDragTool.
Definition at line 3402 of file sttool.cpp.
a2dCanvasObjectPtr a2dDragNewTool::m_parentAddedTo [protected] |