16 #ifndef QGSRELATIONREFERENCEWIDGET_H 17 #define QGSRELATIONREFERENCEWIDGET_H 29 #include <QToolButton> 31 #include <QHBoxLayout> 32 #include <QStandardItemModel> 40 Q_PROPERTY(
bool openFormButtonVisible READ openFormButtonVisible WRITE setOpenFormButtonVisible )
57 void setRelation(
const QgsRelation& relation,
bool allowNullValue );
59 void setRelationEditable(
bool editable );
62 void setForeignKey(
const QVariant &value );
71 void setEmbedForm(
bool display );
75 void setReadOnlySelector(
bool readOnly );
79 void setAllowMapIdentification(
bool allowMapIdentification );
84 void setOrderByValue(
bool orderByValue );
86 void setFilterFields(
const QStringList& filterFields );
90 void setOpenFormButtonVisible(
bool openFormButtonVisible );
105 void setChainFilters(
bool chainFilters );
116 void mapIdentification();
119 void deleteForeignKey();
127 void foreignKeyChanged(
const QVariant& );
130 void highlightActionTriggered(
QAction* action );
131 void deleteHighlight();
132 void comboReferenceChanged(
int index );
133 void featureIdentified(
const QgsFeature& feature );
135 void mapToolDeactivated();
136 void filterChanged();
140 void updateAttributeEditorFrame(
const QgsFeature& feature );
149 int mReferencedFieldIdx;
150 int mReferencingFieldIdx;
172 bool mReadOnlySelector;
173 bool mAllowMapIdentification;
175 bool mOpenFormButtonVisible;
184 QAction* mHighlightFeatureAction;
185 QAction* mScaleHighlightFeatureAction;
186 QAction* mPanHighlightFeatureAction;
197 #endif // QGSRELATIONREFERENCEWIDGET_H
A groupbox that collapses/expands when toggled and can save its collapsed and checked states...
This class contains context information for attribute editor widgets.
A bar for displaying non-blocking messages to the user.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
A model backed by a QgsVectorLayerCache which is able to provide feature/attribute information to a Q...
Map canvas is a class for displaying all GIS data types on a canvas.
A class for highlight features on the map.
Represents a vector layer which manages a vector based data sets.