30 , mHighlight( nullptr )
31 , mOwnedFeature( featureOwner ? thepFeature : nullptr )
36 init( vl, thepFeature, context, showDialogButtons );
41 , mHighlight( nullptr )
42 , mOwnedFeature( featureOwner ? thepFeature : nullptr )
44 init( vl, thepFeature, context, showDialogButtons );
80 mAttributeForm->
save();
108 if ( showDialogButtons )
111 mAttributeForm =
new QgsAttributeForm( layer, *feature, trackedContext,
this );
117 connect( layer, SIGNAL( layerDeleted() ),
this, SLOT(
close() ) );
120 if ( !menu->
actions().isEmpty() )
137 if ( e->
type() == QEvent::WindowActivate && mHighlight )
139 else if ( e->
type() == QEvent::WindowDeactivate && mHighlight )
const QgsVectorLayerTools * vectorLayerTools() const
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.
A form was opened as a new dialog.
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
void setVectorLayerTools(QgsVectorLayerTools *vlTools)
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.
void setFormMode(FormMode mode)
Sets the form mode.
const QgsFeature * feature()
QString name
Read property of QString layerName.
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