15 #ifndef QGSVECTORLAYEREDITBUFFER_H    16 #define QGSVECTORLAYEREDITBUFFER_H    44     virtual bool isModified() 
const;
    70     virtual bool addAttribute( 
const QgsField &field );
    73     virtual bool deleteAttribute( 
int attr );
    80     virtual bool renameAttribute( 
int attr, 
const QString& newName );
    97     virtual bool commitChanges( 
QStringList& commitErrors );
   100     virtual void rollBack();
   128     void undoIndexChanged( 
int index );
   132     void layerModified();
   138     void attributeAdded( 
int idx );
   139     void attributeDeleted( 
int idx );
   146     void attributeRenamed( 
int idx, 
const QString& newName );
   159     void committedFeaturesRemoved( 
const QString& layerId, 
const QgsFeatureIds& deletedFeatureIds );
   173     void updateChangedAttributes( 
QgsFeature &f );
   176     void handleAttributeAdded( 
int index );
   179     void handleAttributeDeleted( 
int index );
   182     void updateAttributeMapIndex( 
QgsAttributeMap& attrs, 
int index, 
int offset ) 
const;
   184     void updateLayerFields();
   237 #endif // QGSVECTORLAYEREDITBUFFER_H const QgsGeometryMap & changedGeometries()
Changed geometries which are not commited. 
 
Undo command for removing an existing attribute from a vector layer. 
 
QgsVectorLayerEditBuffer()
 
Undo command for deleting a feature from a vector layer. 
 
const QgsChangedAttributesMap & changedAttributeValues()
Changed attributes values which are not commited. 
 
Base class for undo commands within a QgsVectorLayerEditBuffer. 
 
Container of fields for a vector layer. 
 
Undo command for modifying an attribute of a feature from a vector layer. 
 
A geometry is the spatial representation of a feature. 
 
QgsChangedAttributesMap mChangedAttributeValues
Changed attributes values which are not commited. 
 
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
 
QgsFieldNameMap mRenamedAttributes
Renamed attributes which are not commited. 
 
Undo command for adding a feature to a vector layer. 
 
Undo command for modifying the geometry of a feature from a vector layer. 
 
QSet< int > QgsAttributeIds
 
QgsGeometryMap mChangedGeometries
Changed geometries which are not commited. 
 
Undo command for renaming an existing attribute of a vector layer. 
 
const QgsFeatureIds deletedFeatureIds()
 
QList< int > QgsAttributeList
 
QgsFeatureIds mDeletedFeatureIds
Deleted feature IDs which are not commited. 
 
Encapsulate a field in an attribute table or data source. 
 
const QList< QgsField > & addedAttributes()
Added attributes fields which are not commited. 
 
Undo command for adding a new attribute to a vector layer. 
 
const QgsFeatureMap & addedFeatures()
New features which are not commited. 
 
QMap< QgsFeatureId, QgsFeature > QgsFeatureMap
 
QList< QgsField > mAddedAttributes
Added attributes fields which are not commited. 
 
QgsFeatureMap mAddedFeatures
New features which are not commited. 
 
Represents a vector layer which manages a vector based data sets. 
 
const QgsAttributeList & deletedAttributeIds()
Deleted attributes fields which are not commited. 
 
QgsAttributeList mDeletedAttributeIds
Deleted attributes fields which are not commited.