Engauge Digitizer
2
|
Wrapper around QUndoCommand. This simplifies the more complicated feature set of QUndoCommand. More...
#include <CmdAbstract.h>
Public Member Functions | |
CmdAbstract (MainWindow &mainWindow, Document &document, const QString &cmdDescription) | |
Single constructor. | |
virtual void | cmdRedo ()=0 |
Redo method that is called when QUndoStack is moved one command forward. | |
virtual void | cmdUndo ()=0 |
Undo method that is called when QUndoStack is moved one command backward. | |
virtual void | saveXml (QXmlStreamWriter &writer) const =0 |
Save commands as xml for later uploading. | |
Protected Member Functions | |
Document & | document () |
Return the Document that this command will modify during redo and undo. | |
const Document & | document () const |
Return a const copy of the Document for non redo/undo interaction. | |
MainWindow & | mainWindow () |
Return the MainWindow so it can be updated by this command as a last step. | |
void | resetSelection (const PointIdentifiers &pointIdentifiersToSelect) |
Since the set of selected points has probably changed, changed that set back to the specified set. More... | |
Wrapper around QUndoCommand. This simplifies the more complicated feature set of QUndoCommand.
Definition at line 18 of file CmdAbstract.h.
|
protected |
Since the set of selected points has probably changed, changed that set back to the specified set.
This lets the user move selected point(s) repeatedly using arrow keys. Also provides expected behavior when pasting
Definition at line 79 of file CmdAbstract.cpp.