#include <addtocalc.h>
Public Member Functions | |
AddToCalc (const QDomElement &xml, VAbstractPattern *doc, QUndoCommand *parent=nullptr) | |
virtual | ~AddToCalc ()=default |
virtual void | undo () Q_DECL_OVERRIDE |
virtual void | redo () Q_DECL_OVERRIDE |
Public Member Functions inherited from VUndoCommand | |
VUndoCommand (const QDomElement &xml, VAbstractPattern *doc, QUndoCommand *parent=nullptr) | |
virtual | ~VUndoCommand ()=default |
Protected Member Functions | |
virtual void | RedoFullParsing () Q_DECL_OVERRIDE |
Protected Member Functions inherited from VUndoCommand | |
void | UndoDeleteAfterSibling (QDomNode &parentNode, const quint32 &siblingId) const |
void | IncrementReferences (const QVector< quint32 > &nodes) const |
void | DecrementReferences (const QVector< quint32 > &nodes) const |
void | IncrementReferences (const QVector< CustomSARecord > &nodes) const |
void | DecrementReferences (const QVector< CustomSARecord > &nodes) const |
void | IncrementReferences (const QVector< VPieceNode > &nodes) const |
void | DecrementReferences (const QVector< VPieceNode > &nodes) const |
QDomElement | getDestinationObject (quint32 idTool, quint32 idPoint) const |
Private Attributes | |
const QString | activeBlockName |
quint32 | cursor |
Additional Inherited Members | |
Signals inherited from VUndoCommand | |
void | ClearScene () |
void | NeedFullParsing () |
void | NeedLiteParsing (const Document &parse) |
Protected Attributes inherited from VUndoCommand | |
QDomElement | xml |
VAbstractPattern * | doc |
quint32 | nodeId |
bool | redoFlag |
Definition at line 64 of file addtocalc.h.
AddToCalc::AddToCalc | ( | const QDomElement & | xml, |
VAbstractPattern * | doc, | ||
QUndoCommand * | parent = nullptr |
||
) |
Definition at line 65 of file addtocalc.cpp.
References VUndoCommand::doc, VDomDocument::getParameterId(), VUndoCommand::nodeId, and VUndoCommand::xml.
|
virtualdefault |
|
virtual |
Definition at line 108 of file addtocalc.cpp.
References activeBlockName, VAbstractPattern::changeActiveDraftBlock(), cursor, VUndoCommand::doc, VDomDocument::elementById(), VAbstractPattern::getActiveNodeElement(), VMainGraphicsView::NewSceneRect(), NULL_ID, qApp, RedoFullParsing(), VAbstractPattern::setCursor(), VAbstractPattern::TagCalculation, and VUndoCommand::xml.
|
protectedvirtual |
Reimplemented from VUndoCommand.
Definition at line 146 of file addtocalc.cpp.
References activeBlockName, VUndoCommand::doc, VUndoCommand::NeedFullParsing(), VUndoCommand::redoFlag, and VAbstractPattern::setCurrentDraftBlock().
Referenced by redo().
|
virtual |
Definition at line 73 of file addtocalc.cpp.
References activeBlockName, VAbstractPattern::changeActiveDraftBlock(), VUndoCommand::doc, VDomDocument::elementById(), VAbstractPattern::getActiveNodeElement(), VUndoCommand::NeedFullParsing(), VMainGraphicsView::NewSceneRect(), VUndoCommand::nodeId, qApp, VAbstractPattern::setCurrentDraftBlock(), and VAbstractPattern::TagCalculation.
|
private |
Definition at line 76 of file addtocalc.h.
Referenced by redo(), RedoFullParsing(), and undo().
|
private |
Definition at line 77 of file addtocalc.h.
Referenced by redo().