Engauge Digitizer
2
|
Command for adding one axis point. More...
#include <CmdAddPointAxis.h>
Public Member Functions | |
CmdAddPointAxis (MainWindow &mainWindow, Document &document, const QPointF &posScreen, const QPointF &posGraph, double ordinal, bool isXOnly) | |
Constructor for normal creation. More... | |
CmdAddPointAxis (MainWindow &mainWindow, Document &document, const QString &cmdDescription, QXmlStreamReader &reader) | |
Constructor for parsing error report file xml. More... | |
virtual | ~CmdAddPointAxis () |
virtual void | cmdRedo () |
Redo method that is called when QUndoStack is moved one command forward. More... | |
virtual void | cmdUndo () |
Undo method that is called when QUndoStack is moved one command backward. More... | |
virtual void | saveXml (QXmlStreamWriter &writer) const |
Save commands as xml for later uploading. More... | |
![]() | |
CmdPointChangeBase (MainWindow &mainWindow, Document &document, const QString &cmdDescription) | |
Single constructor. More... | |
virtual | ~CmdPointChangeBase () |
![]() | |
CmdAbstract (MainWindow &mainWindow, Document &document, const QString &cmdDescription) | |
Single constructor. More... | |
virtual | ~CmdAbstract () |
Additional Inherited Members | |
![]() | |
void | restoreDocumentState (Document &document) const |
Restore the document previously saved by saveDocumentState. More... | |
void | saveDocumentState (const Document &document) |
Save the document state for restoration by restoreDocumentState. More... | |
![]() | |
Document & | document () |
Return the Document that this command will modify during redo and undo. More... | |
const Document & | document () const |
Return a const copy of the Document for non redo/undo interaction. More... | |
MainWindow & | mainWindow () |
Return the MainWindow so it can be updated by this command as a last step. More... | |
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... | |
Command for adding one axis point.
Definition at line 16 of file CmdAddPointAxis.h.
CmdAddPointAxis::CmdAddPointAxis | ( | MainWindow & | mainWindow, |
Document & | document, | ||
const QPointF & | posScreen, | ||
const QPointF & | posGraph, | ||
double | ordinal, | ||
bool | isXOnly | ||
) |
Constructor for normal creation.
Definition at line 19 of file CmdAddPointAxis.cpp.
CmdAddPointAxis::CmdAddPointAxis | ( | MainWindow & | mainWindow, |
Document & | document, | ||
const QString & | cmdDescription, | ||
QXmlStreamReader & | reader | ||
) |
Constructor for parsing error report file xml.
Definition at line 39 of file CmdAddPointAxis.cpp.
|
virtual |
Definition at line 81 of file CmdAddPointAxis.cpp.
|
virtual |
Redo method that is called when QUndoStack is moved one command forward.
Implements CmdAbstract.
Definition at line 85 of file CmdAddPointAxis.cpp.
|
virtual |
Undo method that is called when QUndoStack is moved one command backward.
Implements CmdAbstract.
Definition at line 101 of file CmdAddPointAxis.cpp.
|
virtual |
Save commands as xml for later uploading.
Implements CmdAbstract.
Definition at line 111 of file CmdAddPointAxis.cpp.