Engauge Digitizer  2
Public Member Functions | Protected Member Functions | List of all members
CmdAbstract Class Referenceabstract

Wrapper around QUndoCommand. This simplifies the more complicated feature set of QUndoCommand. More...

#include <CmdAbstract.h>

Inheritance diagram for CmdAbstract:
CmdAddPointAxis CmdAddPointGraph CmdAddPointsGraph CmdCopy CmdCut CmdDelete CmdEditPointAxis CmdMoveBy CmdPaste CmdSettingsAxesChecker CmdSettingsColorFilter CmdSettingsCommon CmdSettingsCoords CmdSettingsCurveAddRemove CmdSettingsCurveProperties CmdSettingsDigitizeCurve CmdSettingsExportFormat CmdSettingsGridRemoval CmdSettingsPointMatch CmdSettingsSegments

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

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.
 

Detailed Description

Wrapper around QUndoCommand. This simplifies the more complicated feature set of QUndoCommand.

Definition at line 11 of file CmdAbstract.h.


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