QGIS API Documentation 3.36.0-Maidenhead (09951dc0acf)
Loading...
Searching...
No Matches
Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | Friends | List of all members
QgsVectorLayerEditBuffer Class Reference

#include <qgsvectorlayereditbuffer.h>

Inheritance diagram for QgsVectorLayerEditBuffer:
Inheritance graph
[legend]

Signals

void attributeAdded (int idx)
 
void attributeDeleted (int idx)
 
void attributeRenamed (int idx, const QString &newName)
 Emitted when an attribute has been renamed.
 
void attributeValueChanged (QgsFeatureId fid, int idx, const QVariant &)
 
void committedAttributesAdded (const QString &layerId, const QList< QgsField > &addedAttributes)
 
void committedAttributesDeleted (const QString &layerId, const QgsAttributeList &deletedAttributes)
 Signals emitted after committing changes.
 
void committedAttributesRenamed (const QString &layerId, const QgsFieldNameMap &renamedAttributes)
 Emitted after committing an attribute rename.
 
void committedAttributeValuesChanges (const QString &layerId, const QgsChangedAttributesMap &changedAttributesValues)
 
void committedFeaturesAdded (const QString &layerId, const QgsFeatureList &addedFeatures)
 
void committedFeaturesRemoved (const QString &layerId, const QgsFeatureIds &deletedFeatureIds)
 
void committedGeometriesChanges (const QString &layerId, const QgsGeometryMap &changedGeometries)
 
void featureAdded (QgsFeatureId fid)
 
void featureDeleted (QgsFeatureId fid)
 
void geometryChanged (QgsFeatureId fid, const QgsGeometry &geom)
 Emitted when a feature's geometry is changed.
 
void layerModified ()
 Emitted when modifications has been done on layer.
 

Public Member Functions

 QgsVectorLayerEditBuffer (QgsVectorLayer *layer)
 
virtual bool addAttribute (const QgsField &field)
 Adds an attribute field (but does not commit it) returns true if the field was added.
 
QList< QgsFieldaddedAttributes () const
 Returns a list of added attributes fields which are not committed.
 
QgsFeatureMap addedFeatures () const
 Returns a map of new features which are not committed.
 
virtual bool addFeature (QgsFeature &f)
 Adds a feature.
 
virtual bool addFeatures (QgsFeatureList &features)
 Insert a copy of the given features into the layer (but does not commit it)
 
QgsFeatureIds allAddedOrEditedFeatures () const
 Returns a list of the features IDs for all newly added or edited features in the buffer.
 
virtual bool changeAttributeValue (QgsFeatureId fid, int field, const QVariant &newValue, const QVariant &oldValue=QVariant())
 Changed an attribute value (but does not commit it)
 
virtual bool changeAttributeValues (QgsFeatureId fid, const QgsAttributeMap &newValues, const QgsAttributeMap &oldValues)
 Changes values of attributes (but does not commit it).
 
QgsChangedAttributesMap changedAttributeValues () const
 Returns a map of features with changed attributes values which are not committed.
 
QgsGeometryMap changedGeometries () const
 Returns a map of features with changed geometries which are not committed.
 
virtual bool changeGeometry (QgsFeatureId fid, const QgsGeometry &geom)
 Change feature's geometry.
 
virtual bool commitChanges (QStringList &commitErrors)
 Attempts to commit any changes to disk.
 
virtual bool deleteAttribute (int attr)
 Deletes an attribute field (but does not commit it)
 
QgsAttributeList deletedAttributeIds () const
 Returns a list of deleted attributes fields which are not committed.
 
QgsFeatureIds deletedFeatureIds () const
 Returns a list of deleted feature IDs which are not committed.
 
virtual bool deleteFeature (QgsFeatureId fid)
 Delete a feature from the layer (but does not commit it)
 
virtual bool deleteFeatures (const QgsFeatureIds &fid)
 Deletes a set of features from the layer (but does not commit it)
 
QgsVectorLayerEditBufferGroupeditBufferGroup () const
 Returns the parent edit buffer group for this edit buffer, or nullptr if not part of a group.
 
bool isAttributeDeleted (int index) const
 Returns true if the specified attribute has been deleted but not committed.
 
bool isFeatureAdded (QgsFeatureId id) const
 Returns true if the specified feature ID has been added but not committed.
 
bool isFeatureAttributesChanged (QgsFeatureId id) const
 Returns true if the specified feature ID has had an attribute changed but not committed.
 
bool isFeatureDeleted (QgsFeatureId id) const
 Returns true if the specified feature ID has been deleted but not committed.
 
bool isFeatureGeometryChanged (QgsFeatureId id) const
 Returns true if the specified feature ID has had its geometry changed but not committed.
 
virtual bool isModified () const
 Returns true if the provider has been modified since the last commit.
 
virtual bool renameAttribute (int attr, const QString &newName)
 Renames an attribute field (but does not commit it)
 
virtual void rollBack ()
 Stop editing and discard the edits.
 
void setEditBufferGroup (QgsVectorLayerEditBufferGroup *editBufferGroup)
 Set the parent edit buffer group for this edit buffer.
 
void updateFields (QgsFields &fields)
 Updates fields.
 

Protected Slots

void undoIndexChanged (int index)
 

Protected Member Functions

 QgsVectorLayerEditBuffer ()=default
 Constructor for QgsVectorLayerEditBuffer.
 
void handleAttributeAdded (int index)
 Update added and changed features after addition of an attribute.
 
void handleAttributeDeleted (int index)
 Update added and changed features after removal of an attribute.
 
void updateAttributeMapIndex (QgsAttributeMap &attrs, int index, int offset) const
 Updates an index in an attribute map to a new value (for updates of changed attributes)
 
void updateChangedAttributes (QgsFeature &f)
 Update feature with uncommitted attribute updates.
 
void updateFeatureGeometry (QgsFeature &f)
 Update feature with uncommitted geometry updates.
 
void updateLayerFields ()
 

Protected Attributes

QgsVectorLayerL = nullptr
 
QList< QgsFieldmAddedAttributes
 Added attributes fields which are not committed.
 
QgsFeatureMap mAddedFeatures
 New features which are not committed.
 
int mBlockModifiedSignals = 0
 
QgsChangedAttributesMap mChangedAttributeValues
 Changed attributes values which are not committed.
 
QgsGeometryMap mChangedGeometries
 Changed geometries which are not committed.
 
QgsAttributeList mDeletedAttributeIds
 Deleted attributes fields which are not committed. The list is kept sorted.
 
QgsFeatureIds mDeletedFeatureIds
 Deleted feature IDs which are not committed.
 
QgsVectorLayerEditBufferGroupmEditBufferGroup = nullptr
 
QgsFieldNameMap mRenamedAttributes
 Renamed attributes which are not committed.
 

Friends

class QgsGrassProvider
 
class QgsVectorLayerEditBufferGroup
 
class QgsVectorLayerUndoCommand
 
class QgsVectorLayerUndoCommandAddAttribute
 
class QgsVectorLayerUndoCommandAddFeature
 
class QgsVectorLayerUndoCommandChangeAttribute
 
class QgsVectorLayerUndoCommandChangeGeometry
 
class QgsVectorLayerUndoCommandDeleteAttribute
 
class QgsVectorLayerUndoCommandDeleteFeature
 
class QgsVectorLayerUndoCommandRenameAttribute
 
class QgsVectorLayerUndoPassthroughCommand
 
class QgsVectorLayerUndoPassthroughCommandAddAttribute
 
class QgsVectorLayerUndoPassthroughCommandAddFeatures
 
class QgsVectorLayerUndoPassthroughCommandChangeAttribute
 
class QgsVectorLayerUndoPassthroughCommandChangeAttributes
 
class QgsVectorLayerUndoPassthroughCommandChangeGeometry
 
class QgsVectorLayerUndoPassthroughCommandDeleteAttribute
 
class QgsVectorLayerUndoPassthroughCommandDeleteFeatures
 
class QgsVectorLayerUndoPassthroughCommandRenameAttribute
 
class QgsVectorLayerUndoPassthroughCommandUpdate
 

Detailed Description

Definition at line 37 of file qgsvectorlayereditbuffer.h.

Constructor & Destructor Documentation

◆ QgsVectorLayerEditBuffer() [1/2]

QgsVectorLayerEditBuffer::QgsVectorLayerEditBuffer ( QgsVectorLayer layer)

Definition at line 42 of file qgsvectorlayereditbuffer.cpp.

◆ QgsVectorLayerEditBuffer() [2/2]

QgsVectorLayerEditBuffer::QgsVectorLayerEditBuffer ( )
protecteddefault

Constructor for QgsVectorLayerEditBuffer.

Member Function Documentation

◆ addAttribute()

bool QgsVectorLayerEditBuffer::addAttribute ( const QgsField field)
virtual

Adds an attribute field (but does not commit it) returns true if the field was added.

Reimplemented in QgsVectorLayerEditPassthrough.

Definition at line 303 of file qgsvectorlayereditbuffer.cpp.

◆ addedAttributes()

QList< QgsField > QgsVectorLayerEditBuffer::addedAttributes ( ) const
inline

Returns a list of added attributes fields which are not committed.

Definition at line 160 of file qgsvectorlayereditbuffer.h.

◆ addedFeatures()

QgsFeatureMap QgsVectorLayerEditBuffer::addedFeatures ( ) const
inline

Returns a map of new features which are not committed.

See also
isFeatureAdded()

Definition at line 114 of file qgsvectorlayereditbuffer.h.

◆ addFeature()

bool QgsVectorLayerEditBuffer::addFeature ( QgsFeature f)
virtual

Adds a feature.

Parameters
ffeature to add
Returns
true in case of success and false in case of error

Reimplemented in QgsVectorLayerEditPassthrough.

Definition at line 132 of file qgsvectorlayereditbuffer.cpp.

◆ addFeatures()

bool QgsVectorLayerEditBuffer::addFeatures ( QgsFeatureList features)
virtual

Insert a copy of the given features into the layer (but does not commit it)

Reimplemented in QgsVectorLayerEditPassthrough.

Definition at line 151 of file qgsvectorlayereditbuffer.cpp.

◆ allAddedOrEditedFeatures()

QgsFeatureIds QgsVectorLayerEditBuffer::allAddedOrEditedFeatures ( ) const

Returns a list of the features IDs for all newly added or edited features in the buffer.

Since
QGIS 3.20

Definition at line 483 of file qgsvectorlayereditbuffer.cpp.

◆ attributeAdded

void QgsVectorLayerEditBuffer::attributeAdded ( int  idx)
signal

◆ attributeDeleted

void QgsVectorLayerEditBuffer::attributeDeleted ( int  idx)
signal

◆ attributeRenamed

void QgsVectorLayerEditBuffer::attributeRenamed ( int  idx,
const QString &  newName 
)
signal

Emitted when an attribute has been renamed.

Parameters
idxattribute index
newNamenew attribute name

◆ attributeValueChanged

void QgsVectorLayerEditBuffer::attributeValueChanged ( QgsFeatureId  fid,
int  idx,
const QVariant &   
)
signal

◆ changeAttributeValue()

bool QgsVectorLayerEditBuffer::changeAttributeValue ( QgsFeatureId  fid,
int  field,
const QVariant &  newValue,
const QVariant &  oldValue = QVariant() 
)
virtual

Changed an attribute value (but does not commit it)

Reimplemented in QgsVectorLayerEditPassthrough.

Definition at line 281 of file qgsvectorlayereditbuffer.cpp.

◆ changeAttributeValues()

bool QgsVectorLayerEditBuffer::changeAttributeValues ( QgsFeatureId  fid,
const QgsAttributeMap newValues,
const QgsAttributeMap oldValues 
)
virtual

Changes values of attributes (but does not commit it).

Returns
true if attributes are well updated, false otherwise

Reimplemented in QgsVectorLayerEditPassthrough.

Definition at line 255 of file qgsvectorlayereditbuffer.cpp.

◆ changedAttributeValues()

QgsChangedAttributesMap QgsVectorLayerEditBuffer::changedAttributeValues ( ) const
inline

Returns a map of features with changed attributes values which are not committed.

See also
isFeatureAttributesChanged()

Definition at line 135 of file qgsvectorlayereditbuffer.h.

◆ changedGeometries()

QgsGeometryMap QgsVectorLayerEditBuffer::changedGeometries ( ) const
inline

Returns a map of features with changed geometries which are not committed.

See also
isFeatureGeometryChanged()

Definition at line 166 of file qgsvectorlayereditbuffer.h.

◆ changeGeometry()

bool QgsVectorLayerEditBuffer::changeGeometry ( QgsFeatureId  fid,
const QgsGeometry geom 
)
virtual

Change feature's geometry.

Reimplemented in QgsVectorLayerEditPassthrough.

Definition at line 234 of file qgsvectorlayereditbuffer.cpp.

◆ commitChanges()

bool QgsVectorLayerEditBuffer::commitChanges ( QStringList &  commitErrors)
virtual

Attempts to commit any changes to disk.

Returns the result of the attempt. If a commit fails, the in-memory changes are left alone.

This allows editing to continue if the commit failed on e.g. a disallowed value in a Postgres database - the user can re-edit and try again.

The commits occur in distinct stages, (add attributes, add features, change attribute values, change geometries, delete features, delete attributes) so if a stage fails, it's difficult to roll back cleanly. Therefore any error message also includes which stage failed so that the user has some chance of repairing the damage cleanly.

Reimplemented in QgsVectorLayerEditPassthrough.

Definition at line 371 of file qgsvectorlayereditbuffer.cpp.

◆ committedAttributesAdded

void QgsVectorLayerEditBuffer::committedAttributesAdded ( const QString &  layerId,
const QList< QgsField > &  addedAttributes 
)
signal

◆ committedAttributesDeleted

void QgsVectorLayerEditBuffer::committedAttributesDeleted ( const QString &  layerId,
const QgsAttributeList deletedAttributes 
)
signal

Signals emitted after committing changes.

◆ committedAttributesRenamed

void QgsVectorLayerEditBuffer::committedAttributesRenamed ( const QString &  layerId,
const QgsFieldNameMap renamedAttributes 
)
signal

Emitted after committing an attribute rename.

Parameters
layerIdID of layer
renamedAttributesmap of field index to new name

◆ committedAttributeValuesChanges

void QgsVectorLayerEditBuffer::committedAttributeValuesChanges ( const QString &  layerId,
const QgsChangedAttributesMap changedAttributesValues 
)
signal

◆ committedFeaturesAdded

void QgsVectorLayerEditBuffer::committedFeaturesAdded ( const QString &  layerId,
const QgsFeatureList addedFeatures 
)
signal

◆ committedFeaturesRemoved

void QgsVectorLayerEditBuffer::committedFeaturesRemoved ( const QString &  layerId,
const QgsFeatureIds deletedFeatureIds 
)
signal

◆ committedGeometriesChanges

void QgsVectorLayerEditBuffer::committedGeometriesChanges ( const QString &  layerId,
const QgsGeometryMap changedGeometries 
)
signal

◆ deleteAttribute()

bool QgsVectorLayerEditBuffer::deleteAttribute ( int  attr)
virtual

Deletes an attribute field (but does not commit it)

Reimplemented in QgsVectorLayerEditPassthrough.

Definition at line 326 of file qgsvectorlayereditbuffer.cpp.

◆ deletedAttributeIds()

QgsAttributeList QgsVectorLayerEditBuffer::deletedAttributeIds ( ) const
inline

Returns a list of deleted attributes fields which are not committed.

The list is kept sorted.

See also
isAttributeDeleted()

Definition at line 148 of file qgsvectorlayereditbuffer.h.

◆ deletedFeatureIds()

QgsFeatureIds QgsVectorLayerEditBuffer::deletedFeatureIds ( ) const
inline

Returns a list of deleted feature IDs which are not committed.

See also
isFeatureDeleted()

Definition at line 179 of file qgsvectorlayereditbuffer.h.

◆ deleteFeature()

bool QgsVectorLayerEditBuffer::deleteFeature ( QgsFeatureId  fid)
virtual

Delete a feature from the layer (but does not commit it)

Reimplemented in QgsVectorLayerEditPassthrough.

Definition at line 182 of file qgsvectorlayereditbuffer.cpp.

◆ deleteFeatures()

bool QgsVectorLayerEditBuffer::deleteFeatures ( const QgsFeatureIds fid)
virtual

Deletes a set of features from the layer (but does not commit it)

Reimplemented in QgsVectorLayerEditPassthrough.

Definition at line 211 of file qgsvectorlayereditbuffer.cpp.

◆ editBufferGroup()

QgsVectorLayerEditBufferGroup * QgsVectorLayerEditBuffer::editBufferGroup ( ) const

Returns the parent edit buffer group for this edit buffer, or nullptr if not part of a group.

Since
QGIS 3.26

Definition at line 88 of file qgsvectorlayereditbuffer.cpp.

◆ featureAdded

void QgsVectorLayerEditBuffer::featureAdded ( QgsFeatureId  fid)
signal

◆ featureDeleted

void QgsVectorLayerEditBuffer::featureDeleted ( QgsFeatureId  fid)
signal

◆ geometryChanged

void QgsVectorLayerEditBuffer::geometryChanged ( QgsFeatureId  fid,
const QgsGeometry geom 
)
signal

Emitted when a feature's geometry is changed.

Parameters
fidfeature ID
geomnew feature geometry

◆ handleAttributeAdded()

void QgsVectorLayerEditBuffer::handleAttributeAdded ( int  index)
protected

Update added and changed features after addition of an attribute.

Definition at line 505 of file qgsvectorlayereditbuffer.cpp.

◆ handleAttributeDeleted()

void QgsVectorLayerEditBuffer::handleAttributeDeleted ( int  index)
protected

Update added and changed features after removal of an attribute.

Definition at line 539 of file qgsvectorlayereditbuffer.cpp.

◆ isAttributeDeleted()

bool QgsVectorLayerEditBuffer::isAttributeDeleted ( int  index) const
inline

Returns true if the specified attribute has been deleted but not committed.

Parameters
indexattribute index
See also
deletedAttributeIds()

Definition at line 155 of file qgsvectorlayereditbuffer.h.

◆ isFeatureAdded()

bool QgsVectorLayerEditBuffer::isFeatureAdded ( QgsFeatureId  id) const
inline

Returns true if the specified feature ID has been added but not committed.

Parameters
idfeature ID
See also
addedFeatures()

Definition at line 129 of file qgsvectorlayereditbuffer.h.

◆ isFeatureAttributesChanged()

bool QgsVectorLayerEditBuffer::isFeatureAttributesChanged ( QgsFeatureId  id) const
inline

Returns true if the specified feature ID has had an attribute changed but not committed.

Parameters
idfeature ID
See also
changedAttributeValues()

Definition at line 142 of file qgsvectorlayereditbuffer.h.

◆ isFeatureDeleted()

bool QgsVectorLayerEditBuffer::isFeatureDeleted ( QgsFeatureId  id) const
inline

Returns true if the specified feature ID has been deleted but not committed.

Parameters
idfeature ID
See also
deletedFeatureIds()

Definition at line 186 of file qgsvectorlayereditbuffer.h.

◆ isFeatureGeometryChanged()

bool QgsVectorLayerEditBuffer::isFeatureGeometryChanged ( QgsFeatureId  id) const
inline

Returns true if the specified feature ID has had its geometry changed but not committed.

Parameters
idfeature ID
See also
changedGeometries()

Definition at line 173 of file qgsvectorlayereditbuffer.h.

◆ isModified()

bool QgsVectorLayerEditBuffer::isModified ( ) const
virtual

Returns true if the provider has been modified since the last commit.

Reimplemented in QgsVectorLayerEditPassthrough.

Definition at line 48 of file qgsvectorlayereditbuffer.cpp.

◆ layerModified

void QgsVectorLayerEditBuffer::layerModified ( )
signal

Emitted when modifications has been done on layer.

◆ renameAttribute()

bool QgsVectorLayerEditBuffer::renameAttribute ( int  attr,
const QString &  newName 
)
virtual

Renames an attribute field (but does not commit it)

Parameters
attrattribute index
newNamenew name of field

Reimplemented in QgsVectorLayerEditPassthrough.

Definition at line 348 of file qgsvectorlayereditbuffer.cpp.

◆ rollBack()

void QgsVectorLayerEditBuffer::rollBack ( )
virtual

Stop editing and discard the edits.

Reimplemented in QgsVectorLayerEditPassthrough.

Definition at line 467 of file qgsvectorlayereditbuffer.cpp.

◆ setEditBufferGroup()

void QgsVectorLayerEditBuffer::setEditBufferGroup ( QgsVectorLayerEditBufferGroup editBufferGroup)

Set the parent edit buffer group for this edit buffer.

Since
QGIS 3.26

Definition at line 93 of file qgsvectorlayereditbuffer.cpp.

◆ undoIndexChanged

void QgsVectorLayerEditBuffer::undoIndexChanged ( int  index)
protectedslot

Definition at line 54 of file qgsvectorlayereditbuffer.cpp.

◆ updateAttributeMapIndex()

void QgsVectorLayerEditBuffer::updateAttributeMapIndex ( QgsAttributeMap attrs,
int  index,
int  offset 
) const
protected

Updates an index in an attribute map to a new value (for updates of changed attributes)

Definition at line 585 of file qgsvectorlayereditbuffer.cpp.

◆ updateChangedAttributes()

void QgsVectorLayerEditBuffer::updateChangedAttributes ( QgsFeature f)
protected

Update feature with uncommitted attribute updates.

Definition at line 105 of file qgsvectorlayereditbuffer.cpp.

◆ updateFeatureGeometry()

void QgsVectorLayerEditBuffer::updateFeatureGeometry ( QgsFeature f)
protected

Update feature with uncommitted geometry updates.

Definition at line 98 of file qgsvectorlayereditbuffer.cpp.

◆ updateFields()

void QgsVectorLayerEditBuffer::updateFields ( QgsFields fields)

Updates fields.

Note
Not available in Python bindings
Since
QGIS 3.18

Definition at line 66 of file qgsvectorlayereditbuffer.cpp.

◆ updateLayerFields()

void QgsVectorLayerEditBuffer::updateLayerFields ( )
protected

Definition at line 598 of file qgsvectorlayereditbuffer.cpp.

Friends And Related Symbol Documentation

◆ QgsGrassProvider

friend class QgsGrassProvider
friend

Definition at line 326 of file qgsvectorlayereditbuffer.h.

◆ QgsVectorLayerEditBufferGroup

friend class QgsVectorLayerEditBufferGroup
friend

Definition at line 330 of file qgsvectorlayereditbuffer.h.

◆ QgsVectorLayerUndoCommand

friend class QgsVectorLayerUndoCommand
friend

Definition at line 277 of file qgsvectorlayereditbuffer.h.

◆ QgsVectorLayerUndoCommandAddAttribute

Definition at line 282 of file qgsvectorlayereditbuffer.h.

◆ QgsVectorLayerUndoCommandAddFeature

Definition at line 278 of file qgsvectorlayereditbuffer.h.

◆ QgsVectorLayerUndoCommandChangeAttribute

Definition at line 281 of file qgsvectorlayereditbuffer.h.

◆ QgsVectorLayerUndoCommandChangeGeometry

Definition at line 280 of file qgsvectorlayereditbuffer.h.

◆ QgsVectorLayerUndoCommandDeleteAttribute

Definition at line 283 of file qgsvectorlayereditbuffer.h.

◆ QgsVectorLayerUndoCommandDeleteFeature

Definition at line 279 of file qgsvectorlayereditbuffer.h.

◆ QgsVectorLayerUndoCommandRenameAttribute

Definition at line 284 of file qgsvectorlayereditbuffer.h.

◆ QgsVectorLayerUndoPassthroughCommand

Definition at line 286 of file qgsvectorlayereditbuffer.h.

◆ QgsVectorLayerUndoPassthroughCommandAddAttribute

Definition at line 292 of file qgsvectorlayereditbuffer.h.

◆ QgsVectorLayerUndoPassthroughCommandAddFeatures

Definition at line 287 of file qgsvectorlayereditbuffer.h.

◆ QgsVectorLayerUndoPassthroughCommandChangeAttribute

Definition at line 290 of file qgsvectorlayereditbuffer.h.

◆ QgsVectorLayerUndoPassthroughCommandChangeAttributes

Definition at line 291 of file qgsvectorlayereditbuffer.h.

◆ QgsVectorLayerUndoPassthroughCommandChangeGeometry

Definition at line 289 of file qgsvectorlayereditbuffer.h.

◆ QgsVectorLayerUndoPassthroughCommandDeleteAttribute

Definition at line 293 of file qgsvectorlayereditbuffer.h.

◆ QgsVectorLayerUndoPassthroughCommandDeleteFeatures

Definition at line 288 of file qgsvectorlayereditbuffer.h.

◆ QgsVectorLayerUndoPassthroughCommandRenameAttribute

Definition at line 294 of file qgsvectorlayereditbuffer.h.

◆ QgsVectorLayerUndoPassthroughCommandUpdate

Definition at line 295 of file qgsvectorlayereditbuffer.h.

Member Data Documentation

◆ L

QgsVectorLayer* QgsVectorLayerEditBuffer::L = nullptr
protected

Definition at line 275 of file qgsvectorlayereditbuffer.h.

◆ mAddedAttributes

QList<QgsField> QgsVectorLayerEditBuffer::mAddedAttributes
protected

Added attributes fields which are not committed.

Definition at line 314 of file qgsvectorlayereditbuffer.h.

◆ mAddedFeatures

QgsFeatureMap QgsVectorLayerEditBuffer::mAddedFeatures
protected

New features which are not committed.

Definition at line 305 of file qgsvectorlayereditbuffer.h.

◆ mBlockModifiedSignals

int QgsVectorLayerEditBuffer::mBlockModifiedSignals = 0
protected

Definition at line 324 of file qgsvectorlayereditbuffer.h.

◆ mChangedAttributeValues

QgsChangedAttributesMap QgsVectorLayerEditBuffer::mChangedAttributeValues
protected

Changed attributes values which are not committed.

Definition at line 308 of file qgsvectorlayereditbuffer.h.

◆ mChangedGeometries

QgsGeometryMap QgsVectorLayerEditBuffer::mChangedGeometries
protected

Changed geometries which are not committed.

Definition at line 320 of file qgsvectorlayereditbuffer.h.

◆ mDeletedAttributeIds

QgsAttributeList QgsVectorLayerEditBuffer::mDeletedAttributeIds
protected

Deleted attributes fields which are not committed. The list is kept sorted.

Definition at line 311 of file qgsvectorlayereditbuffer.h.

◆ mDeletedFeatureIds

QgsFeatureIds QgsVectorLayerEditBuffer::mDeletedFeatureIds
protected

Deleted feature IDs which are not committed.

Note a feature can be added and then deleted again before the change is committed - in that case the added feature would be removed from mAddedFeatures only and not entered here.

Definition at line 302 of file qgsvectorlayereditbuffer.h.

◆ mEditBufferGroup

QgsVectorLayerEditBufferGroup* QgsVectorLayerEditBuffer::mEditBufferGroup = nullptr
protected

Definition at line 322 of file qgsvectorlayereditbuffer.h.

◆ mRenamedAttributes

QgsFieldNameMap QgsVectorLayerEditBuffer::mRenamedAttributes
protected

Renamed attributes which are not committed.

Definition at line 317 of file qgsvectorlayereditbuffer.h.


The documentation for this class was generated from the following files: