16 #ifndef QGSRELATIONEDITOR_H 17 #define QGSRELATIONEDITOR_H 20 #include <QToolButton> 21 #include <QButtonGroup> 22 #include <QGridLayout> 53 if ( qobject_cast<QgsRelationEditorWidget *>( sipCpp ) )
54 sipType = sipType_QgsRelationEditorWidget;
64 Q_PROPERTY(
bool showLabel READ showLabel WRITE setShowLabel )
107 bool showLabel()
const;
114 void setShowLabel(
bool showLabel );
121 bool showLinkButton()
const;
128 void setShowLinkButton(
bool showLinkButton );
135 bool showUnlinkButton()
const;
142 void setShowUnlinkButton(
bool showUnlinkButton );
145 void setViewMode(
int mode ) {setViewMode( static_cast<QgsDualView::ViewMode>( mode ) );}
146 void updateButtons();
149 void duplicateFeature();
152 void deleteSelectedFeatures();
154 void unlinkSelectedFeatures();
155 void zoomToSelectedFeatures();
157 void toggleEditing(
bool state );
158 void onCollapsedStateChanged(
bool collapsed );
172 QToolButton *mToggleEditingButton =
nullptr;
173 QToolButton *mSaveEditsButton =
nullptr;
174 QToolButton *mAddFeatureButton =
nullptr;
175 QToolButton *mDuplicateFeatureButton =
nullptr;
176 QToolButton *mDeleteFeatureButton =
nullptr;
177 QToolButton *mLinkFeatureButton =
nullptr;
178 QToolButton *mUnlinkFeatureButton =
nullptr;
179 QToolButton *mZoomToFeatureButton =
nullptr;
180 QToolButton *mFormViewButton =
nullptr;
181 QToolButton *mTableViewButton =
nullptr;
182 QGridLayout *mRelationLayout =
nullptr;
183 QButtonGroup *mViewModeButtonGroup =
nullptr;
185 bool mShowLabel =
true;
186 bool mVisible =
false;
203 #endif // QGSRELATIONEDITOR_H
A groupbox that collapses/expands when toggled and can save its collapsed and checked states...
QSet< QgsFeatureId > QgsFeatureIds
This class contains context information for attribute editor widgets.
ViewMode
The view modes, in which this widget can present information.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
Show a list of the features, where one can be chosen and the according attribute dialog will be prese...
This selection manager synchronizes a local set of selected features with an attribute table...
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
Is an interface class to abstract feature selection handling.
Represents a vector layer which manages a vector based data sets.
This widget is used to show the attributes of a set of features of a QgsVectorLayer.