Base class for CmdBase leaf subclasses that involve point additions, deletions and/or modifications. More...
#include <CmdPointChangeBase.h>
Public Member Functions | |
CmdPointChangeBase (MainWindow &mainWindow, Document &document, const QString &cmdDescription) | |
Single constructor. | |
Protected Member Functions | |
void | restoreDocumentState (Document &document) const |
Restore the document previously saved by saveDocumentState. | |
void | saveDocumentState (const Document &document) |
Save the document state for restoration by restoreDocumentState. |
Base class for CmdBase leaf subclasses that involve point additions, deletions and/or modifications.
This class uses a strategy of taking a snapshot of all points before the redo, and then applying that snapshot to the Document to (later) perform the undo. Before this strategy, the strategy was to just do the opposite steps of the redo, but that strategy was too fragile since it implicity assumed no point changes occurred after the redo of this command and before the redo of the next command. However, point updates like "ordinal maintenance" do occur during that time period
Definition at line 22 of file CmdPointChangeBase.h.