Clean using class VNodeDetail.
--HG-- branch : feature
This commit is contained in:
parent
8b1e9e24d4
commit
ded6a9e76c
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user