#include <sttool.h>


Public Member Functions | |
| a2dRotateTool (a2dStToolContr *controller) | |
| bool | ZoomSave () |
| Is Zooming while the tool is busy Save. | |
| void | CaptureMouse () |
| redirect all mouse events for the canvas to this object | |
| void | ReleaseMouse () |
| release the mouse capture for this object | |
Static Public Attributes | |
| static const a2dCommandId | COMID_PushTool_Rotate |
| push this tool on the tools stack | |
Protected Member Functions | |
| 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 */. | |
| void | AbortBusyMode () |
| Called when the user aborts editing a distinct object */. | |
| void | OnChar (wxKeyEvent &event) |
| called on key events | |
| void | OnIdle (wxIdleEvent &event) |
| handler for idle events | |
| void | OnMouseEvent (wxMouseEvent &event) |
| called on mouse events | |
| virtual wxString | GetCommandGroupName () |
| return the command group name for commands of a derived class | |
Protected Attributes | |
| double | m_xr |
| double | m_yr |
| bool | m_mode |
| general operation mode setting for a tool. | |
| a2dAffineMatrix | m_transform |
| old transform | |
| double | m_ang |
Definition at line 1159 of file sttool.h.
| bool a2dRotateTool::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.
| bool a2dRotateTool::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 5630 of file sttool.cpp.
| void a2dRotateTool::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 a2dStTool.
Definition at line 5638 of file sttool.cpp.
| void a2dRotateTool::AbortBusyMode | ( | ) | [protected, virtual] |
Called when the user aborts editing a distinct object */.
Reimplemented from a2dStTool.
Definition at line 5644 of file sttool.cpp.
| virtual wxString a2dRotateTool::GetCommandGroupName | ( | ) | [inline, protected, virtual] |
return the command group name for commands of a derived class
this defaults to the class name
Reimplemented from a2dBaseTool.