30 , mHighlight( nullptr )
31 , mOwnedFeature( featureOwner ? thepFeature : nullptr )
36 init( vl, thepFeature, context );
38 if ( !showDialogButtons )
44 , mHighlight( nullptr )
45 , mOwnedFeature( featureOwner ? thepFeature : nullptr )
47 init( vl, thepFeature, context );
49 if ( !showDialogButtons )
86 mAttributeForm->
save();
108 connect( layer, SIGNAL( layerDeleted() ),
this, SLOT(
close() ) );
111 if ( !menu->
actions().isEmpty() )
128 if ( e->
type() == QEvent::WindowActivate && mHighlight )
130 else if ( e->
type() == QEvent::WindowDeactivate && mHighlight )
Q_DECL_DEPRECATED QgsAttributeDialog(QgsVectorLayer *vl, QgsFeature *thepFeature, bool featureOwner, const QgsDistanceArea &myDa, QWidget *parent=nullptr, bool showDialogButtons=true)
Create an attribute dialog for a given layer and feature.
virtual bool event(QEvent *e)
void restoreGeometry()
Restores the size and position from the last time this dialog box was used.
This class contains context information for attribute editor widgets.
void saveGeometry()
Saves the size and position for the next time this dialog box will be used.
void setHighlight(QgsHighlight *h)
setHighlight
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
QString tr(const char *sourceText, const char *disambiguation, int n)
void setValue(const QString &key, const QVariant &value)
void show()
Show the dialog non-blocking. Reparents this dialog to be a child of the dialog form.
A class for highlight features on the map.
void setDistanceArea(const QgsDistanceArea &distanceArea)
void setMargin(int margin)
General purpose distance and area calculator.
virtual bool event(QEvent *e) override
Intercept window activate/deactive events to show/hide the highlighted feature.
QString name() const
Get the display name of the layer.
const QgsFeature * feature()
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Represents a vector layer which manages a vector based data sets.
T findChild(const QString &name) const