#include <controllerevents.h>
Inheritance diagram for CEvent:

Public Types | |
| enum | Flag { NoFlags = 0x0, DontUpdateSender = 0x1, IsUndoEvent = 0x2, IsRedoEvent = 0x4 } |
| enum | Type { ChangeModel = MvcEvent::User, ViewAttach, ViewDetach, DetachAllViews, User = MvcEvent::User + 1000 } |
Public Member Functions | |
| Q_DECLARE_FLAGS (Flags, Flag) | |
| CEvent (Type type, QObject *sender=0, Flags flags=NoFlags) | |
| virtual DestType | destType () const |
| QObject * | sender () const |
| Flags | flags () const |
| bool | updateSender () const |
| bool | isUndoEvent () const |
| bool | isRedoEvent () const |
Static Public Member Functions | |
| static DestType | classDestType () |
Using and extending CEvent offers thread-safe event queuing (using postEvent) and minial coupling.
| enum CEvent::Flag |
| enum CEvent::Type |
Reimplemented in CAttributeDocEvent, CDocEvent, CElementDocEvent, CDiagramEvent, CDigestDbEvent, and CSettingsEvent.
| CEvent::CEvent | ( | Type | type, | |
| QObject * | sender = 0, |
|||
| Flags | flags = NoFlags | |||
| ) | [inline] |
| CEvent::Q_DECLARE_FLAGS | ( | Flags | , | |
| Flag | ||||
| ) |
| static DestType CEvent::classDestType | ( | ) | [inline, static] |
Returns the desination type for this event, which is MvcEvent::Controller.
Reimplemented from MvcEvent.
| virtual DestType CEvent::destType | ( | ) | const [inline, virtual] |
Returns classDestType().
Reimplemented from MvcEvent.
| QObject* CEvent::sender | ( | ) | const [inline] |
| Flags CEvent::flags | ( | ) | const [inline] |
| bool CEvent::updateSender | ( | ) | const [inline] |
| bool CEvent::isUndoEvent | ( | ) | const [inline] |
| bool CEvent::isRedoEvent | ( | ) | const [inline] |
1.5.2