#include <rename_draftblock.h>
Public Member Functions | |
RenameDraftBlock (VAbstractPattern *doc, const QString &newBlockName, QComboBox *combo, QUndoCommand *parent=nullptr) | |
virtual | ~RenameDraftBlock () Q_DECL_OVERRIDE |
virtual void | undo () Q_DECL_OVERRIDE |
virtual void | redo () Q_DECL_OVERRIDE |
virtual bool | mergeWith (const QUndoCommand *command) Q_DECL_OVERRIDE |
virtual int | id () const Q_DECL_OVERRIDE |
QString | getNewName () const |
QString | getOldName () const |
Public Member Functions inherited from VUndoCommand | |
VUndoCommand (const QDomElement &xml, VAbstractPattern *doc, QUndoCommand *parent=nullptr) | |
virtual | ~VUndoCommand ()=default |
Private Member Functions | |
void | changeName (const QString &oldName, const QString &newName) |
Private Attributes | |
QComboBox * | m_combo |
QString | m_newBlockName |
QString | m_oldBlockName |
Additional Inherited Members | |
Signals inherited from VUndoCommand | |
void | ClearScene () |
void | NeedFullParsing () |
void | NeedLiteParsing (const Document &parse) |
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 64 of file rename_draftblock.h.
RenameDraftBlock::RenameDraftBlock | ( | VAbstractPattern * | doc, |
const QString & | newBlockName, | ||
QComboBox * | combo, | ||
QUndoCommand * | parent = nullptr |
||
) |
Definition at line 64 of file rename_draftblock.cpp.
References VUndoCommand::doc, VAbstractPattern::getActiveDraftBlockName(), m_combo, m_oldBlockName, and SCASSERT.
|
virtual |
Definition at line 76 of file rename_draftblock.cpp.
|
private |
Definition at line 118 of file rename_draftblock.cpp.
References VUndoCommand::doc, m_combo, and VAbstractPattern::renameDraftBlock().
|
inline |
Definition at line 86 of file rename_draftblock.h.
References m_newBlockName.
Referenced by mergeWith().
|
inline |
Definition at line 92 of file rename_draftblock.h.
References m_oldBlockName.
Referenced by mergeWith().
|
virtual |
Definition at line 112 of file rename_draftblock.cpp.
References RenameDraftBlock.
|
virtual |
Definition at line 96 of file rename_draftblock.cpp.
References getNewName(), getOldName(), m_newBlockName, and SCASSERT.
|
virtual |
Definition at line 88 of file rename_draftblock.cpp.
References changeName(), m_newBlockName, and m_oldBlockName.
|
virtual |
Definition at line 80 of file rename_draftblock.cpp.
References changeName(), m_newBlockName, and m_oldBlockName.
|
private |
Definition at line 79 of file rename_draftblock.h.
Referenced by changeName(), and RenameDraftBlock().
|
private |
Definition at line 80 of file rename_draftblock.h.
Referenced by getNewName(), mergeWith(), redo(), and undo().
|
private |
Definition at line 81 of file rename_draftblock.h.
Referenced by getOldName(), redo(), RenameDraftBlock(), and undo().