QGIS/python/gui/qgsvectorlayertools.sip
Matthias Kuhn fb32966932 Move addFeature, startEditing and stopEditing vector layer actions
to an abstract base class QgsVectorLayerTools in the gui library,
so these can be reimplemented for a custom app, but can also be used
from plugins or in the gui library.
2013-10-07 16:17:42 +02:00

11 lines
387 B
Plaintext

class QgsVectorLayerTools
{
%TypeHeaderCode
#include <qgsvectorlayertools.h>
%End
public:
virtual bool addFeature( QgsVectorLayer* layer, QgsAttributeMap defaultValues = QgsAttributeMap(), const QgsGeometry& = QgsGeometry() ) = 0;
virtual bool startEditing( QgsVectorLayer* layer ) = 0;
virtual bool stopEditing( QgsVectorLayer* layer, bool allowCancel = true ) = 0;
};