a2dMasterDrawBase Class Reference

common stuff for several master tools More...

#include <mastertool.h>

Inheritance diagram for a2dMasterDrawBase:

Inheritance graph
[legend]
Collaboration diagram for a2dMasterDrawBase:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 a2dMasterDrawBase (a2dStToolContr *controller)
 constructor
 ~a2dMasterDrawBase ()
 destructor
void SetFastTools (bool onOff)
 tools using inverse drawing will be used.
bool GetFastTools ()
 tools using inverse drawing will be used.
void SetAllowMultiEdit (bool onOff)
 if set true, Double Click on N selected objects, leads to editing them as a group
bool GetAllowMultiEdit ()
 if true, Double Click on N selected objects, leads to editing them as a group
void SetSelectFill (const a2dFill &fill)
 set select fill
const a2dFillGetSelectFill () const
 get the select fill
void SetSelectStroke (const a2dStroke &stroke)
 set select stroke
const a2dStrokeGetSelectStroke () const
 get the select stroke

Protected Types

enum  Mode {
  mode_none, mode_edit, mode_multiedit, mode_zoom,
  mode_select, mode_cntrlselect, mode_deselect, mode_drag,
  mode_dragmulti, mode_copy, mode_copymulti, mode_segment,
  mode_vertex, mode_zoomdrag
}

Protected Member Functions

virtual void PushZoomTool ()
virtual void PushSelectTool ()
virtual void PushDeSelectTool ()
virtual void PushDragTool (a2dCanvasObject *hit)
virtual void PushDragMultiTool (a2dCanvasObject *hit)
virtual void PushCopyTool (a2dCanvasObject *hit)
virtual void PushCopyMultiTool (a2dCanvasObject *hit)
virtual void PushEditTool (a2dCanvasObject *hit)
virtual void PushMultiEditTool (a2dCanvasObject *hit)
virtual void PushEditSegmentTool (a2dCanvasObject *hit, int segment)
virtual void PushEditVertexTool (a2dCanvasObject *hit, int vertex)
void SelectHitObject (a2dCanvasObject *hit)
void DeselectAll ()
virtual bool ZoomSave ()
 Is Zooming while the tool is busy Save.
virtual void DoStopTool (bool abort)
 to do tool specific stuff to stop a tool. Called from StopTool().
void OnChar (wxKeyEvent &event)
 called on key events
void OnKeyDown (wxKeyEvent &event)
 called on key down events
void OnKeyUp (wxKeyEvent &event)
 called on key up events

Protected Attributes

enum a2dMasterDrawBase::Mode m_mode
 general operation mode setting for a tool.
a2dCanvasObjectm_modehit
a2dHit m_modehitinfo
bool m_spaceDown
bool m_toolBusy
bool m_modehitLastSelectState
bool m_fastTools
bool m_allowMultiEdit
a2dFill m_selectFill
a2dStroke m_selectStroke


Detailed Description

common stuff for several master tools

Definition at line 296 of file mastertool.h.


Member Function Documentation

const a2dFill& a2dMasterDrawBase::GetSelectFill (  )  const [inline]

get the select fill

Return the select fill

Definition at line 324 of file mastertool.h.

const a2dStroke& a2dMasterDrawBase::GetSelectStroke (  )  const [inline]

get the select stroke

Return the select stroke

Definition at line 333 of file mastertool.h.

bool a2dMasterDrawBase::ZoomSave (  )  [protected, 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 1031 of file mastertool.cpp.


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