mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-06 00:05:16 -04:00
Run clang-tidy modernize-use-override to remove all the redundant virtual keywords from overridden methods, and add some missing overrides. Another benefit is that this has also added the overrides on destructors, which will cause a build failure if a base class is missing a virtual destructor.
330 lines
7.8 KiB
Plaintext
330 lines
7.8 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/qgsvectorlayerundopassthroughcommand.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsVectorLayerUndoPassthroughCommand : QgsVectorLayerUndoCommand
|
|
{
|
|
%Docstring
|
|
Undo command for vector layer in transaction group mode.
|
|
|
|
.. versionadded:: 3.0
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsvectorlayerundopassthroughcommand.h"
|
|
%End
|
|
public:
|
|
|
|
QgsVectorLayerUndoPassthroughCommand( QgsVectorLayerEditBuffer *buffer, const QString &text, bool autocreate = true );
|
|
%Docstring
|
|
Constructor for QgsVectorLayerUndoPassthroughCommand
|
|
:param buffer: associated edit buffer
|
|
:param text: text associated with command
|
|
:param autocreate: flag allowing to automatically create a savepoint if necessary
|
|
%End
|
|
|
|
bool hasError() const;
|
|
%Docstring
|
|
Returns error status
|
|
|
|
:rtype: bool
|
|
%End
|
|
|
|
protected:
|
|
|
|
bool rollBackToSavePoint();
|
|
%Docstring
|
|
Rollback command, release savepoint or set error status
|
|
save point must be set prior to call
|
|
error satus should be false prior to call
|
|
|
|
:rtype: bool
|
|
%End
|
|
|
|
bool setSavePoint( const QString &savePointId = QString() );
|
|
%Docstring
|
|
Set the command savepoint or set error status.
|
|
Error satus should be false prior to call. If the savepoint given in
|
|
parameter is empty, then a new one is created if none is currently
|
|
available in the transaction.
|
|
|
|
:rtype: bool
|
|
%End
|
|
|
|
void setError();
|
|
%Docstring
|
|
Set error flag and append "failed" to text
|
|
%End
|
|
|
|
void setErrorMessage( const QString &errorMessage );
|
|
%Docstring
|
|
Sets the error message.
|
|
|
|
.. versionadded:: 3.0
|
|
%End
|
|
|
|
QString errorMessage() const;
|
|
%Docstring
|
|
Returns the error message or an empty string if there's none.
|
|
|
|
:rtype: str
|
|
|
|
.. versionadded:: 3.0
|
|
%End
|
|
|
|
};
|
|
|
|
|
|
class QgsVectorLayerUndoPassthroughCommandAddFeatures : QgsVectorLayerUndoPassthroughCommand
|
|
{
|
|
%Docstring
|
|
Undo command for adding a feature to a vector layer in transaction group mode.
|
|
|
|
.. versionadded:: 3.0
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsvectorlayerundopassthroughcommand.h"
|
|
%End
|
|
public:
|
|
|
|
QgsVectorLayerUndoPassthroughCommandAddFeatures( QgsVectorLayerEditBuffer *buffer /Transfer/, QgsFeatureList &features );
|
|
%Docstring
|
|
Constructor for QgsVectorLayerUndoPassthroughCommandAddFeatures
|
|
:param buffer: associated edit buffer
|
|
:param features: features to add to layer
|
|
%End
|
|
|
|
virtual void undo();
|
|
|
|
virtual void redo();
|
|
|
|
|
|
QgsFeatureList features() const;
|
|
%Docstring
|
|
List of features (added feaures can be modified by default values from database)
|
|
|
|
:rtype: QgsFeatureList
|
|
%End
|
|
|
|
};
|
|
|
|
|
|
|
|
class QgsVectorLayerUndoPassthroughCommandDeleteFeatures : QgsVectorLayerUndoPassthroughCommand
|
|
{
|
|
%Docstring
|
|
Undo command for deleting features from a vector layer in transaction group.
|
|
|
|
.. versionadded:: 3.0
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsvectorlayerundopassthroughcommand.h"
|
|
%End
|
|
public:
|
|
|
|
QgsVectorLayerUndoPassthroughCommandDeleteFeatures( QgsVectorLayerEditBuffer *buffer /Transfer/, const QgsFeatureIds &fids );
|
|
%Docstring
|
|
Constructor for QgsVectorLayerUndoPassthroughCommandDeleteFeatures
|
|
:param buffer: associated edit buffer
|
|
:param fids: feature IDs of features to delete from layer
|
|
%End
|
|
|
|
virtual void undo();
|
|
|
|
virtual void redo();
|
|
|
|
|
|
};
|
|
|
|
|
|
class QgsVectorLayerUndoPassthroughCommandChangeGeometry : QgsVectorLayerUndoPassthroughCommand
|
|
{
|
|
%Docstring
|
|
Undo command for changing feature geometry from a vector layer in transaction group.
|
|
|
|
.. versionadded:: 3.0
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsvectorlayerundopassthroughcommand.h"
|
|
%End
|
|
public:
|
|
|
|
QgsVectorLayerUndoPassthroughCommandChangeGeometry( QgsVectorLayerEditBuffer *buffer /Transfer/, const QgsFeatureId &fid, const QgsGeometry &geom );
|
|
%Docstring
|
|
Constructor for QgsVectorLayerUndoPassthroughCommandChangeGeometry
|
|
:param buffer: associated edit buffer
|
|
:param fid: feature ID of feature to change
|
|
:param geom: new geometru
|
|
%End
|
|
|
|
virtual void undo();
|
|
|
|
virtual void redo();
|
|
|
|
|
|
};
|
|
|
|
|
|
class QgsVectorLayerUndoPassthroughCommandChangeAttribute: QgsVectorLayerUndoPassthroughCommand
|
|
{
|
|
%Docstring
|
|
Undo command for changing attr value from a vector layer in transaction group.
|
|
|
|
.. versionadded:: 3.0
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsvectorlayerundopassthroughcommand.h"
|
|
%End
|
|
public:
|
|
|
|
QgsVectorLayerUndoPassthroughCommandChangeAttribute( QgsVectorLayerEditBuffer *buffer /Transfer/, QgsFeatureId fid, int field, const QVariant &newValue );
|
|
%Docstring
|
|
Constructor for QgsVectorLayerUndoPassthroughCommandChangeAttribute
|
|
:param buffer: associated edit buffer
|
|
:param fid: feature ID of feature
|
|
:param field:
|
|
:param newValue:
|
|
%End
|
|
|
|
virtual void undo();
|
|
|
|
virtual void redo();
|
|
|
|
|
|
};
|
|
|
|
|
|
class QgsVectorLayerUndoPassthroughCommandAddAttribute : QgsVectorLayerUndoPassthroughCommand
|
|
{
|
|
%Docstring
|
|
Undo command for adding attri to a vector layer in transaction group.
|
|
|
|
.. versionadded:: 3.0
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsvectorlayerundopassthroughcommand.h"
|
|
%End
|
|
public:
|
|
|
|
QgsVectorLayerUndoPassthroughCommandAddAttribute( QgsVectorLayerEditBuffer *buffer /Transfer/, const QgsField &field );
|
|
%Docstring
|
|
Constructor for QgsVectorLayerUndoPassthroughCommandAddAttribute
|
|
:param buffer: associated edit buffer
|
|
:param field:
|
|
%End
|
|
|
|
virtual void undo();
|
|
|
|
virtual void redo();
|
|
|
|
|
|
};
|
|
|
|
|
|
class QgsVectorLayerUndoPassthroughCommandDeleteAttribute : QgsVectorLayerUndoPassthroughCommand
|
|
{
|
|
%Docstring
|
|
Undo command for deleting attri of a vector layer in transaction group.
|
|
|
|
.. versionadded:: 3.0
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsvectorlayerundopassthroughcommand.h"
|
|
%End
|
|
public:
|
|
|
|
QgsVectorLayerUndoPassthroughCommandDeleteAttribute( QgsVectorLayerEditBuffer *buffer /Transfer/, int attr );
|
|
%Docstring
|
|
Constructor for QgsVectorLayerUndoCommandDeleteAttribute
|
|
:param buffer: associated edit buffer
|
|
:param attr:
|
|
%End
|
|
|
|
virtual void undo();
|
|
|
|
virtual void redo();
|
|
|
|
|
|
};
|
|
|
|
|
|
class QgsVectorLayerUndoPassthroughCommandRenameAttribute : QgsVectorLayerUndoPassthroughCommand
|
|
{
|
|
%Docstring
|
|
Undo command for deleting attri of a vector layer in transaction group.
|
|
|
|
.. versionadded:: 3.0
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsvectorlayerundopassthroughcommand.h"
|
|
%End
|
|
public:
|
|
|
|
QgsVectorLayerUndoPassthroughCommandRenameAttribute( QgsVectorLayerEditBuffer *buffer /Transfer/, int attr, const QString &newName );
|
|
%Docstring
|
|
Constructor for QgsVectorLayerUndoCommandRenameAttribute
|
|
:param buffer: associated edit buffer
|
|
:param attr:
|
|
:param newName:
|
|
%End
|
|
|
|
virtual void undo();
|
|
|
|
virtual void redo();
|
|
|
|
|
|
};
|
|
|
|
|
|
class QgsVectorLayerUndoPassthroughCommandUpdate : QgsVectorLayerUndoPassthroughCommand
|
|
{
|
|
%Docstring
|
|
Undo command for running a specific sql query in transaction group.
|
|
|
|
.. versionadded:: 3.0
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsvectorlayerundopassthroughcommand.h"
|
|
%End
|
|
public:
|
|
|
|
QgsVectorLayerUndoPassthroughCommandUpdate( QgsVectorLayerEditBuffer *buffer /Transfer/, QgsTransaction *transaction, const QString &sql );
|
|
%Docstring
|
|
Constructor for QgsVectorLayerUndoCommandUpdate
|
|
:param buffer: associated edit buffer
|
|
:param transaction: transaction running the sql query
|
|
:param sql: the query
|
|
%End
|
|
|
|
virtual void undo();
|
|
|
|
virtual void redo();
|
|
|
|
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/qgsvectorlayerundopassthroughcommand.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|