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