Seamly2D
Code documentation
ShowPointName Class Reference

#include <showpointname.h>

Inheritance diagram for ShowPointName:
Collaboration diagram for ShowPointName:

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

Detailed Description

Definition at line 32 of file showpointname.h.

Constructor & Destructor Documentation

◆ ShowPointName()

ShowPointName::ShowPointName ( VAbstractPattern doc,
quint32  id,
bool  visible,
QUndoCommand *  parent = nullptr 
)

◆ ~ShowPointName()

virtual ShowPointName::~ShowPointName ( )
virtualdefault

Member Function Documentation

◆ redo()

void ShowPointName::redo ( )
overridevirtual

Definition at line 66 of file showpointname.cpp.

References m_visible, and setVisibility().

◆ setVisibility()

void ShowPointName::setVisibility ( bool  visible)
private

◆ undo()

void ShowPointName::undo ( )
overridevirtual

Definition at line 58 of file showpointname.cpp.

References m_oldVisible, and setVisibility().

Member Data Documentation

◆ m_oldVisible

bool ShowPointName::m_oldVisible
private

Definition at line 43 of file showpointname.h.

Referenced by ShowPointName(), and undo().

◆ m_scene

QGraphicsScene* ShowPointName::m_scene
private

Definition at line 45 of file showpointname.h.

◆ m_visible

bool ShowPointName::m_visible
private

Definition at line 42 of file showpointname.h.

Referenced by redo().


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