2016-01-04 22:51:18 +11:00
|
|
|
class QgsVectorLayerEditPassthrough : QgsVectorLayerEditBuffer
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsvectorlayereditpassthrough.h>
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
QgsVectorLayerEditPassthrough( QgsVectorLayer* layer );
|
|
|
|
bool isModified() const;
|
|
|
|
bool addFeature( QgsFeature& f );
|
|
|
|
bool addFeatures( QgsFeatureList& features );
|
|
|
|
bool deleteFeature( QgsFeatureId fid );
|
2016-02-02 19:46:18 +11:00
|
|
|
bool deleteFeatures( const QgsFeatureIds& fids );
|
2016-07-31 21:23:07 +10:00
|
|
|
bool changeGeometry( QgsFeatureId fid, QgsGeometry geom );
|
2016-01-04 22:51:18 +11:00
|
|
|
bool changeAttributeValue( QgsFeatureId fid, int field, const QVariant &newValue, const QVariant &oldValue = QVariant() );
|
|
|
|
bool addAttribute( const QgsField &field );
|
|
|
|
bool deleteAttribute( int attr );
|
2016-05-31 10:05:54 +10:00
|
|
|
bool renameAttribute( int attr, const QString& newName );
|
2016-01-04 22:51:18 +11:00
|
|
|
bool commitChanges( QStringList& commitErrors );
|
|
|
|
void rollBack();
|
|
|
|
|
|
|
|
};
|