Fixed issue #565. Bug : Some informations not saved in "Seam allowance tool" in
Draw Mode. --HG-- branch : develop
This commit is contained in:
parent
3bb657ea1a
commit
fd8ab6123c
|
@ -540,6 +540,12 @@ QVector<VNodeDetail> VDetail::listNodePoint() const
|
|||
return list;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void VDetail::SetPatternPieceData(const VPatternPieceData &data)
|
||||
{
|
||||
d->m_ppData = data;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
/**
|
||||
* @brief Returns full access to the pattern piece data object
|
||||
|
@ -560,6 +566,12 @@ const VPatternPieceData& VDetail::GetPatternPieceData() const
|
|||
return d->m_ppData;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void VDetail::SetPatternInfo(const VPatternInfoGeometry &info)
|
||||
{
|
||||
d->m_piPatternInfo = info;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
/**
|
||||
* @brief Returns full access to the pattern info geometry object
|
||||
|
|
|
@ -97,9 +97,13 @@ public:
|
|||
QPainterPath ContourPath(const VContainer *data) const;
|
||||
QPainterPath SeamAllowancePath(const VContainer *data) const;
|
||||
QVector<VNodeDetail> listNodePoint()const;
|
||||
VPatternPieceData& GetPatternPieceData();
|
||||
|
||||
void SetPatternPieceData(const VPatternPieceData &data);
|
||||
VPatternPieceData& GetPatternPieceData();
|
||||
const VPatternPieceData& GetPatternPieceData() const;
|
||||
VPatternInfoGeometry& GetPatternInfo();
|
||||
|
||||
void SetPatternInfo(const VPatternInfoGeometry &info);
|
||||
VPatternInfoGeometry& GetPatternInfo();
|
||||
const VPatternInfoGeometry& GetPatternInfo() const;
|
||||
|
||||
private:
|
||||
|
|
|
@ -308,6 +308,8 @@ void VToolDetail::Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstrac
|
|||
det.setClosed(detail.getClosed());
|
||||
det.setSeamAllowance(detail.getSeamAllowance());
|
||||
det.setForbidFlipping(detail.getForbidFlipping());
|
||||
det.SetPatternPieceData(detail.GetPatternPieceData());
|
||||
det.SetPatternInfo(detail.GetPatternInfo());
|
||||
Create(0, det, scene, doc, data, Document::FullParse, Source::FromGui);
|
||||
}
|
||||
|
||||
|
@ -470,6 +472,7 @@ void VToolDetail::AddToFile()
|
|||
doc->SetAttribute(domData, AttrHeight, geom.GetLabelHeight());
|
||||
doc->SetAttribute(domData, AttrFont, geom.GetFontSize());
|
||||
doc->SetAttribute(domData, AttrRotation, geom.GetRotation());
|
||||
domElement.appendChild(domData);
|
||||
|
||||
for (int i = 0; i < detail.CountNode(); ++i)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user