Seamly2D
Code documentation
VToolRecord Class Reference

The VToolRecord class record about tool in history. More...

#include <vtoolrecord.h>

Collaboration diagram for VToolRecord:

Public Member Functions

 VToolRecord ()
 VToolRecord default constructor. More...
 
 VToolRecord (const quint32 &id, const Tool &typeTool, const QString &nameDraw)
 VToolRecord constructor. More...
 
bool operator== (const VToolRecord &record) const
 
VToolRecordoperator= (const VToolRecord &record)
 
 VToolRecord (const VToolRecord &record)
 
quint32 getId () const
 getId return tool id. More...
 
void setId (const quint32 &value)
 setId set tool id. More...
 
Tool getTypeTool () const
 getTypeTool return tool type. More...
 
void setTypeTool (const Tool &value)
 setTypeTool set tool type. More...
 
QString getDraftBlockName () const
 getDraftBlockName return pattern peace name. More...
 
void setNameDraw (const QString &value)
 setNameDraw set pattern peace name. More...
 
 ~VToolRecord () Q_DECL_EQ_DEFAULT
 

Private Attributes

quint32 id
 id tool id. More...
 
Tool typeTool
 typeTool tool type. More...
 
QString nameDraw
 nameDraw pattern peace name. More...
 

Detailed Description

The VToolRecord class record about tool in history.

Definition at line 63 of file vtoolrecord.h.

Constructor & Destructor Documentation

◆ VToolRecord() [1/3]

VToolRecord::VToolRecord ( )

VToolRecord default constructor.

Definition at line 59 of file vtoolrecord.cpp.

References Arrow.

◆ VToolRecord() [2/3]

VToolRecord::VToolRecord ( const quint32 &  id,
const Tool typeTool,
const QString &  nameDraw 
)

VToolRecord constructor.

Parameters
idtool id.
typeTooltool type.
nameDrawpattern peace name.

Definition at line 70 of file vtoolrecord.cpp.

◆ VToolRecord() [3/3]

VToolRecord::VToolRecord ( const VToolRecord record)

Definition at line 89 of file vtoolrecord.cpp.

◆ ~VToolRecord()

VToolRecord::~VToolRecord ( )

Member Function Documentation

◆ getDraftBlockName()

QString VToolRecord::getDraftBlockName ( ) const
inline

getDraftBlockName return pattern peace name.

Returns
pattern peace name.

Definition at line 134 of file vtoolrecord.h.

References nameDraw.

Referenced by VPattern::ActiveDrawBoundingRect(), VAbstractPattern::getBlockHistory(), VAbstractPattern::getGroupObjHistory(), operator=(), and VPattern::setCurrentData().

◆ getId()

◆ getTypeTool()

Tool VToolRecord::getTypeTool ( ) const
inline

◆ operator=()

VToolRecord & VToolRecord::operator= ( const VToolRecord record)

Definition at line 75 of file vtoolrecord.cpp.

References getDraftBlockName(), getId(), getTypeTool(), nameDraw, and typeTool.

◆ operator==()

bool VToolRecord::operator== ( const VToolRecord record) const
inline

Definition at line 150 of file vtoolrecord.h.

References getId().

◆ setId()

void VToolRecord::setId ( const quint32 &  value)
inline

setId set tool id.

Parameters
valueid.

Definition at line 104 of file vtoolrecord.h.

◆ setNameDraw()

void VToolRecord::setNameDraw ( const QString &  value)
inline

setNameDraw set pattern peace name.

Parameters
valuepattern peace name.

Definition at line 144 of file vtoolrecord.h.

References nameDraw.

◆ setTypeTool()

void VToolRecord::setTypeTool ( const Tool value)
inline

setTypeTool set tool type.

Parameters
valuetool type.

Definition at line 124 of file vtoolrecord.h.

References typeTool.

Member Data Documentation

◆ id

quint32 VToolRecord::id
private

id tool id.

Definition at line 80 of file vtoolrecord.h.

Referenced by getId().

◆ nameDraw

QString VToolRecord::nameDraw
private

nameDraw pattern peace name.

Definition at line 86 of file vtoolrecord.h.

Referenced by getDraftBlockName(), operator=(), and setNameDraw().

◆ typeTool

Tool VToolRecord::typeTool
private

typeTool tool type.

Definition at line 83 of file vtoolrecord.h.

Referenced by getTypeTool(), operator=(), and setTypeTool().


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