AbstractSettingsView Class Reference

#include <abstractsettingsview.h>

Inheritance diagram for AbstractSettingsView:

AbstractView MvcBase ConnectionDialog DiagramEditor DigestPrefsDialog MDIDiagramWindow List of all members.

Public Member Functions

 AbstractSettingsView (QObject *objectPtr)
SettingsControllersettingsController () const
SettingsModelsettingsModel () 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 changeSettingsControllerEvent (VChangeControllerEvent *)
virtual void settingsModelChangedEvent (VModelChangedEvent *)
virtual void settingsResetEvent (VEvent *)
virtual void settingsValueChangedEvent (VSettingsValueChangedEvent *)
virtual void settingsKeyRemovedEvent (VSettingsKeyRemovedEvent *)
void postSettingsEvent (CEvent *event)

Constructor & Destructor Documentation

AbstractSettingsView::AbstractSettingsView ( QObject *  objectPtr  ) 


Member Function Documentation

SettingsController * AbstractSettingsView::settingsController (  )  const

Convenience method.

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

See also AbstractView::controller().

SettingsModel * AbstractSettingsView::settingsModel (  )  const

Convenience method.

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

See also AbstractView::model().

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

Returns MvcSettings::id().

Reimplemented from MvcBase.

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

Returns classModuleId().

Reimplemented from MvcBase.

void AbstractSettingsView::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 AbstractSettingsView::changeControllerEvent ( VChangeControllerEvent event  )  [protected, virtual]

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

Asserts that the event is non-null.

Reimplemented from AbstractView.

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

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

Asserts that the event is non-null.

Reimplemented from AbstractView.

void AbstractSettingsView::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.

virtual void AbstractSettingsView::changeSettingsControllerEvent ( VChangeControllerEvent  )  [inline, 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.

virtual void AbstractSettingsView::settingsModelChangedEvent ( VModelChangedEvent  )  [inline, 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.

virtual void AbstractSettingsView::settingsResetEvent ( VEvent  )  [inline, 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 AbstractSettingsView::settingsValueChangedEvent ( VSettingsValueChangedEvent  )  [inline, protected, virtual]

Reimplemented in DiagramEditor.

virtual void AbstractSettingsView::settingsKeyRemovedEvent ( VSettingsKeyRemovedEvent  )  [inline, protected, virtual]

void AbstractSettingsView::postSettingsEvent ( CEvent event  )  [protected]

Convenience method.

Equivalent to:

 #include <QCoreApplication>
 #include "MvcSettings/settingscontroller.h"
 QCoreApplication::postEvent( settingsController(), 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