#include <qgsrelationreferencewidget.h>
Public Slots |
void | openForm () |
| open the form of the related feature in a new dialog
|
void | mapIdentification () |
| activate the map tool to select a new related feature on the map
|
void | deleteForeignKey () |
| unset the currently related feature
|
Protected Member Functions |
virtual void | showEvent (QShowEvent *e) |
void | init () |
Member Enumeration Documentation
Constructor & Destructor Documentation
QgsRelationReferenceWidget::QgsRelationReferenceWidget |
( |
QWidget * |
parent | ) |
|
|
explicit |
QgsRelationReferenceWidget::~QgsRelationReferenceWidget |
( |
| ) |
|
Member Function Documentation
bool QgsRelationReferenceWidget::allowMapIdentification |
( |
| ) |
|
|
inline |
determines if the widge offers the possibility to select the related feature on the map (using a dedicated map tool)
void QgsRelationReferenceWidget::deleteForeignKey |
( |
| ) |
|
|
slot |
unset the currently related feature
bool QgsRelationReferenceWidget::embedForm |
( |
| ) |
|
|
inline |
determines if the form of the related feature will be shown
QVariant QgsRelationReferenceWidget::foreignKey |
( |
| ) |
|
returns the related feature foreign key
void QgsRelationReferenceWidget::foreignKeyChanged |
( |
QVariant |
| ) |
|
|
signal |
void QgsRelationReferenceWidget::init |
( |
| ) |
|
|
protected |
void QgsRelationReferenceWidget::mapIdentification |
( |
| ) |
|
|
slot |
activate the map tool to select a new related feature on the map
void QgsRelationReferenceWidget::openForm |
( |
| ) |
|
|
slot |
open the form of the related feature in a new dialog
bool QgsRelationReferenceWidget::openFormButtonVisible |
( |
| ) |
|
|
inline |
determines the open form button is visible in the widget
bool QgsRelationReferenceWidget::readOnlySelector |
( |
| ) |
|
|
inline |
determines if the foreign key is shown in a combox box or a read-only line edit
QgsFeature QgsRelationReferenceWidget::referencedFeature |
( |
| ) |
|
return the related feature (from the referenced layer) if no feature is related, it returns an invalid feature
void QgsRelationReferenceWidget::setAllowMapIdentification |
( |
bool |
allowMapIdentification | ) |
|
void QgsRelationReferenceWidget::setEmbedForm |
( |
bool |
display | ) |
|
void QgsRelationReferenceWidget::setForeignKey |
( |
const QVariant & |
value | ) |
|
this sets the related feature using from the foreign key
void QgsRelationReferenceWidget::setOpenFormButtonVisible |
( |
bool |
openFormButtonVisible | ) |
|
void QgsRelationReferenceWidget::setReadOnlySelector |
( |
bool |
readOnly | ) |
|
void QgsRelationReferenceWidget::setRelation |
( |
QgsRelation |
relation, |
|
|
bool |
allowNullValue |
|
) |
| |
void QgsRelationReferenceWidget::setRelationEditable |
( |
bool |
editable | ) |
|
void QgsRelationReferenceWidget::showEvent |
( |
QShowEvent * |
e | ) |
|
|
protectedvirtual |
Property Documentation
bool QgsRelationReferenceWidget::openFormButtonVisible |
|
readwrite |
The documentation for this class was generated from the following files: