QGIS API Documentation  2.99.0-Master (9fdd060)
Public Member Functions | Protected Attributes | List of all members
QgsVectorLayerUndoCommand Class Reference

Base class for undo commands within a QgsVectorLayerEditBuffer. More...

#include <qgsvectorlayerundocommand.h>

Inheritance diagram for QgsVectorLayerUndoCommand:
Inheritance graph
[legend]

Public Member Functions

 QgsVectorLayerUndoCommand (QgsVectorLayerEditBuffer *buffer)
 Constructor for QgsVectorLayerUndoCommand. More...
 
virtual int id () const override
 
QgsVectorLayerlayer ()
 Returns the layer associated with the undo command. More...
 
virtual bool mergeWith (const QUndoCommand *) override
 

Protected Attributes

QgsVectorLayerEditBuffermBuffer = nullptr
 Associated edit buffer. More...
 

Detailed Description

Base class for undo commands within a QgsVectorLayerEditBuffer.

Definition at line 41 of file qgsvectorlayerundocommand.h.

Constructor & Destructor Documentation

◆ QgsVectorLayerUndoCommand()

QgsVectorLayerUndoCommand::QgsVectorLayerUndoCommand ( QgsVectorLayerEditBuffer buffer)
inline

Constructor for QgsVectorLayerUndoCommand.

Parameters
bufferassociated edit buffer

Definition at line 49 of file qgsvectorlayerundocommand.h.

Member Function Documentation

◆ id()

virtual int QgsVectorLayerUndoCommand::id ( ) const
inlineoverridevirtual

Reimplemented in QgsVectorLayerUndoCommandChangeGeometry.

Definition at line 56 of file qgsvectorlayerundocommand.h.

◆ layer()

QgsVectorLayer* QgsVectorLayerUndoCommand::layer ( )
inline

Returns the layer associated with the undo command.

Definition at line 54 of file qgsvectorlayerundocommand.h.

◆ mergeWith()

virtual bool QgsVectorLayerUndoCommand::mergeWith ( const QUndoCommand *  )
inlineoverridevirtual

Reimplemented in QgsVectorLayerUndoCommandChangeGeometry.

Definition at line 57 of file qgsvectorlayerundocommand.h.

Member Data Documentation

◆ mBuffer

QgsVectorLayerEditBuffer* QgsVectorLayerUndoCommand::mBuffer = nullptr
protected

Associated edit buffer.

Definition at line 61 of file qgsvectorlayerundocommand.h.


The documentation for this class was generated from the following file: