Engauge Digitizer 2
|
Command for changing the currently selected CoordSystem. More...
#include <CmdSelectCoordSystem.h>
Public Member Functions | |
CmdSelectCoordSystem (MainWindow &mainWindow, Document &document, CoordSystemIndex coordSystem) | |
Constructor for normal creation. | |
CmdSelectCoordSystem (MainWindow &mainWindow, Document &document, const QString &cmdDescription, QXmlStreamReader &reader) | |
Constructor for parsing error report file xml. | |
virtual | ~CmdSelectCoordSystem () |
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. | |
virtual | ~CmdAbstract () |
Additional Inherited Members | |
Protected Member Functions inherited from CmdAbstract | |
void | baseAttributes (QXmlStreamWriter &writer) const |
After writing leaf class attributes, this writes the base class atributes. | |
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. | |
void | leafAttributes (const QXmlStreamAttributes &attributes, const QStringList &requiredAttributesLeaf, QXmlStreamReader &reader) |
Same as often-used leafAndBaseAttributes, except this is used in the special case where a class inherits from another class (e.g. | |
void | leafAndBaseAttributes (const QXmlStreamAttributes &attributes, const QStringList &requiredAttributesLeaf, QXmlStreamReader &reader) |
Before reading leaf class attributes, check all required attributes from leaf and this base class are included, then extract the parent class attributes. | |
MainWindow & | mainWindow () |
Return the MainWindow so it can be updated by this command as a last step. | |
void | resetSelection (const PointIdentifiers &pointIdentifiersToSelect) |
Call this (for consistency) after writing leaf class attributes, to write the base class attributes. | |
void | restoreState () |
Before any other operations associated with a Cmd class are performed, this method is called to restore original states to all relevant state machines. | |
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. | |
void | selectAddedPointForMoving (const QString &pointAdded) |
Select point that was just added so it can be moved by the user next for convenience. | |
void | selectAddedPointsForMoving (const QStringList &pointsAdded) |
Select points that were just added so they can be moved by the user next for convenience. |
Command for changing the currently selected CoordSystem.
Definition at line 16 of file CmdSelectCoordSystem.h.
CmdSelectCoordSystem::CmdSelectCoordSystem | ( | MainWindow & | mainWindow, |
Document & | document, | ||
CoordSystemIndex | coordSystem ) |
Constructor for normal creation.
Definition at line 23 of file CmdSelectCoordSystem.cpp.
CmdSelectCoordSystem::CmdSelectCoordSystem | ( | MainWindow & | mainWindow, |
Document & | document, | ||
const QString & | cmdDescription, | ||
QXmlStreamReader & | reader ) |
Constructor for parsing error report file xml.
Definition at line 35 of file CmdSelectCoordSystem.cpp.
|
virtual |
Definition at line 58 of file CmdSelectCoordSystem.cpp.
|
virtual |
Redo method that is called when QUndoStack is moved one command forward.
Implements CmdAbstract.
Definition at line 62 of file CmdSelectCoordSystem.cpp.
|
virtual |
Undo method that is called when QUndoStack is moved one command backward.
Implements CmdAbstract.
Definition at line 73 of file CmdSelectCoordSystem.cpp.
|
virtual |
Save commands as xml for later uploading.
Implements CmdAbstract.
Definition at line 84 of file CmdSelectCoordSystem.cpp.