a2dDrawTextTool Class Reference
[Objects used for interactive manipulation.]

Interactive drawing a text object. More...

#include <sttool.h>

Inheritance diagram for a2dDrawTextTool:

Inheritance graph
[legend]
Collaboration diagram for a2dDrawTextTool:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 a2dDrawTextTool (a2dStToolContr *controller)
bool ZoomSave ()
 Is Zooming while the tool is busy Save.
void SetLineSpacing (double linespace)
 line spacing for text object
void SetFont (const a2dFont &font)
 font to use
const a2dFontGetFont ()
 return used font
void SetNextLineDirection (bool up)
 next line up or down

Static Public Attributes

static const a2dCommandId COMID_PushTool_DrawText
 push this tool on the tools stack
static a2dPropertyIdFontPROPID_Font = NULL

Protected Member Functions

const a2dFontMX_GetFont () const
void MX_SetFont (const a2dFont &value)
void OnMouseEvent (wxMouseEvent &event)
 called on mouse events

Protected Attributes

a2dFont m_font
 used font
double m_linespace
 line spacing for text object
int m_caret
 where is the cursor.
bool m_up
 next line up or down


Detailed Description

Interactive drawing a text object.

Remarks:
Cursor keys to navigate through text

Home & End (goto begin or end of line)

control + Home & End (goto begin or end of text object)

altdown + Cursor keys to shift text object

controldown + Cursor keys (default canvas behaviour)

See also:
a2dStToolContr

Definition at line 1938 of file sttool.h.


Member Function Documentation

bool a2dDrawTextTool::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.

Definition at line 1950 of file sttool.h.


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