VEvent Class Reference

#include <viewevents.h>

Inheritance diagram for VEvent:

MvcEvent VChangeControllerEvent VDigestDbEvent VDocEvent VModelChangedEvent VSettingsEvent VClassesEvent VCollectionsEvent VExperimentsEvent VGesturesEvent VTrainedRecogsEvent VAttributeDocEvent VFilenameChangedEvent VModifiedStateChangedEvent VRenamedEvent VSettingsKeyRemovedEvent VSettingsValueChangedEvent List of all members.

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
MvcBasesender () const

Static Public Member Functions

static DestType classDestType ()

Detailed Description

Base class for View events in the Model-View-Controller event system.

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.


Member Enumeration Documentation

enum VEvent::Type

Enumerator:
ChangeController 
ModelChanged 
Reset 
User 

Reimplemented in VAttributeDocEvent, VDocEvent, VElementDocEvent, VDiagramEvent, VDigestDbEvent, and VSettingsEvent.


Constructor & Destructor Documentation

VEvent::VEvent ( Type  type,
MvcBase sender 
) [inline]


Member Function Documentation

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]


The documentation for this class was generated from the following file:
Generated on Mon Jul 30 09:46:53 2007 for Digest by  doxygen 1.5.2