#include <event.hpp>
Inheritance diagram for CEvent:


Definition at line 85 of file event.hpp.
Public Types | |
| typedef const char * | TEventTypeInfo |
| typedef CRef< CEvent > | TEventObject |
| typedef Int4 | TEventID |
| typedef CEventHandler | TEventSender |
| typedef Int4 | TEventRefs |
| typedef std::type_info | TAttachmentTypeInfo |
| typedef EEventClass | TEventClass |
| enum | EEventClass { eEvent_Message, eEvent_Command, eEvent_CommandUpdate } |
| default event classes More... | |
| enum | EEventID { eEvent_LastID = -1, eEvent_InvalidID = -2, eEvent_MinClientID = 0 } |
| Predefining event IDs. More... | |
| enum | EOwnershipPolicy { eDelete, eRelease } |
Public Member Functions | |
| CEvent () | |
| default ctor | |
| CEvent (TEventID eid) | |
| create an event for a given event ID, with event class Unknown | |
| CEvent (TEventClass ecl, TEventID eid, TEventSender *sender=NULL) | |
| create an event for a specific event class and ID | |
| CEvent (TEventClass ecl, TEventID eid, IEventAttachment *att, EOwnershipPolicy policy, TEventSender *sender) | |
| create an event with all the bells and whistles | |
| virtual | ~CEvent (void) |
| virtual dtor | |
| const TEventRefs | GetRefs (void) const |
| void | AddRef (void) |
| const TEventID | GetID (void) const |
| Inline Implementation. | |
| const TEventClass | GetEventClass (void) const |
| const TEventSender * | GetSender (void) const |
| TEventTypeInfo | GetTypeInfo (void) |
| virtual void | SetAttachment (IEventAttachment *att, EOwnershipPolicy policy) |
| attach an object to the Event | |
| virtual IEventAttachment * | GetAttachment (void) |
| virtual bool | HasAttachment (void) const |
| bool | Visit (CEventHandler *handler) |
| Checks whether this event has been visited by the given handler. | |
Protected Attributes | |
| TEventClass | m_Class |
| TEventID | m_ID |
| Event class - to speed up avoiding extra dynamic casts. | |
| TEventSender * | m_Sender |
| Defines unique event identity within its C++ class and Event Class. | |
| auto_ptr< IEventAttachment > | m_Attachment |
| pointer to the class that sent this event | |
| EOwnershipPolicy | m_AttPolicy |
| set< CEventHandler * > | m_Visited |
| list of handler who have seen this event already | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
default event classes
|
|
|
Predefining event IDs.
|
|
|
|
|
|
default ctor
|
|
|
create an event for a given event ID, with event class Unknown
|
|
||||||||||||||||
|
create an event for a specific event class and ID
|
|
||||||||||||||||||||||||
|
create an event with all the bells and whistles
Definition at line 67 of file event.cpp. References SetAttachment(). |
|
|
virtual dtor
Definition at line 76 of file event.cpp. References eRelease, m_Attachment, m_AttPolicy, and auto_ptr< X >::release(). |
|
|
|
|
|
Definition at line 84 of file event.cpp. References auto_ptr< X >::get(), and m_Attachment. Referenced by CEventHandler::OnEvent(), and CTextView::x_OnWidgetPositionChanged(). |
|
|
|
|
|
Definition at line 101 of file event.cpp. References auto_ptr< X >::get(), and m_Attachment. |
|
||||||||||||
|
attach an object to the Event
Definition at line 90 of file event.cpp. References eRelease, m_Attachment, m_AttPolicy, auto_ptr< X >::release(), and auto_ptr< X >::reset(). Referenced by CEvent(), CSeqTextWidget::OnDeleteFeature(), CSeqTextWidget::OnEditFeature(), and CTextItemPanel::x_TextPosChanged(). |
|
|
Checks whether this event has been visited by the given handler. Returns "true" if this is the first visit. Definition at line 107 of file event.cpp. References set< Key, Compare >::end(), set< Key, Compare >::find(), handler(), set< Key, Compare >::insert(), and m_Visited. Referenced by CEventHandler::Dispatch(), and CEventHandler::OnEvent(). |
|
|
pointer to the class that sent this event
Definition at line 155 of file event.hpp. Referenced by GetAttachment(), HasAttachment(), SetAttachment(), and ~CEvent(). |
|
|
Definition at line 156 of file event.hpp. Referenced by SetAttachment(), and ~CEvent(). |
|
|
Definition at line 151 of file event.hpp. Referenced by GetEventClass(). |
|
|
Event class - to speed up avoiding extra dynamic casts.
Definition at line 152 of file event.hpp. Referenced by CTestEvent::CTestEvent(), and GetID(). |
|
|
Defines unique event identity within its C++ class and Event Class.
Definition at line 153 of file event.hpp. Referenced by CSelectionEvent::CSelectionEvent(), and GetSender(). |
|
|
list of handler who have seen this event already
Definition at line 159 of file event.hpp. Referenced by Visit(). |
1.4.6
Modified on Mon Dec 07 16:23:03 2009 by modify_doxy.py rev. 173732