|
| | EditFeatureAttributesCommand (FeatureLayer *layer, openswmmvis::feature::FeatureId id, const QVariantMap &oldAttrs, const QVariantMap &newAttrs, MapCanvas *canvas, QUndoCommand *parent=nullptr) |
| |
| void | redo () override |
| |
| void | undo () override |
| |
Public Member Functions inherited from openswmmvis::map::FeatureCommandBase |
| | FeatureCommandBase (const QString &text, FeatureLayer *layer, MapCanvas *canvas, QUndoCommand *parent=nullptr) |
| |
| FeatureLayer * | layer () const |
| |
| QString | lastError () const |
| | The message from the last failed apply, for the caller to show. Empty when the command has not failed.
|
| |
Public Member Functions inherited from MapCommand |
| | MapCommand (const QString &text, MapCanvas *canvas, QUndoCommand *parent=nullptr) |
| | Constructs a map command with a human-readable text.
|
| |
| MapCanvas * | canvas () const |
| |
Replace one feature's attributes.
Used by the attribute table and the property panel alike, which is what keeps the two views synchronised through one undo history.