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();
156 void toggleEditing(
bool state );
157 void onCollapsedStateChanged(
bool collapsed );
171 QToolButton *mToggleEditingButton =
nullptr;
172 QToolButton *mSaveEditsButton =
nullptr;
173 QToolButton *mAddFeatureButton =
nullptr;
174 QToolButton *mDuplicateFeatureButton =
nullptr;
175 QToolButton *mDeleteFeatureButton =
nullptr;
176 QToolButton *mLinkFeatureButton =
nullptr;
177 QToolButton *mUnlinkFeatureButton =
nullptr;
178 QToolButton *mFormViewButton =
nullptr;
179 QToolButton *mTableViewButton =
nullptr;
180 QGridLayout *mRelationLayout =
nullptr;
181 QButtonGroup *mViewModeButtonGroup =
nullptr;
183 bool mShowLabel =
true;
184 bool mVisible =
false;
201 #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.