Abstract base for all undoable commands that affect the MapCanvas.
More...
#include <mapundostack.h>
Abstract base for all undoable commands that affect the MapCanvas.
Subclasses store the before/after state needed to redo/undo the operation. They receive a pointer to the MapCanvas so they can apply the change.
◆ MapCommand()
| MapCommand::MapCommand |
( |
const QString & |
text, |
|
|
MapCanvas * |
canvas, |
|
|
QUndoCommand * |
parent = nullptr |
|
) |
| |
|
explicit |
Constructs a map command with a human-readable text.
- Parameters
-
| canvas | Non-owning pointer to the MapCanvas the command affects. |
| parent | Optional parent QUndoCommand (for command merging). |
◆ canvas()
◆ m_canvas
Non-owning pointer to the target canvas.
The documentation for this class was generated from the following files: