18 const QString &identifier,
23 m_identifier (identifier),
24 m_valueBefore (valueBefore)
31 const QString &cmdDescription,
32 QXmlStreamReader &reader) :
39 QXmlStreamAttributes attributes = reader.attributes();
41 QStringList requiredAttributesLeaf;
45 requiredAttributesLeaf,
59 <<
" identifier=" << m_identifier.toLatin1().data();
68 <<
" identifier=" << m_identifier.toLatin1().data()
69 <<
" value=" << m_valueBefore;
84 writer.writeEndElement();
const QString CMD_DESCRIPTION("Add axis point")
const QString CMD_DESCRIPTION("GuidelineRemoveXT")
const QString DOCUMENT_SERIALIZE_IDENTIFIER
const QString DOCUMENT_SERIALIZE_GRAPH_BEFORE
const QString DOCUMENT_SERIALIZE_CMD
const QString DOCUMENT_SERIALIZE_CMD_TYPE
const QString DOCUMENT_SERIALIZE_CMD_GUIDELINE_REMOVE_X_T
const QString DOCUMENT_SERIALIZE_CMD_DESCRIPTION
log4cpp::Category * mainCat
Document & document()
Return the Document that this command will modify during redo and undo.
MainWindow & mainWindow()
Return the MainWindow so it can be updated by this command as a last step.
void restoreState()
Before any other operations associated with a Cmd class are performed, this method is called to resto...
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...
void baseAttributes(QXmlStreamWriter &writer) const
After writing leaf class attributes, this writes the base class atributes.
CmdAbstract(MainWindow &mainWindow, Document &document, const QString &cmdDescription)
Single constructor.
virtual void cmdRedo()
Redo method that is called when QUndoStack is moved one command forward.
virtual void saveXml(QXmlStreamWriter &writer) const
Save commands as xml for later uploading.
virtual ~CmdGuidelineRemoveXT()
virtual void cmdUndo()
Undo method that is called when QUndoStack is moved one command backward.
CmdGuidelineRemoveXT(MainWindow &mainWindow, Document &document, const QString &identifier, double valueBefore)
Constructor for normal creation.
Storage of one imported image and the data attached to that image.
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
void guidelineRemove(const QString &identifier)
Remove a X/T or Y/R Guideline.
void guidelineAddXT(const QString &identifier, double xT)
Add a X/T Guideline.
#define LOG4CPP_INFO_S(logger)