Clean using class VNodeDetail.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2017-01-21 17:47:53 +02:00
parent 8b1e9e24d4
commit ded6a9e76c
3 changed files with 0 additions and 23 deletions

View File

@ -51,7 +51,6 @@ class QDomNode;
class QPointF; class QPointF;
class VContainer; class VContainer;
class VMainGraphicsScene; class VMainGraphicsScene;
class VNodeDetail;
class VPointF; class VPointF;
struct VToolUnionDetailsInitData struct VToolUnionDetailsInitData

View File

@ -76,24 +76,6 @@ void VUndoCommand::UndoDeleteAfterSibling(QDomNode &parentNode, const quint32 &s
} }
} }
//---------------------------------------------------------------------------------------------------------------------
void VUndoCommand::IncrementReferences(const QVector<VNodeDetail> &nodes) const
{
for (qint32 i = 0; i < nodes.size(); ++i)
{
doc->IncrementReferens(nodes.at(i).getId());
}
}
//---------------------------------------------------------------------------------------------------------------------
void VUndoCommand::DecrementReferences(const QVector<VNodeDetail> &nodes) const
{
for (qint32 i = 0; i < nodes.size(); ++i)
{
doc->DecrementReferens(nodes.at(i).getId());
}
}
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
void VUndoCommand::IncrementReferences(const QVector<quint32> &nodes) const void VUndoCommand::IncrementReferences(const QVector<quint32> &nodes) const
{ {

View File

@ -66,7 +66,6 @@ enum class UndoCommand: char { AddPatternPiece,
TogglePieceInLayout TogglePieceInLayout
}; };
class VNodeDetail;
class VPieceNode; class VPieceNode;
class VPattern; class VPattern;
@ -88,9 +87,6 @@ protected:
virtual void RedoFullParsing(); virtual void RedoFullParsing();
void UndoDeleteAfterSibling(QDomNode &parentNode, const quint32 &siblingId) const; void UndoDeleteAfterSibling(QDomNode &parentNode, const quint32 &siblingId) const;
void IncrementReferences(const QVector<VNodeDetail> &nodes) const;
void DecrementReferences(const QVector<VNodeDetail> &nodes) const;
void IncrementReferences(const QVector<quint32> &nodes) const; void IncrementReferences(const QVector<quint32> &nodes) const;
void DecrementReferences(const QVector<quint32> &nodes) const; void DecrementReferences(const QVector<quint32> &nodes) const;