AbstractDiagramView Class Reference

#include <abstractdiagramview.h>

Inheritance diagram for AbstractDiagramView:

AbstractElementDocView AbstractAttributeDocView AbstractDocView AbstractView MvcBase DiagramEditor ElementInspector MDIDiagramWindow List of all members.

Public Member Functions

 AbstractDiagramView (QObject *objectPtr)
DiagramControllerdiagramController () const
Diagramdiagram () 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 changeDiagramControllerEvent (VChangeControllerEvent *)
virtual void diagramModelChangedEvent (VModelChangedEvent *)
virtual void diagramResetEvent (VEvent *)
virtual void controlPointInsertedEvent (VControlPointInsertedEvent *)
virtual void controlPointRemovedEvent (VControlPointRemovedEvent *)
virtual void controlPointMovedEvent (VControlPointMovedEvent *)
virtual void elementSelectionChangedEvent (VElementSelectionChangedEvent *)
void postDiagramEvent (CEvent *event)

Constructor & Destructor Documentation

AbstractDiagramView::AbstractDiagramView ( QObject *  objectPtr  ) 


Member Function Documentation

DiagramController * AbstractDiagramView::diagramController (  )  const

Convenience method.

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

See also AbstractView::controller().

Diagram * AbstractDiagramView::diagram (  )  const

Convenience method.

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

See also AbstractView::model().

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

Returns MvcDiagram::id().

Reimplemented from MvcBase.

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

Returns classModuleId().

Reimplemented from MvcBase.

void AbstractDiagramView::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 AbstractElementDocView.

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

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

Asserts that the event is non-null.

Reimplemented from AbstractElementDocView.

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

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

Asserts that the event is non-null.

Reimplemented from AbstractElementDocView.

void AbstractDiagramView::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 AbstractDiagramView::changeDiagramControllerEvent ( 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 AbstractDiagramView::diagramModelChangedEvent ( 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 AbstractDiagramView::diagramResetEvent ( 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, and MDIDiagramWindow.

virtual void AbstractDiagramView::controlPointInsertedEvent ( VControlPointInsertedEvent  )  [inline, protected, virtual]

virtual void AbstractDiagramView::controlPointRemovedEvent ( VControlPointRemovedEvent  )  [inline, protected, virtual]

virtual void AbstractDiagramView::controlPointMovedEvent ( VControlPointMovedEvent  )  [inline, protected, virtual]

virtual void AbstractDiagramView::elementSelectionChangedEvent ( VElementSelectionChangedEvent  )  [inline, protected, virtual]

Reimplemented in DiagramEditor, and ElementInspector.

void AbstractDiagramView::postDiagramEvent ( CEvent event  )  [protected]

Convenience method.

Equivalent to:

 #include <QCoreApplication>
 #include "MvcDiagram/diagramcontroller.h"
 QCoreApplication::postEvent( diagramController(), 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