1/************************************************************************ 2 * This file has been generated automatically from * 3 * * 4 * src/core/qgsvectorlayerundocommand.h * 5 * * 6 * Do not edit manually ! Edit header and run scripts/sipify.pl again * 7 ************************************************************************/ 8 9 10 11 12 13 14 15 16class QgsVectorLayerUndoCommand : QUndoCommand 17{ 18%Docstring 19Base class for undo commands within a QgsVectorLayerEditBuffer. 20%End 21 22%TypeHeaderCode 23#include "qgsvectorlayerundocommand.h" 24%End 25 public: 26 27 QgsVectorLayerUndoCommand( QgsVectorLayerEditBuffer *buffer /Transfer/ ); 28%Docstring 29Constructor for QgsVectorLayerUndoCommand 30 31:param buffer: associated edit buffer 32%End 33 34 QgsVectorLayer *layer(); 35%Docstring 36Returns the layer associated with the undo command 37%End 38 39 virtual int id() const; 40 virtual bool mergeWith( const QUndoCommand * ); 41 42 protected: 43}; 44 45 46 47class QgsVectorLayerUndoCommandAddFeature : QgsVectorLayerUndoCommand 48{ 49%Docstring 50Undo command for adding a feature to a vector layer. 51%End 52 53%TypeHeaderCode 54#include "qgsvectorlayerundocommand.h" 55%End 56 public: 57 58 QgsVectorLayerUndoCommandAddFeature( QgsVectorLayerEditBuffer *buffer /Transfer/, QgsFeature &f ); 59%Docstring 60Constructor for QgsVectorLayerUndoCommandAddFeature 61 62:param buffer: associated edit buffer 63:param f: feature to add to layer 64%End 65 66 virtual void undo(); 67 68 virtual void redo(); 69 70 71}; 72 73 74 75class QgsVectorLayerUndoCommandDeleteFeature : QgsVectorLayerUndoCommand 76{ 77%Docstring 78Undo command for deleting a feature from a vector layer. 79%End 80 81%TypeHeaderCode 82#include "qgsvectorlayerundocommand.h" 83%End 84 public: 85 86 QgsVectorLayerUndoCommandDeleteFeature( QgsVectorLayerEditBuffer *buffer /Transfer/, QgsFeatureId fid ); 87%Docstring 88Constructor for QgsVectorLayerUndoCommandDeleteFeature 89 90:param buffer: associated edit buffer 91:param fid: feature ID of feature to delete from layer 92%End 93 94 virtual void undo(); 95 96 virtual void redo(); 97 98 99}; 100 101 102class QgsVectorLayerUndoCommandChangeGeometry : QgsVectorLayerUndoCommand 103{ 104%Docstring 105Undo command for modifying the geometry of a feature from a vector layer. 106%End 107 108%TypeHeaderCode 109#include "qgsvectorlayerundocommand.h" 110%End 111 public: 112 113 QgsVectorLayerUndoCommandChangeGeometry( QgsVectorLayerEditBuffer *buffer /Transfer/, QgsFeatureId fid, const QgsGeometry &newGeom ); 114%Docstring 115Constructor for QgsVectorLayerUndoCommandChangeGeometry 116 117:param buffer: associated edit buffer 118:param fid: feature ID of feature to modify geometry of 119:param newGeom: new geometry for feature 120%End 121 122 virtual void undo(); 123 124 virtual void redo(); 125 126 virtual int id() const; 127 128 virtual bool mergeWith( const QUndoCommand * ); 129 130 131}; 132 133 134 135class QgsVectorLayerUndoCommandChangeAttribute : QgsVectorLayerUndoCommand 136{ 137%Docstring 138Undo command for modifying an attribute of a feature from a vector layer. 139%End 140 141%TypeHeaderCode 142#include "qgsvectorlayerundocommand.h" 143%End 144 public: 145 146 QgsVectorLayerUndoCommandChangeAttribute( QgsVectorLayerEditBuffer *buffer /Transfer/, QgsFeatureId fid, int fieldIndex, const QVariant &newValue, const QVariant &oldValue ); 147%Docstring 148Constructor for QgsVectorLayerUndoCommandChangeAttribute 149 150:param buffer: associated edit buffer 151:param fid: feature ID of feature to modify 152:param fieldIndex: index of field to modify 153:param newValue: new value of attribute 154:param oldValue: previous value of attribute 155%End 156 virtual void undo(); 157 158 virtual void redo(); 159 160 161}; 162 163 164class QgsVectorLayerUndoCommandAddAttribute : QgsVectorLayerUndoCommand 165{ 166%Docstring 167Undo command for adding a new attribute to a vector layer. 168%End 169 170%TypeHeaderCode 171#include "qgsvectorlayerundocommand.h" 172%End 173 public: 174 175 QgsVectorLayerUndoCommandAddAttribute( QgsVectorLayerEditBuffer *buffer /Transfer/, const QgsField &field ); 176%Docstring 177Constructor for QgsVectorLayerUndoCommandAddAttribute 178 179:param buffer: associated edit buffer 180:param field: definition of new field to add 181%End 182 183 virtual void undo(); 184 185 virtual void redo(); 186 187 188}; 189 190 191class QgsVectorLayerUndoCommandDeleteAttribute : QgsVectorLayerUndoCommand 192{ 193%Docstring 194Undo command for removing an existing attribute from a vector layer. 195%End 196 197%TypeHeaderCode 198#include "qgsvectorlayerundocommand.h" 199%End 200 public: 201 202 QgsVectorLayerUndoCommandDeleteAttribute( QgsVectorLayerEditBuffer *buffer /Transfer/, int fieldIndex ); 203%Docstring 204Constructor for QgsVectorLayerUndoCommandDeleteAttribute 205 206:param buffer: associated edit buffer 207:param fieldIndex: index of field to delete 208%End 209 210 virtual void undo(); 211 212 virtual void redo(); 213 214 215}; 216 217 218 219class QgsVectorLayerUndoCommandRenameAttribute : QgsVectorLayerUndoCommand 220{ 221%Docstring 222Undo command for renaming an existing attribute of a vector layer. 223 224.. versionadded:: 2.16 225%End 226 227%TypeHeaderCode 228#include "qgsvectorlayerundocommand.h" 229%End 230 public: 231 232 QgsVectorLayerUndoCommandRenameAttribute( QgsVectorLayerEditBuffer *buffer /Transfer/, int fieldIndex, const QString &newName ); 233%Docstring 234Constructor for QgsVectorLayerUndoCommandRenameAttribute 235 236:param buffer: associated edit buffer 237:param fieldIndex: index of field to rename 238:param newName: new name for field 239%End 240 241 virtual void undo(); 242 243 virtual void redo(); 244 245 246}; 247 248/************************************************************************ 249 * This file has been generated automatically from * 250 * * 251 * src/core/qgsvectorlayerundocommand.h * 252 * * 253 * Do not edit manually ! Edit header and run scripts/sipify.pl again * 254 ************************************************************************/ 255