16 #ifndef QGSRELATIONREFERENCEWIDGET_H 17 #define QGSRELATIONREFERENCEWIDGET_H 29 #include <QToolButton> 31 #include <QHBoxLayout> 32 #include <QStandardItemModel> 43 Q_PROPERTY(
bool openFormButtonVisible READ openFormButtonVisible WRITE setOpenFormButtonVisible )
60 void setRelation(
const QgsRelation& relation,
bool allowNullValue );
62 void setRelationEditable(
bool editable );
65 void setForeignKey(
const QVariant &value );
74 void setEmbedForm(
bool display );
78 void setReadOnlySelector(
bool readOnly );
82 void setAllowMapIdentification(
bool allowMapIdentification );
87 void setOrderByValue(
bool orderByValue );
89 void setFilterFields(
const QStringList& filterFields );
93 void setOpenFormButtonVisible(
bool openFormButtonVisible );
108 void setChainFilters(
bool chainFilters );
117 void showIndeterminateState();
124 bool allowAddFeatures()
const;
131 void setAllowAddFeatures(
bool allowAddFeatures );
138 void mapIdentification();
141 void deleteForeignKey();
149 void foreignKeyChanged(
const QVariant& );
152 void highlightActionTriggered(
QAction* action );
153 void deleteHighlight();
154 void comboReferenceChanged(
int index );
155 void featureIdentified(
const QgsFeature& feature );
157 void mapToolDeactivated();
158 void filterChanged();
160 void editTextUpdated(
const QString &text );
164 void updateAttributeEditorFrame(
const QgsFeature& feature );
165 void disableChainedComboBoxes(
const QComboBox *scb );
166 void updateAddEntryButton();
175 int mReferencedFieldIdx;
176 int mReferencingFieldIdx;
198 bool mReadOnlySelector;
199 bool mAllowMapIdentification;
201 bool mOpenFormButtonVisible;
203 bool mAllowAddFeatures;
212 QAction* mHighlightFeatureAction;
213 QAction* mScaleHighlightFeatureAction;
214 QAction* mPanHighlightFeatureAction;
224 friend class TestQgsRelationReferenceWidget;
227 #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.