QGIS API Documentation
2.4.0-Chugiak
|
#include <qgsvectorlayer.h>
Public Member Functions | |
QgsAttributeEditorRelation (QString name, const QString &relationId, QObject *parent) | |
QgsAttributeEditorRelation (QString name, const QgsRelation &relation, QObject *parent) | |
~QgsAttributeEditorRelation () | |
virtual QDomElement | toDomElement (QDomDocument &doc) const |
const QgsRelation & | relation () const |
bool | init (QgsRelationManager *relManager) |
Initializes the relation from the id. More... | |
Public Member Functions inherited from QgsAttributeEditorElement | |
QgsAttributeEditorElement (AttributeEditorType type, QString name, QObject *parent=NULL) | |
virtual | ~QgsAttributeEditorElement () |
QString | name () const |
AttributeEditorType | type () const |
Private Attributes | |
QString | mRelationId |
QgsRelation | mRelation |
Additional Inherited Members | |
Public Types inherited from QgsAttributeEditorElement | |
enum | AttributeEditorType { AeTypeContainer, AeTypeField, AeTypeRelation, AeTypeInvalid } |
Protected Attributes inherited from QgsAttributeEditorElement | |
AttributeEditorType | mType |
QString | mName |
Definition at line 135 of file qgsvectorlayer.h.
|
inline |
Definition at line 138 of file qgsvectorlayer.h.
|
inline |
Definition at line 142 of file qgsvectorlayer.h.
|
inline |
Definition at line 147 of file qgsvectorlayer.h.
bool QgsAttributeEditorRelation::init | ( | QgsRelationManager * | relManager | ) |
Initializes the relation from the id.
relManager | The relation manager to use for the initialization |
Definition at line 3727 of file qgsvectorlayer.cpp.
References QgsRelation::isValid(), mRelation, mRelationId, and QgsRelationManager::relation().
Referenced by QgsVectorLayer::onRelationsLoaded().
|
inline |
Definition at line 150 of file qgsvectorlayer.h.
Referenced by QgsAttributeForm::createWidgetFromDef().
|
virtual |
Implements QgsAttributeEditorElement.
Definition at line 3719 of file qgsvectorlayer.cpp.
References QgsRelation::id(), QgsAttributeEditorElement::mName, and mRelation.
|
private |
Definition at line 162 of file qgsvectorlayer.h.
Referenced by init(), and toDomElement().
|
private |
Definition at line 161 of file qgsvectorlayer.h.
Referenced by init().