#include <attributedoccontroller.h>
Inheritance diagram for AttributeDocController:

Public Member Functions | |
| AttributeDocController (QObject *parent=0) | |
| AttributeDocController (AbstractModel *doc, QObject *parent=0) | |
| AttributeDoc * | attributeDoc () const |
Protected Member Functions | |
| virtual void | dispatchEvent (CEvent *) |
| virtual void | changeModelEvent (CChangeModelEvent *) |
| virtual void | attributesSetValuesEvent (CAttributesSetValuesEvent *) |
| virtual void | attributesRemoveEvent (CAttributesRemoveEvent *) |
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.
| 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.
| 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
1.5.2