#include <attributedoc.h>
Inheritance diagram for AttributeDoc:

Public Member Functions | |
| AttributeDoc (QObject *parent) | |
| AttributeDoc (const QString &name, QObject *parent) | |
| AttributeDocController * | attributeDocController () const |
| QHash< int, QVariant > | attributes () const |
| QVariant | attributeValue (int type) const |
| bool | containsAttribute (int type) const |
Protected Member Functions | |
| virtual void | dispatchEvent (MEvent *) |
| virtual void | changeControllerEvent (MChangeControllerEvent *) |
| virtual void | attributesSetValuesEvent (MAttributesSetValuesEvent *) |
| virtual void | attributesRemoveEvent (MAttributesRemoveEvent *) |
| AttributeDoc::AttributeDoc | ( | QObject * | parent | ) |
Default constructor.
| AttributeDoc::AttributeDoc | ( | const QString & | name, | |
| QObject * | parent | |||
| ) |
Convenience constructor.
| AttributeDocController * AttributeDoc::attributeDocController | ( | ) | const |
Convenience method.
Returns a cached guarded pointer that has been dynamically cast to AttributeDocController* from AbstractController*.
See also AbstractModel::controller().
| QHash< int, QVariant > AttributeDoc::attributes | ( | ) | const |
Note: This intentionally does not return a const ref, as to ensure thread safety. However, Qt's implicit sharing should help to maintain performance.
Note: This method is thread-safe.
| QVariant AttributeDoc::attributeValue | ( | int | type | ) | const |
Note: This intentionally does not return a const ref, as to ensure thread safety. However, Qt's implicit sharing should help to maintain performance.
Note: This method is thread-safe.
| bool AttributeDoc::containsAttribute | ( | int | type | ) | const |
Note: This method is thread-safe.
| void AttributeDoc::dispatchEvent | ( | MEvent * | event | ) | [protected, virtual] |
The model's 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 Doc.
Reimplemented in ElementDoc.
| void AttributeDoc::changeControllerEvent | ( | MChangeControllerEvent * | event | ) | [protected, virtual] |
Re-implemented, as to also have the pointer returned by attributeDocController() updated.
Asserts that the event is non-null.
Reimplemented from Doc.
Reimplemented in ElementDoc, and Diagram.
| void AttributeDoc::attributesSetValuesEvent | ( | MAttributesSetValuesEvent * | event | ) | [protected, virtual] |
Asserts that the event is non-null.
Note: This method is thread-safe.
| void AttributeDoc::attributesRemoveEvent | ( | MAttributesRemoveEvent * | event | ) | [protected, virtual] |
Asserts that the event is non-null.
Note: This method is thread-safe.
1.5.2