Engauge Digitizer 2
|
Command for editing the graph coordinates of one or more graph points. More...
#include <CmdEditPointGraph.h>
Public Member Functions | |
CmdEditPointGraph (MainWindow &mainWindow, Document &document, const QStringList &pointIdentifiers, bool isX, bool isY, double x, double y) | |
Constructor for normal creation. | |
CmdEditPointGraph (MainWindow &mainWindow, Document &document, const QString &cmdDescription, QXmlStreamReader &reader) | |
Constructor for parsing error report file xml. | |
virtual | ~CmdEditPointGraph () |
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. | |
![]() | |
CmdPointChangeBase (MainWindow &mainWindow, Document &document, const QString &cmdDescription) | |
Single constructor. | |
virtual | ~CmdPointChangeBase () |
![]() | |
CmdAbstract (MainWindow &mainWindow, Document &document, const QString &cmdDescription) | |
Single constructor. | |
virtual | ~CmdAbstract () |
Additional Inherited Members | |
![]() | |
void | restoreDocumentState (Document &document) const |
Restore the document previously saved by saveDocumentState. | |
void | saveDocumentState (const Document &document) |
Save the document state for restoration by restoreDocumentState. | |
![]() | |
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. | |
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. | |
Command for editing the graph coordinates of one or more graph points.
The screen coordinates are handled by another command
Definition at line 18 of file CmdEditPointGraph.h.
CmdEditPointGraph::CmdEditPointGraph | ( | MainWindow & | mainWindow, |
Document & | document, | ||
const QStringList & | pointIdentifiers, | ||
bool | isX, | ||
bool | isY, | ||
double | x, | ||
double | y ) |
Constructor for normal creation.
Definition at line 20 of file CmdEditPointGraph.cpp.
CmdEditPointGraph::CmdEditPointGraph | ( | MainWindow & | mainWindow, |
Document & | document, | ||
const QString & | cmdDescription, | ||
QXmlStreamReader & | reader ) |
Constructor for parsing error report file xml.
Definition at line 42 of file CmdEditPointGraph.cpp.
|
virtual |
Definition at line 110 of file CmdEditPointGraph.cpp.
|
virtual |
Redo method that is called when QUndoStack is moved one command forward.
Implements CmdAbstract.
Definition at line 114 of file CmdEditPointGraph.cpp.
|
virtual |
Undo method that is called when QUndoStack is moved one command backward.
Implements CmdAbstract.
Definition at line 131 of file CmdEditPointGraph.cpp.
|
virtual |
Save commands as xml for later uploading.
Implements CmdAbstract.
Definition at line 141 of file CmdEditPointGraph.cpp.