#include <showoperationpointname.h>
Public Member Functions | |
ShowOperationPointName (VAbstractPattern *doc, quint32 idTool, quint32 idPoint, bool visible, QUndoCommand *parent=nullptr) | |
virtual | ~ShowOperationPointName ()=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 |
Private Member Functions | |
void | Do (bool visible) |
Private Attributes | |
bool | m_visible |
bool | m_oldVisible |
QGraphicsScene * | m_scene |
quint32 | m_idTool |
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 33 of file showoperationpointname.h.
ShowOperationPointName::ShowOperationPointName | ( | VAbstractPattern * | doc, |
quint32 | idTool, | ||
quint32 | idPoint, | ||
bool | visible, | ||
QUndoCommand * | parent = nullptr |
||
) |
Definition at line 36 of file showoperationpointname.cpp.
References AttrShowPointName, VUndoCommand::doc, VUndoCommand::getDestinationObject(), VDomDocument::getParameterBool(), m_idTool, m_oldVisible, VUndoCommand::nodeId, and trueStr.
|
virtualdefault |
|
private |
Definition at line 75 of file showoperationpointname.cpp.
References AttrShowPointName, VUndoCommand::doc, VUndoCommand::getDestinationObject(), VAbstractPattern::getTool(), m_idTool, m_scene, VMainGraphicsView::NewSceneRect(), VUndoCommand::nodeId, qApp, and VDomDocument::SetAttribute().
|
virtual |
Definition at line 67 of file showoperationpointname.cpp.
|
virtual |
Definition at line 59 of file showoperationpointname.cpp.
References Do(), and m_oldVisible.
|
private |
Definition at line 48 of file showoperationpointname.h.
Referenced by Do(), and ShowOperationPointName().
|
private |
Definition at line 46 of file showoperationpointname.h.
Referenced by ShowOperationPointName(), and undo().
|
private |
Definition at line 47 of file showoperationpointname.h.
Referenced by Do().
|
private |
Definition at line 45 of file showoperationpointname.h.
Referenced by redo().