14 #include <QApplication> 16 #include <QTextStream> 18 #include <QXmlStreamReader> 28 m_coordSystemIndexBefore (document.coordSystemIndex()),
29 m_coordSystemIndexAfter (coordSystemIndex)
36 const QString &cmdDescription,
37 QXmlStreamReader & ) :
52 <<
" index=" << m_coordSystemIndexBefore <<
"->" << m_coordSystemIndexAfter;
62 <<
" index=" << m_coordSystemIndexAfter <<
"->" << m_coordSystemIndexBefore;
72 writer.writeEndElement();
void updateCoordSystem(CoordSystemIndex coordSystemIndex)
Select a different CoordSystem.
virtual void saveXml(QXmlStreamWriter &writer) const
Save commands as xml for later uploading.
Wrapper around QUndoCommand. This simplifies the more complicated feature set of QUndoCommand.
#define LOG4CPP_INFO_S(logger)
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.
virtual void cmdUndo()
Undo method that is called when QUndoStack is moved one command backward.
virtual void cmdRedo()
Redo method that is called when QUndoStack is moved one command forward.
MainWindow & mainWindow()
Return the MainWindow so it can be updated by this command as a last step.
Storage of one imported image and the data attached to that image.
CmdSelectCoordSystem(MainWindow &mainWindow, Document &document, CoordSystemIndex coordSystem)
Constructor for normal creation.
log4cpp::Category * mainCat
unsigned int CoordSystemIndex
Zero-based index for identifying CoordSystem instantiations.
Document & document()
Return the Document that this command will modify during redo and undo.
const QString DOCUMENT_SERIALIZE_CMD
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
const QString CMD_DESCRIPTION("Select Coordinate System")
virtual ~CmdSelectCoordSystem()