16 #ifndef QGSRELATIONEDITOR_H
17 #define QGSRELATIONEDITOR_H
20 #include <QToolButton>
21 #include <QButtonGroup>
22 #include <QGridLayout>
88 if ( qobject_cast<QgsRelationEditorWidget *>( sipCpp ) )
89 sipType = sipType_QgsRelationEditorWidget;
99 Q_PROPERTY(
bool showLabel READ showLabel WRITE setShowLabel )
133 void setFeature(
const QgsFeature &feature,
bool update =
true );
159 bool showLabel()
const;
166 void setShowLabel(
bool showLabel );
173 bool showLinkButton()
const;
180 void setShowLinkButton(
bool showLinkButton );
187 bool showUnlinkButton()
const;
194 void setShowUnlinkButton(
bool showUnlinkButton );
201 void setShowSaveChildEditsButton(
bool showChildEdits );
208 bool showSaveChildEditsButton()
const;
224 void parentFormValueChanged(
const QString &attribute,
const QVariant &newValue );
228 void updateButtons();
231 void addFeatureGeometry();
232 void duplicateFeature();
235 void deleteSelectedFeatures();
237 void unlinkSelectedFeatures();
238 void zoomToSelectedFeatures();
240 void toggleEditing(
bool state );
241 void onCollapsedStateChanged(
bool collapsed );
243 void mapToolDeactivated();
244 void onKeyPressed( QKeyEvent *e );
245 void onDigitizingCompleted(
const QgsFeature &feature );
246 void onLinkFeatureDlgAccepted();
256 QPointer<QgsMessageBarItem> mMessageBarItem;
264 QToolButton *mToggleEditingButton =
nullptr;
265 QToolButton *mSaveEditsButton =
nullptr;
266 QToolButton *mAddFeatureButton =
nullptr;
267 QToolButton *mDuplicateFeatureButton =
nullptr;
268 QToolButton *mDeleteFeatureButton =
nullptr;
269 QToolButton *mLinkFeatureButton =
nullptr;
270 QToolButton *mUnlinkFeatureButton =
nullptr;
271 QToolButton *mZoomToFeatureButton =
nullptr;
272 QToolButton *mFormViewButton =
nullptr;
273 QToolButton *mTableViewButton =
nullptr;
274 QToolButton *mAddFeatureGeometryButton =
nullptr;
275 QGridLayout *mRelationLayout =
nullptr;
277 QButtonGroup *mViewModeButtonGroup =
nullptr;
279 bool mShowLabel =
true;
280 bool mVisible =
false;
297 #endif // QGSRELATIONEDITOR_H