Seamly2D
Code documentation
ShowOperationPointName Class Reference

#include <showoperationpointname.h>

Inheritance diagram for ShowOperationPointName:
Collaboration diagram for ShowOperationPointName:

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
 
VAbstractPatterndoc
 
quint32 nodeId
 
bool redoFlag
 

Detailed Description

Definition at line 33 of file showoperationpointname.h.

Constructor & Destructor Documentation

◆ ShowOperationPointName()

ShowOperationPointName::ShowOperationPointName ( VAbstractPattern doc,
quint32  idTool,
quint32  idPoint,
bool  visible,
QUndoCommand *  parent = nullptr 
)

◆ ~ShowOperationPointName()

virtual ShowOperationPointName::~ShowOperationPointName ( )
virtualdefault

Member Function Documentation

◆ Do()

◆ redo()

void ShowOperationPointName::redo ( )
virtual

Definition at line 67 of file showoperationpointname.cpp.

References Do(), and m_visible.

◆ undo()

void ShowOperationPointName::undo ( )
virtual

Definition at line 59 of file showoperationpointname.cpp.

References Do(), and m_oldVisible.

Member Data Documentation

◆ m_idTool

quint32 ShowOperationPointName::m_idTool
private

Definition at line 48 of file showoperationpointname.h.

Referenced by Do(), and ShowOperationPointName().

◆ m_oldVisible

bool ShowOperationPointName::m_oldVisible
private

Definition at line 46 of file showoperationpointname.h.

Referenced by ShowOperationPointName(), and undo().

◆ m_scene

QGraphicsScene* ShowOperationPointName::m_scene
private

Definition at line 47 of file showoperationpointname.h.

Referenced by Do().

◆ m_visible

bool ShowOperationPointName::m_visible
private

Definition at line 45 of file showoperationpointname.h.

Referenced by redo().


The documentation for this class was generated from the following files: