#include <viewevents.h>
Inheritance diagram for VEvent:

Public Types | |
| enum | Type { ChangeController = MvcEvent::User, ModelChanged, Reset, User = MvcEvent::User + 1000 } |
Public Member Functions | |
| VEvent (Type type, MvcBase *sender) | |
| virtual DestType | destType () const |
| MvcBase * | sender () const |
Static Public Member Functions | |
| static DestType | classDestType () |
Using and extending VEvent offers thread-safe event queuing (using postEvent) and minial coupling.
The sender() facility becomes useful when a view has multiple controllers speaking to it. For example, an AbstractDiagramView is combined with an AbstractSettingsView. In this case, the events would need to be distributed to the correct dispatchEvent() method, based on the sender. The sender is of type MvcBase*, as not only do controllers need to post events to views, but views needs to be able to post events back to themselves.
| enum VEvent::Type |
Reimplemented in VAttributeDocEvent, VDocEvent, VElementDocEvent, VDiagramEvent, VDigestDbEvent, and VSettingsEvent.
| static DestType VEvent::classDestType | ( | ) | [inline, static] |
Returns the desination type for this event, which is MvcEvent::View.
Reimplemented from MvcEvent.
| virtual DestType VEvent::destType | ( | ) | const [inline, virtual] |
Returns classDestType().
Reimplemented from MvcEvent.
| MvcBase* VEvent::sender | ( | ) | const [inline] |
1.5.2