Engauge Digitizer  2
Public Member Functions | List of all members
CmdUndoForTest Class Reference

Command for performing Undo during testing. More...

#include <CmdUndoForTest.h>

Inheritance diagram for CmdUndoForTest:
CmdAbstract

Public Member Functions

 CmdUndoForTest (MainWindow &mainWindow, Document &document)
 Constructor for normal creation.
 
 CmdUndoForTest (MainWindow &mainWindow, Document &document, const QString &cmdDescription, QXmlStreamReader &reader)
 Constructor for parsing error report file xml.
 
virtual void cmdRedo ()
 Redo method that is called when QUndoStack is moved one command forward.
 
virtual void cmdUndo ()
 Undo method that is called when QUndoStack is moved one command backward.
 
virtual void saveXml (QXmlStreamWriter &writer) const
 Save commands as xml for later uploading.
 
- Public Member Functions inherited from CmdAbstract
 CmdAbstract (MainWindow &mainWindow, Document &document, const QString &cmdDescription)
 Single constructor.
 

Additional Inherited Members

- Protected Member Functions inherited from CmdAbstract
Documentdocument ()
 Return the Document that this command will modify during redo and undo.
 
const Documentdocument () const
 Return a const copy of the Document for non redo/undo interaction.
 
MainWindowmainWindow ()
 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...
 
void saveOrCheckPostCommandDocumentStateHash (const Document &document)
 Save, when called the first time, a hash value representing the state of the Document. More...
 
void saveOrCheckPreCommandDocumentStateHash (const Document &document)
 Save, when called the first time, a hash value representing the state of the Document. More...
 

Detailed Description

Command for performing Undo during testing.

This command is never created automatically, since when the user triggers an Undo that just results in the command stack getting backed up by one command. This command is manually created by editing an xml test file

Definition at line 20 of file CmdUndoForTest.h.


The documentation for this class was generated from the following files: