QGIS API Documentation  2.17.0-Master (8784312)
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...
 
QgsGeometryCachecache ()
 
virtual int id () const override
 
QgsVectorLayerlayer ()
 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 QUndoCommandchild (int index) const
 
int childCount () const
 
virtual void redo ()
 
void setText (const QString &text)
 
QString text () const
 
virtual void undo ()
 

Protected Attributes

QgsVectorLayerEditBuffermBuffer
 Associated edit buffer. More...
 

Detailed Description

Base class for undo commands within a QgsVectorLayerEditBuffer.

Definition at line 39 of file qgsvectorlayerundocommand.h.

Constructor & Destructor Documentation

QgsVectorLayerUndoCommand::QgsVectorLayerUndoCommand ( QgsVectorLayerEditBuffer buffer)
inline

Constructor for QgsVectorLayerUndoCommand.

Parameters
bufferassociated edit buffer

Definition at line 46 of file qgsvectorlayerundocommand.h.

Member Function Documentation

QgsGeometryCache* QgsVectorLayerUndoCommand::cache ( )
inline

Definition at line 53 of file qgsvectorlayerundocommand.h.

virtual int QgsVectorLayerUndoCommand::id ( ) const
inlineoverridevirtual

Reimplemented from QUndoCommand.

Reimplemented in QgsVectorLayerUndoCommandChangeGeometry.

Definition at line 55 of file qgsvectorlayerundocommand.h.

QgsVectorLayer* QgsVectorLayerUndoCommand::layer ( )
inline

Returns the layer associated with the undo command.

Definition at line 52 of file qgsvectorlayerundocommand.h.

virtual bool QgsVectorLayerUndoCommand::mergeWith ( const QUndoCommand )
inlineoverridevirtual

Reimplemented from QUndoCommand.

Reimplemented in QgsVectorLayerUndoCommandChangeGeometry.

Definition at line 56 of file qgsvectorlayerundocommand.h.

Member Data Documentation

QgsVectorLayerEditBuffer* QgsVectorLayerUndoCommand::mBuffer
protected

Associated edit buffer.

Definition at line 60 of file qgsvectorlayerundocommand.h.


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