|
| | a2dToolContr (a2dDrawingPart *drawingPart) |
| |
|
virtual | ~a2dToolContr () |
| | destructor
|
| |
| void | SetDrawingPart (a2dDrawingPart *drawingPart) |
| | sets the a2dDrawingPart on which the controller will work. More...
|
| |
|
a2dDrawingPart * | GetDrawingPart () |
| | Get the a2dDrawingPart object that the controller is plugged into.
|
| |
| void | StopAllTools (bool abort=true) |
| | all tools currently on the tool stack will be terminated and poped ( forced ) More...
|
| |
| virtual void | ReStart () |
| | Toolcontroller can be re-initialized. More...
|
| |
| void | Disable () |
| | can be used by a2dCanvas or a2dDrawingPart to disable this class More...
|
| |
|
a2dBaseTool * | GetFirstTool () const |
| | get currently used eventhandler (always the first in the list)
|
| |
|
const a2dToolList & | GetToolList () const |
| | return reference to tool list
|
| |
| bool | ProcessEvent (wxEvent &event) |
| | process an event for the object, if the event is not handled by More...
|
| |
| virtual bool | PushTool (a2dBaseTool *handler) |
| | push/pop tool: More...
|
| |
| virtual bool | PopTool (a2dBaseToolPtr &poped, bool force=true) |
| | remove first tool on the tool stack More...
|
| |
|
void | AppendTool (a2dBaseTool *handler) |
| | append a tool to the list, this tool will recieve an event if the other skipped the event to process. */
|
| |
| bool | EnableTool (const wxString &tool, bool disableothers) |
| | enable the tool with the given name More...
|
| |
| bool | EnableTool (a2dBaseTool *tool, bool disableothers) |
| | enable the given tool More...
|
| |
| bool | DisableTool (const wxString &tool) |
| | disable the tool with the given name More...
|
| |
| bool | DisableTool (a2dBaseTool *tool) |
| | disable the tool with the given name More...
|
| |
| a2dBaseTool * | SearchTool (const wxString &tool) |
| | search for the tools in the tool list with the given name. More...
|
| |
| void | ActivateTop (bool active) |
| | (de)activate the first tool in the list. More...
|
| |
| bool | Activate (const wxString &tool, bool disableothers) |
| | Activate the tool with the given name. More...
|
| |
| virtual bool | StartEditingObject (a2dCanvasObject *objectToEdit) |
| | start editing object using existing corridor to object More...
|
| |
| virtual bool | StartEditingObject (a2dCanvasObject *objectToEdit, a2dIterC &ic) |
| | start editing object using iteration context to define corridor. More...
|
| |
| virtual bool | TriggerReStartEdit (wxUint16 editmode) |
| | trigger restart editing (after undo event or when changing editing mode ) More...
|
| |
|
bool | SetCorridor (const a2dCorridor &corridor) |
| | define corridor for the controller its first tool
|
| |
| virtual void | Render () |
| | render the tool chain More...
|
| |
| void | SetSnap (bool doSnap) |
| | set snap on or off. More...
|
| |
|
bool | GetSnap () |
| | get current snap setting ( true or false ).
|
| |
|
void | SetDefaultToolEvtHandler (a2dObject *handler) |
| | see m_eventHandler
|
| |
|
a2dObject * | GetDefaultToolEventHandler () |
| | see m_eventHandler
|
| |
|
void | SetDefaultToolEvtHandlerFixedStyle (a2dObject *handler) |
| | see m_defaultEventHandlerFixedStyle
|
| |
|
a2dObject * | GetDefaultToolEventHandlerFixedStyle () |
| | see m_defaultEventHandlerFixedStyle
|
| |
|
bool | SearchDynamicEventTable (wxEvent &event) |
| |
|
void | Connect (int winid, int lastId, int eventType, wxObjectEventFunction func, wxObject *userData=(wxObject *) NULL, wxEvtHandler *eventSink=(wxEvtHandler *) NULL) |
| |
|
bool | Disconnect (int winid, int lastId, wxEventType eventType, wxObjectEventFunction func=NULL, wxObject *userData=(wxObject *) NULL, wxEvtHandler *eventSink=(wxEvtHandler *) NULL) |
| |
| void | ProcessConnectedEvent (wxEvent &event) |
| | wxCHECK_VERSION(2,9,0) More...
|
| |
| void | ConnectEvent (wxEventType type, wxEvtHandler *eventSink) |
| |
| bool | DisconnectEvent (wxEventType type, wxEvtHandler *eventSink) |
| |
| bool | DisconnectEventAll (wxEvtHandler *eventSink) |
| | Remove all dynamic events in classA, going to classB (eventSink) More...
|
| |
|
| a2dObject () |
| | constructor
|
| |
|
virtual | ~a2dObject () |
| | destructor
|
| |
|
void | operator= (const a2dObject &other) |
| | assignment operator
|
| |
| int | GetOwnedBy () |
| | like it to be protected, but this does not work with wxList macros More...
|
| |
| virtual a2dObject * | SetNonDynamic () |
| | Call to mark this object as non-dynamic (static/local/auto) More...
|
| |
| void | CheckReferences () |
| | Check zero reference count and delete if count is 0. More...
|
| |
|
a2dObject * | Clone (CloneOptions options, a2dRefMap *refs=NULL) const |
| | create an exact copy of this property
|
| |
|
| a2dObject (const a2dObject &other, CloneOptions options, a2dRefMap *refs) |
| |
| virtual wxString | GetName () const |
| | Returns the name of this object, if no name is given the internal id will be returned. More...
|
| |
| virtual void | SetName (const wxString &name) |
| | Creates the a2dStringProperty PROPID_Name. More...
|
| |
|
virtual bool | IsTemporary_DontSave () const |
| | Check if this is a temporary object, which should not be saved.
|
| |
| void | SaveAsDocument (a2dIOHandlerXmlSerOut &out) |
| | Save this object and all below as an XML document. More...
|
| |
| virtual void | Save (wxObject *parent, a2dIOHandlerXmlSerOut &out, a2dObjectList *towrite) |
| | write all needed to an XML type of file called the CVG format More...
|
| |
| void | LoadFromDocument (a2dIOHandlerXmlSerIn &parser) |
| | Load this object and all below from an XML document. More...
|
| |
| virtual void | Load (wxObject *parent, a2dIOHandlerXmlSerIn &parser) |
| | load object from CVG file More...
|
| |
| wxInt64 | GetUniqueSerializationId () const |
| | return a unique id for this object More...
|
| |
| virtual bool | AlwaysWriteSerializationId () const |
| | If true, always write an id. More...
|
| |
| virtual bool | LinkReference (a2dObject *other) |
| | link a reference in the object to the given value More...
|
| |
| virtual void | ResolveInform () |
| | inform an object that reference resolution was done More...
|
| |
|
void | Walker (wxObject *parent, a2dWalkerIOHandler &handler) |
| | This is used to recursively walk through an object tree.
|
| |
| void | SetCheck (bool check) |
| | general flag use at will. More...
|
| |
|
bool | GetCheck () const |
| | general flag use at will.
|
| |
| void | SetRelease (bool value) |
| | set release flag More...
|
| |
| bool | GetRelease () const |
| | get release flag More...
|
| |
| a2dAutoZeroPtr< a2dObject > ** | GetAutoZeroPtrList () |
| | return the list head pointer for autozero pointers to this object More...
|
| |
|
| DECLARE_PROPERTIES () |
| |
| a2dNamedProperty * | GetProperty (const a2dPropertyId *propertyId, a2dPropertyId::Flags flags=a2dPropertyId::flag_none) const |
| | get property on this object More...
|
| |
| void | SetProperty (a2dNamedProperty *propertyHolder, a2dPropertyId::SetFlags flags=a2dPropertyId::set_none) |
| | Set the property to the this object. More...
|
| |
| void | SetProperty (const a2dNamedProperty &propertyHolder, a2dPropertyId::SetFlags flags=a2dPropertyId::set_none) |
| | Set the property to the this object and if enabled, to all childs and object members. More...
|
| |
| virtual a2dNamedProperty * | FindProperty (const a2dPropertyId *id, a2dPropertyId::Flags flags=a2dPropertyId::flag_none) |
| | Find a dynamic property with given id in the property list. More...
|
| |
| virtual const a2dNamedProperty * | FindProperty (const a2dPropertyId *id, a2dPropertyId::Flags flags=a2dPropertyId::flag_none) const |
| | Find a dynamic property with given id in the property list. More...
|
| |
| virtual bool | HasProperty (const a2dPropertyId *id, const wxString &stringvalue=wxEmptyString) const |
| | Check if the object has a property with given id and string representation. More...
|
| |
| virtual void | OnPropertyChanged (const a2dPropertyId *id) |
| | This function is called after a property changed. More...
|
| |
| virtual bool | EditProperties (const a2dPropertyId *id, bool withUndo=true) |
| | edit properties of the object More...
|
| |
| void | TakeOverProperties (a2dObject *from, a2dPropertyIdList *listOfIds) |
| | Properties in the id list are taken from the given object, en set to this. More...
|
| |
| wxURI | GetURI () const |
| | quick way to get to PROPID_URI property More...
|
| |
| void | SetURI (const wxURI &url) |
| | quickly set a property PROPID_URI More...
|
| |
| const a2dNamedPropertyList & | GetPropertyList () const |
| | Get the Property List. More...
|
| |
|
bool | HasDynamicProperties () const |
| | test if there are dynamic properties in the m_propertylist
|
| |
| virtual bool | RemoveProperty (const a2dPropertyId *id, bool all=true) |
| | This function is called by a2dPropertyId to remove a property from the list. More...
|
| |
|
void | RemoveTemporaryProperties () |
| | remove all temporary properties
|
| |
| virtual bool | AddProperty (a2dNamedProperty *property) |
| | This function is called by a2dPropertyId to add a property to the list. More...
|
| |
The a2dToolContr is the base class for Tool controller classes.
A tool controller handles redirection of events from the a2dCanvas/a2dDrawingPart Events to the tools that are maintained by a controller. The controller is derived from wxEvtHandler, and there for can be (un)plugged into a a2dDrawingPart window. It then intercepts all events on the canvas window, and sents them to the active tool. The controller has a list of tools, only the active tool will react on the events. More then one tool may be active, in which case skipped events will be handled by later tools in the tool list. In the end skipped events in all tools are handled by a2dDrawingPart itself.
- See Also
- a2dBaseTool
-
a2dDrawingPart
-
a2dCanvas
Definition at line 87 of file tools.h.