QGIS API Documentation  2.2.0-Valmiera
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
QgsAttributeEditorRelation Class Reference

#include <qgsvectorlayer.h>

Inheritance diagram for QgsAttributeEditorRelation:
Inheritance graph
[legend]
Collaboration diagram for QgsAttributeEditorRelation:
Collaboration graph
[legend]

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 QgsRelationrelation () const
bool init (QgsRelationManager *relManager)
 Initializes the relation from the id.
- 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

Detailed Description

Note
Added in 2.1

Definition at line 131 of file qgsvectorlayer.h.

Constructor & Destructor Documentation

QgsAttributeEditorRelation::QgsAttributeEditorRelation ( QString  name,
const QString &  relationId,
QObject *  parent 
)
inline

Definition at line 134 of file qgsvectorlayer.h.

QgsAttributeEditorRelation::QgsAttributeEditorRelation ( QString  name,
const QgsRelation relation,
QObject *  parent 
)
inline

Definition at line 138 of file qgsvectorlayer.h.

QgsAttributeEditorRelation::~QgsAttributeEditorRelation ( )
inline

Definition at line 143 of file qgsvectorlayer.h.

Member Function Documentation

bool QgsAttributeEditorRelation::init ( QgsRelationManager relManager)

Initializes the relation from the id.

Parameters
relManagerThe relation manager to use for the initialization
Returns
true if the relation was found in the relationmanager

Definition at line 4480 of file qgsvectorlayer.cpp.

References QgsRelation::isValid(), mRelation, mRelationId, and QgsRelationManager::relation().

Referenced by QgsVectorLayer::onRelationsLoaded().

const QgsRelation& QgsAttributeEditorRelation::relation ( ) const
inline

Definition at line 146 of file qgsvectorlayer.h.

Referenced by QgsAttributeEditor::createWidgetFromDef().

QDomElement QgsAttributeEditorRelation::toDomElement ( QDomDocument &  doc) const
virtual

Member Data Documentation

QgsRelation QgsAttributeEditorRelation::mRelation
private

Definition at line 158 of file qgsvectorlayer.h.

Referenced by init(), and toDomElement().

QString QgsAttributeEditorRelation::mRelationId
private

Definition at line 157 of file qgsvectorlayer.h.

Referenced by init().


The documentation for this class was generated from the following files: