a2dStToolEvtHandler Class Reference
[Objects used for interactive manipulation.]

behaviour model of a2dStTool tools More...

#include <sttool.h>

Inheritance diagram for a2dStToolEvtHandler:

Inheritance graph
[legend]
Collaboration diagram for a2dStToolEvtHandler:

Collaboration graph
[legend]

List of all members.

Public Types

enum  options {
  a2dTakeToolstyleNon = 0x0000, a2dTakeToolstyleToCmdhOnPush = 0x0001, a2dTakeToolstyleFromCmdhOnPop = 0x0002, a2dTakeToolstyleFromCmdhOnPush = 0x0004,
  a2dTakeToolstyleToNewObject = 0x0008, a2d_ALL = 0xFFFF
}
 Enum for hit test options. More...

Public Member Functions

 a2dStToolEvtHandler (a2dStToolContr *controller)
 constructor
 ~a2dStToolEvtHandler ()
 destructor
void SetTakeToolstyleToCmdhOptions (wxUint32 set)
wxUint32 GetTakeToolstyleToCmdhOptions ()
void TakeToCmdhFromEditedObject (a2dObjectEditTool *editTool)

Protected Member Functions

void OnKeyDown (wxKeyEvent &event)
void OnKeyUp (wxKeyEvent &event)
void OnDoEvent (a2dCommandProcessorEvent &event)
void OnUndoEvent (a2dCommandProcessorEvent &event)
void OnRedoEvent (a2dCommandProcessorEvent &event)
void OnComEvent (a2dComEvent &event)
void OnIdle (wxIdleEvent &event)

Protected Attributes

a2dStToolContrm_stcontroller
 tools using this controller
wxUint32 m_options


Detailed Description

behaviour model of a2dStTool tools

Tries to model general behaviour for tools controlled by a2dStToolContr, and tools known in wxArt2D. If you want different behaviour you can derive or develop your own a2dToolEvtHandler.

A a2dToolEvtHandler is/can be set to a a2dBaseTool as an event handler in between the tool its own event handler. This is the easiest way to make a whole set of tools behave to a certain model.

Definition at line 2048 of file sttool.h.


Member Enumeration Documentation

Enum for hit test options.

Enumerator:
a2dTakeToolstyleToCmdhOnPush  can be used to take over style from the a2dCentralCanvasCommandProcessor

when set fill stroke and other specific properties are set as current status to the a2dCentralCanvasCommandProcessor when a drawing tool is pushed.

a2dTakeToolstyleFromCmdhOnPop  can be used to set style to the a2dCentralCanvasCommandProcessor

when set fill stroke contour and other specific properties are taken from the a2dCentralCanvasCommandProcessor when a drawing tool is poped.

a2dTakeToolstyleFromCmdhOnPush  can be used to set style to the a2dCentralCanvasCommandProcessor

when set fill stroke contour and other specific properties are taken from the a2dCentralCanvasCommandProcessor when a drawing tool is pushed.

a2dTakeToolstyleToNewObject  new object added or object edited gets tool style
a2d_ALL  all

Definition at line 2055 of file sttool.h.


Member Function Documentation

void a2dStToolEvtHandler::OnComEvent ( a2dComEvent event  )  [protected]

event to make it possible to set style in for instance modeless style dialog

Reimplemented from a2dToolEvtHandler.

Definition at line 6843 of file sttool.cpp.


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