From 2041bf8cdb3ffc9fe8dde6fa9ead33103c016df3 Mon Sep 17 00:00:00 2001 From: dismine Date: Wed, 29 Oct 2014 13:40:56 +0200 Subject: [PATCH] History record for two new tools. --HG-- branch : develop --- src/app/dialogs/app/dialoghistory.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/app/dialogs/app/dialoghistory.cpp b/src/app/dialogs/app/dialoghistory.cpp index d32535e67..81ff33926 100644 --- a/src/app/dialogs/app/dialoghistory.cpp +++ b/src/app/dialogs/app/dialoghistory.cpp @@ -367,6 +367,20 @@ QString DialogHistory::Record(const VToolRecord &tool) } 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 //piece, we need add record about details and nodes, but don't show them. case Tool::Detail: