#include <showpointname.h>
Public Member Functions | |
ShowPointName (VAbstractPattern *doc, quint32 id, bool visible, QUndoCommand *parent=nullptr) | |
virtual | ~ShowPointName ()=default |
virtual void | undo () override |
virtual void | redo () override |
Public Member Functions inherited from VUndoCommand | |
VUndoCommand (const QDomElement &xml, VAbstractPattern *doc, QUndoCommand *parent=nullptr) | |
virtual | ~VUndoCommand ()=default |
Private Member Functions | |
void | setVisibility (bool visible) |
Private Attributes | |
bool | m_visible |
bool | m_oldVisible |
QGraphicsScene * | m_scene |
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 32 of file showpointname.h.
ShowPointName::ShowPointName | ( | VAbstractPattern * | doc, |
quint32 | id, | ||
bool | visible, | ||
QUndoCommand * | parent = nullptr |
||
) |
Definition at line 36 of file showpointname.cpp.
References AttrShowPointName, VUndoCommand::doc, VDomDocument::elementById(), VDomDocument::getParameterBool(), m_oldVisible, VUndoCommand::nodeId, VAbstractPattern::TagPoint, and trueStr.
|
virtualdefault |
|
overridevirtual |
Definition at line 66 of file showpointname.cpp.
References m_visible, and setVisibility().
|
private |
Definition at line 74 of file showpointname.cpp.
References AttrShowPointName, VUndoCommand::doc, VDomDocument::elementById(), VAbstractPattern::getTool(), VUndoCommand::nodeId, VDomDocument::SetAttribute(), and VAbstractPattern::TagPoint.
|
overridevirtual |
Definition at line 58 of file showpointname.cpp.
References m_oldVisible, and setVisibility().
|
private |
Definition at line 43 of file showpointname.h.
Referenced by ShowPointName(), and undo().
|
private |
Definition at line 45 of file showpointname.h.
|
private |
Definition at line 42 of file showpointname.h.
Referenced by redo().