QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Public Member Functions | List of all members
QgsVectorLayerUndoCommandAddAttribute Class Reference

Undo command for adding a new attribute to a vector layer. More...

#include <qgsvectorlayerundocommand.h>

Inheritance diagram for QgsVectorLayerUndoCommandAddAttribute:
Inheritance graph
[legend]

Public Member Functions

 QgsVectorLayerUndoCommandAddAttribute (QgsVectorLayerEditBuffer *buffer, const QgsField &field)
 Constructor for QgsVectorLayerUndoCommandAddAttribute. More...
 
virtual void redo () override
 
virtual void undo () override
 
- Public Member Functions inherited from QgsVectorLayerUndoCommand
 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
 
void setText (const QString &text)
 
QString text () const
 

Additional Inherited Members

- Protected Attributes inherited from QgsVectorLayerUndoCommand
QgsVectorLayerEditBuffermBuffer
 Associated edit buffer. More...
 

Detailed Description

Undo command for adding a new attribute to a vector layer.

Definition at line 172 of file qgsvectorlayerundocommand.h.

Constructor & Destructor Documentation

◆ QgsVectorLayerUndoCommandAddAttribute()

QgsVectorLayerUndoCommandAddAttribute::QgsVectorLayerUndoCommandAddAttribute ( QgsVectorLayerEditBuffer buffer,
const QgsField field 
)

Constructor for QgsVectorLayerUndoCommandAddAttribute.

Parameters
bufferassociated edit buffer
fielddefinition of new field to add

Definition at line 310 of file qgsvectorlayerundocommand.cpp.

Member Function Documentation

◆ redo()

void QgsVectorLayerUndoCommandAddAttribute::redo ( )
overridevirtual

Reimplemented from QUndoCommand.

Definition at line 332 of file qgsvectorlayerundocommand.cpp.

◆ undo()

void QgsVectorLayerUndoCommandAddAttribute::undo ( )
overridevirtual

Reimplemented from QUndoCommand.

Definition at line 321 of file qgsvectorlayerundocommand.cpp.


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