QGIS/python/core/auto_generated/qgsvectorlayerundocommand.sip.in

255 lines
5.8 KiB
Plaintext
Raw Normal View History

2017-05-22 09:01:45 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsvectorlayerundocommand.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2014-01-27 09:22:24 +01:00
class QgsVectorLayerUndoCommand : QUndoCommand
{
2017-05-22 09:01:45 +02:00
%Docstring
Base class for undo commands within a QgsVectorLayerEditBuffer.
2017-05-22 09:01:45 +02:00
%End
2014-01-27 09:22:24 +01:00
%TypeHeaderCode
#include "qgsvectorlayerundocommand.h"
%End
public:
2014-01-27 09:22:24 +01:00
QgsVectorLayerUndoCommand( QgsVectorLayerEditBuffer *buffer /Transfer/ );
2017-05-22 09:01:45 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Constructor for QgsVectorLayerUndoCommand
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param buffer: associated edit buffer
2017-05-22 09:01:45 +02:00
%End
2014-01-27 09:22:24 +01:00
QgsVectorLayer *layer();
2017-05-22 09:01:45 +02:00
%Docstring
Returns the layer associated with the undo command
%End
2014-01-27 09:22:24 +01:00
virtual int id() const;
2017-05-22 09:01:45 +02:00
virtual bool mergeWith( const QUndoCommand * );
protected:
2014-01-27 09:22:24 +01:00
};
2014-01-27 09:22:24 +01:00
class QgsVectorLayerUndoCommandAddFeature : QgsVectorLayerUndoCommand
{
2017-05-22 09:01:45 +02:00
%Docstring
Undo command for adding a feature to a vector layer.
2017-05-22 09:01:45 +02:00
%End
2014-01-27 09:22:24 +01:00
%TypeHeaderCode
#include "qgsvectorlayerundocommand.h"
%End
public:
QgsVectorLayerUndoCommandAddFeature( QgsVectorLayerEditBuffer *buffer /Transfer/, QgsFeature &f );
2017-05-22 09:01:45 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Constructor for QgsVectorLayerUndoCommandAddFeature
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param buffer: associated edit buffer
:param f: feature to add to layer
2017-05-22 09:01:45 +02:00
%End
2014-01-27 09:22:24 +01:00
virtual void undo();
2014-01-27 09:22:24 +01:00
virtual void redo();
2017-05-22 09:01:45 +02:00
2014-01-27 09:22:24 +01:00
};
2014-01-27 09:22:24 +01:00
class QgsVectorLayerUndoCommandDeleteFeature : QgsVectorLayerUndoCommand
{
2017-05-22 09:01:45 +02:00
%Docstring
Undo command for deleting a feature from a vector layer.
2017-05-22 09:01:45 +02:00
%End
2014-01-27 09:22:24 +01:00
%TypeHeaderCode
#include "qgsvectorlayerundocommand.h"
%End
public:
QgsVectorLayerUndoCommandDeleteFeature( QgsVectorLayerEditBuffer *buffer /Transfer/, QgsFeatureId fid );
2017-05-22 09:01:45 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Constructor for QgsVectorLayerUndoCommandDeleteFeature
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param buffer: associated edit buffer
:param fid: feature ID of feature to delete from layer
2017-05-22 09:01:45 +02:00
%End
2014-01-27 09:22:24 +01:00
virtual void undo();
2014-01-27 09:22:24 +01:00
virtual void redo();
2017-05-22 09:01:45 +02:00
};
2014-01-27 09:22:24 +01:00
2014-01-27 09:22:24 +01:00
class QgsVectorLayerUndoCommandChangeGeometry : QgsVectorLayerUndoCommand
{
2017-05-22 09:01:45 +02:00
%Docstring
Undo command for modifying the geometry of a feature from a vector layer.
2017-05-22 09:01:45 +02:00
%End
2014-01-27 09:22:24 +01:00
%TypeHeaderCode
#include "qgsvectorlayerundocommand.h"
%End
public:
QgsVectorLayerUndoCommandChangeGeometry( QgsVectorLayerEditBuffer *buffer /Transfer/, QgsFeatureId fid, const QgsGeometry &newGeom );
2017-05-22 09:01:45 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Constructor for QgsVectorLayerUndoCommandChangeGeometry
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param buffer: associated edit buffer
:param fid: feature ID of feature to modify geometry of
:param newGeom: new geometry for feature
2017-05-22 09:01:45 +02:00
%End
2014-01-27 09:22:24 +01:00
virtual void undo();
2014-01-27 09:22:24 +01:00
virtual void redo();
2014-01-27 09:22:24 +01:00
virtual int id() const;
2014-01-27 09:22:24 +01:00
virtual bool mergeWith( const QUndoCommand * );
2017-05-22 09:01:45 +02:00
2014-01-27 09:22:24 +01:00
};
2014-01-27 09:22:24 +01:00
class QgsVectorLayerUndoCommandChangeAttribute : QgsVectorLayerUndoCommand
{
2017-05-22 09:01:45 +02:00
%Docstring
Undo command for modifying an attribute of a feature from a vector layer.
2017-05-22 09:01:45 +02:00
%End
2014-01-27 09:22:24 +01:00
%TypeHeaderCode
#include "qgsvectorlayerundocommand.h"
%End
public:
QgsVectorLayerUndoCommandChangeAttribute( QgsVectorLayerEditBuffer *buffer /Transfer/, QgsFeatureId fid, int fieldIndex, const QVariant &newValue, const QVariant &oldValue );
2017-05-22 09:01:45 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Constructor for QgsVectorLayerUndoCommandChangeAttribute
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param buffer: associated edit buffer
:param fid: feature ID of feature to modify
:param fieldIndex: index of field to modify
:param newValue: new value of attribute
:param oldValue: previous value of attribute
2017-05-22 09:01:45 +02:00
%End
2014-01-27 09:22:24 +01:00
virtual void undo();
2014-01-27 09:22:24 +01:00
virtual void redo();
2017-05-22 09:01:45 +02:00
};
2014-01-27 09:22:24 +01:00
2014-01-27 22:53:48 +10:00
class QgsVectorLayerUndoCommandAddAttribute : QgsVectorLayerUndoCommand
2014-01-27 09:22:24 +01:00
{
2017-05-22 09:01:45 +02:00
%Docstring
Undo command for adding a new attribute to a vector layer.
2017-05-22 09:01:45 +02:00
%End
2014-01-27 09:22:24 +01:00
%TypeHeaderCode
#include "qgsvectorlayerundocommand.h"
%End
public:
QgsVectorLayerUndoCommandAddAttribute( QgsVectorLayerEditBuffer *buffer /Transfer/, const QgsField &field );
2017-05-22 09:01:45 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Constructor for QgsVectorLayerUndoCommandAddAttribute
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param buffer: associated edit buffer
:param field: definition of new field to add
2017-05-22 09:01:45 +02:00
%End
2014-01-27 09:22:24 +01:00
virtual void undo();
2014-01-27 09:22:24 +01:00
virtual void redo();
2017-05-22 09:01:45 +02:00
};
2014-01-27 09:22:24 +01:00
2014-01-27 09:22:24 +01:00
class QgsVectorLayerUndoCommandDeleteAttribute : QgsVectorLayerUndoCommand
{
2017-05-22 09:01:45 +02:00
%Docstring
Undo command for removing an existing attribute from a vector layer.
2017-05-22 09:01:45 +02:00
%End
2014-01-27 09:22:24 +01:00
%TypeHeaderCode
#include "qgsvectorlayerundocommand.h"
%End
public:
QgsVectorLayerUndoCommandDeleteAttribute( QgsVectorLayerEditBuffer *buffer /Transfer/, int fieldIndex );
2017-05-22 09:01:45 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Constructor for QgsVectorLayerUndoCommandDeleteAttribute
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param buffer: associated edit buffer
:param fieldIndex: index of field to delete
2017-05-22 09:01:45 +02:00
%End
2014-01-27 09:22:24 +01:00
virtual void undo();
2014-01-27 09:22:24 +01:00
virtual void redo();
2014-01-27 09:22:24 +01:00
};
class QgsVectorLayerUndoCommandRenameAttribute : QgsVectorLayerUndoCommand
{
2017-05-22 09:01:45 +02:00
%Docstring
Undo command for renaming an existing attribute of a vector layer.
2017-12-15 10:36:55 -04:00
2017-05-22 09:01:45 +02:00
.. versionadded:: 2.16
%End
%TypeHeaderCode
#include "qgsvectorlayerundocommand.h"
%End
public:
QgsVectorLayerUndoCommandRenameAttribute( QgsVectorLayerEditBuffer *buffer /Transfer/, int fieldIndex, const QString &newName );
2017-05-22 09:01:45 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Constructor for QgsVectorLayerUndoCommandRenameAttribute
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param buffer: associated edit buffer
:param fieldIndex: index of field to rename
:param newName: new name for field
2017-05-22 09:01:45 +02:00
%End
virtual void undo();
virtual void redo();
};
2017-05-22 09:01:45 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsvectorlayerundocommand.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/