AbstractDigestDbView Class Reference

The AbstractDigestDbView class is an abstract base class for Digest Database (DigestDb) views. More...

#include <abstractdigestdbview.h>

Inheritance diagram for AbstractDigestDbView:

AbstractView MvcBase CategoryItemModel ConnectionDialog DiagramEditor DigestPrefsDialog GestureQueryModel GuiDbComponentDialog GuiDbComponentMainWindow GuiDbComponentWidget MDIDiagramWindow SplitCollectionDialog List of all members.

Public Member Functions

 AbstractDigestDbView (QObject *objectPtr)
DigestDbControllerdigestDbController () const
DigestDbModeldigestDbModel () const
const QSqlDatabase & database () const
virtual MvcModuleId_t moduleId () const

Static Public Member Functions

static MvcModuleId_t classModuleId ()

Protected Member Functions

virtual void dispatchEvent (VEvent *)
virtual void changeControllerEvent (VChangeControllerEvent *)
virtual void modelChangedEvent (VModelChangedEvent *)
virtual void resetEvent (VEvent *)
virtual void changeDigestDbControllerEvent (VChangeControllerEvent *)
virtual void digestDbModelChangedEvent (VModelChangedEvent *)
virtual void digestDbResetEvent (VEvent *)
virtual void classesEvent (VClassesEvent *)
virtual void collectionsEvent (VCollectionsEvent *)
virtual void experimentsEvent (VExperimentsEvent *)
virtual void gesturesEvent (VGesturesEvent *)
virtual void trainedRecogsEvent (VTrainedRecogsEvent *)
void postDigestDbEvent (CEvent *)

Detailed Description

The AbstractDigestDbView class is an abstract base class for Digest Database (DigestDb) views.


Constructor & Destructor Documentation

AbstractDigestDbView::AbstractDigestDbView ( QObject *  objectPtr  ) 


Member Function Documentation

DigestDbController * AbstractDigestDbView::digestDbController (  )  const

Convenience method.

Returns a cached guarded pointer that has been dynamically cast to DigestDbController* from AbstractController*.

See also AbstractView::controller().

DigestDbModel * AbstractDigestDbView::digestDbModel (  )  const

Convenience method.

Returns a cached guarded pointer that has been dynamically cast to DigestDbModel* from AbstractModel*.

See also AbstractView::model().

const QSqlDatabase & AbstractDigestDbView::database (  )  const

Convenience method.

Equivalent to:

static MvcModuleId_t AbstractDigestDbView::classModuleId (  )  [inline, static]

Returns MvcDigestDb::id().

Reimplemented from MvcBase.

virtual MvcModuleId_t AbstractDigestDbView::moduleId (  )  const [inline, virtual]

Returns classModuleId().

Reimplemented from MvcBase.

void AbstractDigestDbView::dispatchEvent ( VEvent event  )  [protected, virtual]

The view's event dispatcher.

Asserts that the event is non-null.

Warning! It is assumed that the events have their correct type set (as it uses static casts).

Reimplemented from AbstractView.

void AbstractDigestDbView::changeControllerEvent ( VChangeControllerEvent event  )  [protected, virtual]

Re-implemented, as to also have the pointer returned by digestDbController() updated.

Asserts that the event is non-null.

Reimplemented from AbstractView.

void AbstractDigestDbView::modelChangedEvent ( VModelChangedEvent event  )  [protected, virtual]

Re-implemented, as to also have the pointer returned by digestDbModel() updated.

Asserts that the event is non-null.

Reimplemented from AbstractView.

void AbstractDigestDbView::resetEvent ( VEvent  )  [protected, virtual]

A view receives this event when the controller() needs to reset / synchronise the view's knowledge (and possibly display) of the model().

When the view receives a VModelChangedEvent, a reset event will automatically be posted to the view by the modelChangedEvent() handler if the model is non-null.

This implementation does nothing.

It should be re-implemented it to suit the specific view sub-classs.

Reimplemented from AbstractView.

Reimplemented in CategoryItemModel, GestureQueryModel, ExperimentAssistant, ExperimentBrowser, GestureBrowser, SplitCollectionDialog, RecogniserBrowser, RecogniserTestPad, SqlBrowser, and TrainingAssistant.

void AbstractDigestDbView::changeDigestDbControllerEvent ( VChangeControllerEvent  )  [protected, virtual]

Conveniance event handler.

Warning: It will be called in addition to changeControllerEvent(). It's useful when mixing multiple views together.

This implementation does nothing.

Reimplemented in MDIDiagramWindow.

void AbstractDigestDbView::digestDbModelChangedEvent ( VModelChangedEvent  )  [protected, virtual]

Conveniance event handler.

Warning: It will be called in addition to modelChangedEvent(). It's useful when mixing multiple views together.

This implementation does nothing.

void AbstractDigestDbView::digestDbResetEvent ( VEvent  )  [protected, virtual]

Conveniance event handler.

Warning: It will be called in addition to resetEvent(). It's useful when mixing multiple views together.

This implementation does nothing.

Reimplemented in DiagramEditor, DigestPrefsDialog, MDIDiagramWindow, and ConnectionDialog.

virtual void AbstractDigestDbView::classesEvent ( VClassesEvent  )  [inline, protected, virtual]

Reimplemented in CategoryItemModel, GestureBrowser, and SqlBrowser.

virtual void AbstractDigestDbView::collectionsEvent ( VCollectionsEvent  )  [inline, protected, virtual]

Reimplemented in CategoryItemModel, GestureBrowser, SplitCollectionDialog, and SqlBrowser.

virtual void AbstractDigestDbView::experimentsEvent ( VExperimentsEvent  )  [inline, protected, virtual]

Reimplemented in ExperimentAssistant, ExperimentBrowser, and SqlBrowser.

virtual void AbstractDigestDbView::gesturesEvent ( VGesturesEvent  )  [inline, protected, virtual]

Reimplemented in GestureQueryModel, GestureBrowser, and SqlBrowser.

virtual void AbstractDigestDbView::trainedRecogsEvent ( VTrainedRecogsEvent  )  [inline, protected, virtual]

Reimplemented in DiagramEditor, DigestPrefsDialog, RecogniserBrowser, RecogniserTestPad, SqlBrowser, and TrainingAssistant.

void AbstractDigestDbView::postDigestDbEvent ( CEvent event  )  [protected]

Convenience method.

Equivalent to:

 #include <QCoreApplication>
 #include "MvcDigestDb/digestDbcontroller.h"
 QCoreApplication::postEvent( digestDbController(), event );


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