QGIS API Documentation  2.9.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
QgsAttributeEditorRelation Class Reference

#include <qgsvectorlayer.h>

Inheritance diagram for QgsAttributeEditorRelation:
Inheritance graph
[legend]

Public Member Functions

 QgsAttributeEditorRelation (QString name, const QString &relationId, QObject *parent)
 
 QgsAttributeEditorRelation (QString name, const QgsRelation &relation, QObject *parent)
 
 ~QgsAttributeEditorRelation ()
 
bool init (QgsRelationManager *relManager)
 Initializes the relation from the id. More...
 
const QgsRelationrelation () const
 
virtual QDomElement toDomElement (QDomDocument &doc) const override
 
- Public Member Functions inherited from QgsAttributeEditorElement
 QgsAttributeEditorElement (AttributeEditorType type, QString name, QObject *parent=NULL)
 
virtual ~QgsAttributeEditorElement ()
 
QString name () const
 
AttributeEditorType type () const
 

Additional Inherited Members

- Public Types inherited from QgsAttributeEditorElement
enum  AttributeEditorType { AeTypeContainer, AeTypeField, AeTypeRelation, AeTypeInvalid }
 
- Protected Attributes inherited from QgsAttributeEditorElement
QString mName
 
AttributeEditorType mType
 

Detailed Description

Note
Added in 2.1

Definition at line 133 of file qgsvectorlayer.h.

Constructor & Destructor Documentation

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

Definition at line 136 of file qgsvectorlayer.h.

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

Definition at line 140 of file qgsvectorlayer.h.

QgsAttributeEditorRelation::~QgsAttributeEditorRelation ( )
inline

Definition at line 145 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 3919 of file qgsvectorlayer.cpp.

const QgsRelation& QgsAttributeEditorRelation::relation ( ) const
inline

Definition at line 148 of file qgsvectorlayer.h.

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

Implements QgsAttributeEditorElement.

Definition at line 3911 of file qgsvectorlayer.cpp.


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