#include <add_groupitem.h>
Signals | |
void | updateGroups () |
Signals inherited from VUndoCommand | |
void | ClearScene () |
void | NeedFullParsing () |
void | NeedLiteParsing (const Document &parse) |
Public Member Functions | |
AddGroupItem (const QDomElement &xml, VAbstractPattern *doc, quint32 nodeId, QUndoCommand *parent=nullptr) | |
virtual | ~AddGroupItem () |
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 |
Private Attributes | |
const QString | m_activeDraftblockName |
Additional Inherited Members | |
Protected Member Functions inherited from VUndoCommand | |
virtual void | RedoFullParsing () |
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 |
Protected Attributes inherited from VUndoCommand | |
QDomElement | xml |
VAbstractPattern * | doc |
quint32 | nodeId |
bool | redoFlag |
Definition at line 37 of file add_groupitem.h.
AddGroupItem::AddGroupItem | ( | const QDomElement & | xml, |
VAbstractPattern * | doc, | ||
quint32 | nodeId, | ||
QUndoCommand * | parent = nullptr |
||
) |
Definition at line 39 of file add_groupitem.cpp.
References VUndoCommand::nodeId.
|
virtual |
Definition at line 48 of file add_groupitem.cpp.
|
virtual |
Definition at line 101 of file add_groupitem.cpp.
References VAbstractPattern::changeActiveDraftBlock(), VAbstractPattern::createGroups(), VUndoCommand::doc, VDomDocument::elementById(), m_activeDraftblockName, VMainGraphicsView::NewSceneRect(), VUndoCommand::nodeId, VAbstractPattern::parseGroups(), qApp, VAbstractPattern::setCurrentDraftBlock(), VAbstractPattern::SetModified(), VAbstractPattern::TagGroup, updateGroups(), and VUndoCommand::xml.
|
virtual |
Definition at line 53 of file add_groupitem.cpp.
References VAbstractPattern::changeActiveDraftBlock(), VAbstractPattern::createGroups(), VUndoCommand::doc, VDomDocument::elementById(), VDomDocument::GetParametrUInt(), VAbstractPattern::getTool(), VDataTool::GroupVisibility(), m_activeDraftblockName, VMainGraphicsView::NewSceneRect(), VUndoCommand::nodeId, NULL_ID_STR, VAbstractPattern::parseGroups(), qApp, VAbstractPattern::setCurrentDraftBlock(), VAbstractPattern::SetModified(), VAbstractPattern::TagGroup, updateGroups(), and VUndoCommand::xml.
|
signal |
Referenced by VDrawTool::ContextMenu(), redo(), and undo().
|
private |
Definition at line 52 of file add_groupitem.h.