General information:Author: klaas Version: 1.0 Date: Mon Oct 18 9:57:28 MET 1999 |
Header files:
|
Code files:
|
all interactive drawing using tools is handled through this class. All mouse and key events on the canvas/client window are redirected to this class. Depending on the tool that is active, those events are redirected to the right tool. A stack of tools is maintained in order to allow drawing and zooming at the same time. Shortcuts to start tools/certain commands are also handled here. Undo while a tool is in action (busy drawing), is handled by the tool itself. The toolcontroller will receive the undo command, and redirects it to the active tool. The default tool will always be the ZOOMIN_TOOL. If the stack becomes empty, this tool will be started again.
scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: NONE |
Declaration:
ToolControl()
Description:
constructor
scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: NONE |
Declaration:
~ToolControl()
Description:
destructor
scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: void |
Declaration:
void OnMouseEvent(wxMouseEvent& event)
Description:
called on mouse events
scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: void |
Declaration:
void OnChar(wxKeyEvent& event)
Description:
called on key events
scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: void |
Declaration:
void OnKeyDown(wxKeyEvent& event)
Description:
called on keydown events
scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: void |
Declaration:
void OnKeyUp(wxKeyEvent& event)
Description:
called on keyup events
scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: ToolSet |
Declaration:
ToolSet GetActiveType()
Description:
what tool is active at the moment
scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: BaseTool* |
Declaration:
BaseTool* GetActiveTool()
Description:
scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: G_BOOL |
Declaration:
G_BOOL PopTool()
Description:
scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: G_BOOL |
Declaration:
G_BOOL PushTool(BaseTool* a_tool)
Description:
scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: G_BOOL |
Declaration:
G_BOOL StartTool(ToolSet a_tool,G_BOOL onlyonce)
Description:
scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: G_BOOL |
Declaration:
G_BOOL EndTool(G_BOOL now=False)
Description:
scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: G_BOOL |
Declaration:
G_BOOL StopTool()
Description:
scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: void |
Declaration:
void CalculateCurrent()
Description:
scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: int |
Declaration:
int NumberOfTools()
Description:
scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: G_BOOL |
Declaration:
G_BOOL Undo()
Description:
scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: G_BOOL |
Declaration:
G_BOOL Draw()
Description:
scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: G_BOOL |
Declaration:
G_BOOL Begin()
Description:
scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: G_BOOL |
Declaration:
G_BOOL End()
Description:
scope: protected | type: basic | typename: G_BOOL |
Declaration:
G_BOOL _toolactive
Description:
scope: protected | type: basic | typename: DL_List<void*>* |
Declaration:
DL_List<void*>* _tool_stack
Description:
scope: protected | type: basic | typename: BaseTool* |
Declaration:
BaseTool* _tool
Description:
scope: protected | type: basic | typename: long |
Declaration:
long _currentX
Description:
scope: protected | type: basic | typename: long |
Declaration:
long _currentY
Description:
scope: protected | type: basic | typename: double |
Declaration:
double _realcurrentX
Description:
scope: protected | type: basic | typename: double |
Declaration:
double _realcurrentY
Description: