History record for two new tools.

--HG--
branch : develop
This commit is contained in:
dismine 2014-10-29 13:40:56 +02:00
parent eb75584e19
commit 2041bf8cdb

View File

@ -367,6 +367,20 @@ QString DialogHistory::Record(const VToolRecord &tool)
} }
return record; return record;
} }
case Tool::LineIntersectAxis:
{
return QString(tr("%1 - point of intersection line %2_%3 and axis through point %4"))
.arg(PointName(tool.getId()))
.arg(PointName(AttrUInt(domElem, VAbstractTool::AttrP1Line)))
.arg(PointName(AttrUInt(domElem, VAbstractTool::AttrP2Line)))
.arg(PointName(AttrUInt(domElem, VAbstractTool::AttrBasePoint)));
}
case Tool::CurveIntersectAxis:
{
return QString(tr("%1 - point of intersection curve and axis through point %2"))
.arg(PointName(tool.getId()))
.arg(PointName(AttrUInt(domElem, VAbstractTool::AttrBasePoint)));
}
//Because "history" not only show history of pattern, but help restore current data for each pattern's //Because "history" not only show history of pattern, but help restore current data for each pattern's
//piece, we need add record about details and nodes, but don't show them. //piece, we need add record about details and nodes, but don't show them.
case Tool::Detail: case Tool::Detail: