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 );
106 void setChainFilters(
bool chainFilters );
117 void mapIdentification();
120 void deleteForeignKey();
131 void highlightActionTriggered(
QAction* action );
132 void deleteHighlight();
133 void comboReferenceChanged(
int index );
134 void featureIdentified(
const QgsFeature& feature );
136 void mapToolDeactivated();
137 void filterChanged();
141 void updateAttributeEditorFrame(
const QgsFeature& feature );
171 bool mReadOnlySelector;
172 bool mAllowMapIdentification;
174 bool mOpenFormButtonVisible;
183 QAction* mHighlightFeatureAction;
184 QAction* mScaleHighlightFeatureAction;
185 QAction* mPanHighlightFeatureAction;
196 #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.