AttributeDocController Class Reference

The AttributeDocController class is responsible for controlling the communication between an AttributeDoc and its views. More...

#include <attributedoccontroller.h>

Inheritance diagram for AttributeDocController:

DocController AbstractController MvcBase ElementDocController DiagramController GuiDiagramController FsaDiagramController List of all members.

Public Member Functions

 AttributeDocController (QObject *parent=0)
 AttributeDocController (AbstractModel *doc, QObject *parent=0)
AttributeDocattributeDoc () const

Protected Member Functions

virtual void dispatchEvent (CEvent *)
virtual void changeModelEvent (CChangeModelEvent *)
virtual void attributesSetValuesEvent (CAttributesSetValuesEvent *)
virtual void attributesRemoveEvent (CAttributesRemoveEvent *)

Detailed Description

The AttributeDocController class is responsible for controlling the communication between an AttributeDoc and its views.

Note that the AttributeDoc's pointer is stored internally as a "guarded pointer". Hence, if the AttributeDoc is deleted, our reference to it will be automatically set back to NULL.


Constructor & Destructor Documentation

AttributeDocController::AttributeDocController ( QObject *  parent = 0  ) 

Constructs an element document controller with the given parent.

AttributeDocController::AttributeDocController ( AbstractModel doc,
QObject *  parent = 0 
)

Constructs an element document controller with the given parent and uses doc as its model.


Member Function Documentation

AttributeDoc * AttributeDocController::attributeDoc (  )  const

Convenience method.

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

See also AbstractController::model().

void AttributeDocController::dispatchEvent ( CEvent event  )  [protected, virtual]

The element doc controller event dispatcher.

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

Asserts that the event is non-null.

Reimplemented from DocController.

Reimplemented in ElementDocController, and DiagramController.

void AttributeDocController::changeModelEvent ( CChangeModelEvent event  )  [protected, virtual]

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

Asserts that the event is non-null.

Reimplemented from DocController.

Reimplemented in ElementDocController, and DiagramController.

void AttributeDocController::attributesSetValuesEvent ( CAttributesSetValuesEvent event  )  [protected, virtual]

Asserts that the event and the attributeDoc() are both non-null

void AttributeDocController::attributesRemoveEvent ( CAttributesRemoveEvent event  )  [protected, virtual]

Asserts that the event and the attributeDoc() are both non-null


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