|
wxArt2D
|
see a2dComEvent More...
#include <gen.h>


Public Member Functions | |
| a2dComEvent (wxObject *sender, a2dSignal id) | |
| for sending just an event id, m_property is not set | |
| a2dComEvent (a2dObject *sender, const a2dPropertyId *id, a2dSignal=sm_changedProperty) | |
| sent a property id ( in order to get property on sender object ) More... | |
| a2dComEvent (wxObject *sender, a2dNamedProperty *property, a2dSignal id=sm_changedProperty, bool ownProp=false) | |
| sent a property More... | |
| a2dComEvent (wxObject *sender, const a2dNamedProperty &property, a2dSignal eventid=sm_changedProperty) | |
| sent a property by reference More... | |
| a2dComEvent (wxObject *sender, a2dObject *refObject, a2dSignal id=sm_changedRefObject) | |
| sent a property generated from a a2dObject. More... | |
| a2dComEvent (wxObject *sender, const a2dPropertyIdRefObject *propId, a2dObject *refObject, a2dSignal id=sm_changedProperty) | |
| sent a property id ( in order to get property on sender object ) More... | |
| a2dComEvent (wxObject *sender, const a2dPropertyIdBool *propId, bool propertyValue, a2dSignal id=sm_changedProperty) | |
| sent a property generated from a bool. | |
| a2dComEvent (wxObject *sender, const a2dPropertyIdUint16 *propId, wxUint16 propertyValue, a2dSignal id=sm_changedProperty) | |
| sent a property generated from a wxUint16. | |
| a2dComEvent (wxObject *sender, const a2dPropertyIdInt32 *propId, wxInt32 propertyValue, a2dSignal id=sm_changedProperty) | |
| sent a property generated from a wxInt32. | |
| a2dComEvent (wxObject *sender, const a2dPropertyIdDouble *propId, double propertyValue, a2dSignal id=sm_changedProperty) | |
| sent a property generated from a double. | |
| a2dComEvent (wxObject *sender, const a2dPropertyIdString *propId, const wxString &propertyValue, a2dSignal id=sm_changedProperty) | |
| sent a property generated from a wxString. | |
| a2dComEvent (wxObject *sender, bool propertyValue, a2dSignal id) | |
| sent a property generated from a bool. | |
| a2dComEvent (wxObject *sender, wxInt16 propertyValue, a2dSignal id) | |
| sent a property generated from a wxIint16. | |
| a2dComEvent (wxObject *sender, wxUint16 propertyValue, a2dSignal id) | |
| sent a property generated from a wxUint16. | |
| a2dComEvent (wxObject *sender, wxInt32 propertyValue, a2dSignal id) | |
| sent a property generated from a wxInt32. | |
| a2dComEvent (wxObject *sender, wxUint32 propertyValue, a2dSignal id) | |
| sent a property generated from a wxUint32. | |
| a2dComEvent (wxObject *sender, double propertyValue, a2dSignal id) | |
| sent a property generated from a double. | |
| a2dComEvent (wxObject *sender, const wxString &propertyValue, a2dSignal id) | |
| sent a property generated from a wxString. | |
| a2dComEvent (const a2dComEvent &other) | |
| wxEvent * | Clone (void) const |
| a2dNamedProperty * | GetProperty () |
| const a2dPropertyId * | GetPropertyId () const |
| a2dSignal | GetEventComIdReturn () |
| after proecssin the event, on return an id can be set to communicate back to sender. | |
Static Public Attributes | |
| static const a2dSignal | sm_changedProperty = wxNewId() |
| static const a2dSignal | sm_changedRefObject = wxNewId() |
| static const a2dSignal | sm_non = wxNewId() |
Friends | |
| class | a2dSmrtPtrBase |
see a2dComEvent
special event for communicating between a2dObject's and GUI objects and Command processors.
Used for communicating and distributing events which change e.g. a2dObject's
The information that is sent around is stored in a a2dNamedProperty.
To intercept this event ( when sent to an object ), use the next event table entries:
event id's for Change events used for specifying which type of information is communicated via a a2dComEvent event.
The idea is to add static members like this to a class you wnat to sent an event from. Like in a2dCanvasObject we have in the header file:
and in the cpp file do initilize the static member:
and in the cpp file do sent an event from member function:
| a2dComEvent::a2dComEvent | ( | a2dObject * | sender, |
| const a2dPropertyId * | id, | ||
| a2dSignal | id = sm_changedProperty |
||
| ) |
| a2dComEvent::a2dComEvent | ( | wxObject * | sender, |
| a2dNamedProperty * | property, | ||
| a2dSignal | id = sm_changedProperty, |
||
| bool | ownProp = false |
||
| ) |
| a2dComEvent::a2dComEvent | ( | wxObject * | sender, |
| const a2dNamedProperty & | property, | ||
| a2dSignal | eventid = sm_changedProperty |
||
| ) |
| a2dComEvent::a2dComEvent | ( | wxObject * | sender, |
| a2dObject * | refObject, | ||
| a2dSignal | id = sm_changedRefObject |
||
| ) |
| a2dComEvent::a2dComEvent | ( | wxObject * | sender, |
| const a2dPropertyIdRefObject * | propId, | ||
| a2dObject * | refObject, | ||
| a2dSignal | id = sm_changedProperty |
||
| ) |
sent a property id ( in order to get property on sender object )
| sender | the object which did sent this event. |
| id | id of the property in the sender object |
| eventid | eventid is to further specify the nature of the event.sent a property generated from a a2dObject. |