parent
add722d0c5
commit
15f4bc1e12
|
@ -364,6 +364,21 @@ QString DialogHistory::Record(const VToolRecord &tool)
|
||||||
firstPointIdName, secondPointIdName);
|
firstPointIdName, secondPointIdName);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case Tool::PointOfIntersection:
|
||||||
|
{
|
||||||
|
domElement = doc->elementById(QString().setNum(tool.getId()));
|
||||||
|
if (domElement.isElement())
|
||||||
|
{
|
||||||
|
firstPointId = doc->GetParametrLongLong(domElement, VAbstractTool::AttrFirstPoint, "0");
|
||||||
|
secondPointId = doc->GetParametrLongLong(domElement, VAbstractTool::AttrSecondPoint, "0");
|
||||||
|
}
|
||||||
|
QString firstPointIdName = data->GeometricObject<const VPointF *>(firstPointId)->name();
|
||||||
|
QString secondPointIdName = data->GeometricObject<const VPointF *>(secondPointId)->name();
|
||||||
|
QString toolIdName = data->GeometricObject<const VPointF *>(tool.getId())->name();
|
||||||
|
record = QString(tr("%1 - point of intersection %2 and %3")).arg(toolIdName, firstPointIdName,
|
||||||
|
secondPointIdName);
|
||||||
|
}
|
||||||
|
break;
|
||||||
case Tool::CutArcTool:
|
case Tool::CutArcTool:
|
||||||
{
|
{
|
||||||
qint64 arcId = 0;
|
qint64 arcId = 0;
|
||||||
|
|
|
@ -87,7 +87,7 @@ void VToolPointOfIntersection::Create(const qint64 _id, const QString &pointName
|
||||||
doc->UpdateToolData(id, data);
|
doc->UpdateToolData(id, data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
VDrawTool::AddRecord(id, Tool::Triangle, doc);
|
VDrawTool::AddRecord(id, Tool::PointOfIntersection, doc);
|
||||||
if (parse == Document::FullParse)
|
if (parse == Document::FullParse)
|
||||||
{
|
{
|
||||||
VToolPointOfIntersection *point = new VToolPointOfIntersection(doc, data, id, firstPointId,
|
VToolPointOfIntersection *point = new VToolPointOfIntersection(doc, data, id, firstPointId,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user