mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			362 lines
		
	
	
		
			8.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			362 lines
		
	
	
		
			8.6 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
 | 
						|
%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
 | 
						|
%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.
 | 
						|
%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.
 | 
						|
 | 
						|
.. 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)
 | 
						|
%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/, 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 QgsVectorLayerUndoPassthroughCommandChangeAttributes: QgsVectorLayerUndoPassthroughCommand
 | 
						|
{
 | 
						|
%Docstring
 | 
						|
Undo command for changing attributes' values from a vector layer in transaction group.
 | 
						|
 | 
						|
.. versionadded:: 3.0
 | 
						|
%End
 | 
						|
 | 
						|
%TypeHeaderCode
 | 
						|
#include "qgsvectorlayerundopassthroughcommand.h"
 | 
						|
%End
 | 
						|
  public:
 | 
						|
 | 
						|
    QgsVectorLayerUndoPassthroughCommandChangeAttributes( QgsVectorLayerEditBuffer *buffer /Transfer/, QgsFeatureId fid, const QgsAttributeMap &newValues, const QgsAttributeMap &oldValues = QgsAttributeMap() );
 | 
						|
%Docstring
 | 
						|
Constructor for QgsVectorLayerUndoPassthroughCommandChangeAttributes
 | 
						|
 | 
						|
:param buffer: associated edit buffer
 | 
						|
:param fid: feature ID of feature
 | 
						|
:param newValues: New values for attributes
 | 
						|
:param oldValues: Old values for attributes
 | 
						|
%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 :py:class:`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 :py:class:`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, const QString &name );
 | 
						|
%Docstring
 | 
						|
Constructor for :py:class:`QgsVectorLayerUndoCommandUpdate`
 | 
						|
 | 
						|
:param buffer: associated edit buffer
 | 
						|
:param transaction: transaction running the sql query
 | 
						|
:param sql: the query
 | 
						|
:param name: The name of the command
 | 
						|
%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   *
 | 
						|
 ************************************************************************/
 |