10 #include "DocumentHash.h" 11 #include "PointIdentifiers.h" 12 #include <QUndoCommand> 16 class QXmlStreamWriter;
25 const QString &cmdDescription);
36 virtual void saveXml (QXmlStreamWriter &writer)
const = 0;
73 unsigned int m_identifierIndexBeforeRedo;
74 unsigned int m_identifierIndexAfterRedo;
77 DocumentHash m_documentHashPost;
78 DocumentHash m_documentHashPre;
81 #endif // CMD_ABSTRACT_H Hash table class that tracks point identifiers as the key, with a corresponding boolean value...
Wrapper around QUndoCommand. This simplifies the more complicated feature set of QUndoCommand.
virtual void cmdRedo()=0
Redo method that is called when QUndoStack is moved one command forward.
void saveOrCheckPostCommandDocumentStateHash(const Document &document)
Save, when called the first time, a hash value representing the state of the Document.
void saveOrCheckPreCommandDocumentStateHash(const Document &document)
Save, when called the first time, a hash value representing the state of the Document.
MainWindow & mainWindow()
Return the MainWindow so it can be updated by this command as a last step.
Storage of one imported image and the data attached to that image.
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.
Document & document()
Return the Document that this command will modify during redo and undo.
void resetSelection(const PointIdentifiers &pointIdentifiersToSelect)
Since the set of selected points has probably changed, changed that set back to the specified set...
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...