a2dDragNewTool Class Reference
[Objects used for interactive manipulation.]

Interactive drag a new object into a drawing. More...

#include <sttool.h>

Inheritance diagram for a2dDragNewTool:

Inheritance graph
[legend]
Collaboration diagram for a2dDragNewTool:

Collaboration graph
[legend]

List of all members.

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.


Detailed Description

Interactive drag a new object into a drawing.

This is like a2dDragTool but it goes automatically into drag mode if it receives a mouse event.

Remarks:
Left Click to drop.

Key left right up down to move while draging active (Left Down)

See also:
a2dDragTool

Definition at line 1072 of file sttool.h.


Constructor & Destructor Documentation

a2dDragNewTool::a2dDragNewTool ( a2dStToolContr controller,
a2dCanvasObject newObject 
)

Parameters:
controller controller to place tool in
newObject the canvas object that is drag & droped

Definition at line 3263 of file sttool.cpp.


Member Function Documentation

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.

Definition at line 1088 of file sttool.h.

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.

Definition at line 1101 of file sttool.h.

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 */.

See also:
EnterBusyMode,

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.


Member Data Documentation

This is the parent, to which the temporary object was added.

This must be remembered, because it changes if the shows object changes

Definition at line 1109 of file sttool.h.


The documentation for this class was generated from the following files:
a2dDragNewTool Class Reference -- Tue Aug 31 18:23:27 2010 -- 31 Aug 2010 -- 1.5.5 -- wxArt2D -- . -- Main Page Reference Documentation