QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
|
Base class for undo commands within a QgsVectorLayerEditBuffer. More...
#include <qgsvectorlayerundocommand.h>
Public Member Functions | |
QgsVectorLayerUndoCommand (QgsVectorLayerEditBuffer *buffer) | |
Constructor for QgsVectorLayerUndoCommand. More... | |
QgsGeometryCache * | cache () |
virtual int | id () const override |
QgsVectorLayer * | layer () |
Returns the layer associated with the undo command. More... | |
virtual bool | mergeWith (const QUndoCommand *) override |
Public Member Functions inherited from QUndoCommand | |
QUndoCommand (QUndoCommand *parent) | |
QUndoCommand (const QString &text, QUndoCommand *parent) | |
virtual | ~QUndoCommand () |
QString | actionText () const |
const QUndoCommand * | child (int index) const |
int | childCount () const |
virtual void | redo () |
void | setText (const QString &text) |
QString | text () const |
virtual void | undo () |
Protected Attributes | |
QgsVectorLayerEditBuffer * | mBuffer |
Associated edit buffer. More... | |
Base class for undo commands within a QgsVectorLayerEditBuffer.
Definition at line 39 of file qgsvectorlayerundocommand.h.
|
inline |
Constructor for QgsVectorLayerUndoCommand.
buffer | associated edit buffer |
Definition at line 46 of file qgsvectorlayerundocommand.h.
|
inline |
Definition at line 53 of file qgsvectorlayerundocommand.h.
|
inlineoverridevirtual |
Reimplemented from QUndoCommand.
Reimplemented in QgsVectorLayerUndoCommandChangeGeometry.
Definition at line 55 of file qgsvectorlayerundocommand.h.
|
inline |
Returns the layer associated with the undo command.
Definition at line 52 of file qgsvectorlayerundocommand.h.
|
inlineoverridevirtual |
Reimplemented from QUndoCommand.
Reimplemented in QgsVectorLayerUndoCommandChangeGeometry.
Definition at line 56 of file qgsvectorlayerundocommand.h.
|
protected |
Associated edit buffer.
Definition at line 60 of file qgsvectorlayerundocommand.h.