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 )
   147     bool showLabel() 
const;
   154     void setShowLabel( 
bool showLabel );
   161     bool showLinkButton() 
const;
   168     void setShowLinkButton( 
bool showLinkButton );
   175     bool showUnlinkButton() 
const;
   182     void setShowUnlinkButton( 
bool showUnlinkButton );
   185     void setViewMode( 
int mode ) {setViewMode( static_cast<QgsDualView::ViewMode>( mode ) );}
   186     void updateButtons();
   189     void addFeatureGeometry();
   190     void duplicateFeature();
   193     void deleteSelectedFeatures();
   195     void unlinkSelectedFeatures();
   196     void zoomToSelectedFeatures();
   198     void toggleEditing( 
bool state );
   199     void onCollapsedStateChanged( 
bool collapsed );
   201     void mapToolDeactivated();
   202     void onKeyPressed( QKeyEvent *e );
   203     void onDigitizingCompleted( 
const QgsFeature &feature );
   204     void onLinkFeatureDlgAccepted();
   213     QPointer<QgsMessageBarItem> mMessageBarItem;
   221     QToolButton *mToggleEditingButton = 
nullptr;
   222     QToolButton *mSaveEditsButton = 
nullptr;
   223     QToolButton *mAddFeatureButton = 
nullptr;
   224     QToolButton *mDuplicateFeatureButton = 
nullptr;
   225     QToolButton *mDeleteFeatureButton = 
nullptr;
   226     QToolButton *mLinkFeatureButton = 
nullptr;
   227     QToolButton *mUnlinkFeatureButton = 
nullptr;
   228     QToolButton *mZoomToFeatureButton = 
nullptr;
   229     QToolButton *mFormViewButton = 
nullptr;
   230     QToolButton *mTableViewButton = 
nullptr;
   231     QToolButton *mAddFeatureGeometryButton = 
nullptr;
   232     QGridLayout *mRelationLayout = 
nullptr;
   234     QButtonGroup *mViewModeButtonGroup = 
nullptr;
   236     bool mShowLabel = 
true;
   237     bool mVisible = 
false;
   254 #endif // QGSRELATIONEDITOR_H 
QSet< QgsFeatureId > QgsFeatureIds
 
A groupbox that collapses/expands when toggled and can save its collapsed and checked states...
 
This class contains context information for attribute editor widgets. 
 
ViewMode
The view modes, in which this widget can present information. 
 
A geometry is the spatial representation of a feature. 
 
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
 
const QgsFeatureIds & selectedFeatureIds() const override
Returns reference to identifiers of selected features. 
 
Show a list of the features, where one can be chosen and the according attribute dialog will be prese...
 
This class wraps a request for features to a vector layer (or directly its vector data provider)...
 
int selectedFeatureCount() override
Returns the number of features that are selected in this layer. 
 
#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.