Refactoring. Delete repetitive code.
--HG-- branch : feature
This commit is contained in:
parent
9fe7c7f622
commit
3ad852243e
|
@ -170,27 +170,6 @@ void DialogDetail::NewItem(quint32 id, const Tool &typeTool, const NodeDetail &t
|
||||||
name = splPath->name();
|
name = splPath->name();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case (Tool::ArrowTool):
|
|
||||||
case (Tool::SinglePointTool):
|
|
||||||
case (Tool::EndLineTool):
|
|
||||||
case (Tool::LineTool):
|
|
||||||
case (Tool::AlongLineTool):
|
|
||||||
case (Tool::ShoulderPointTool):
|
|
||||||
case (Tool::NormalTool):
|
|
||||||
case (Tool::BisectorTool):
|
|
||||||
case (Tool::LineIntersectTool):
|
|
||||||
case (Tool::SplineTool):
|
|
||||||
case (Tool::CutSplineTool):
|
|
||||||
case (Tool::CutArcTool):
|
|
||||||
case (Tool::ArcTool):
|
|
||||||
case (Tool::SplinePathTool):
|
|
||||||
case (Tool::CutSplinePathTool):
|
|
||||||
case (Tool::PointOfContact):
|
|
||||||
case (Tool::DetailTool):
|
|
||||||
case (Tool::Height):
|
|
||||||
case (Tool::Triangle):
|
|
||||||
case (Tool::PointOfIntersection):
|
|
||||||
case (Tool::UnionDetails):
|
|
||||||
default:
|
default:
|
||||||
qDebug()<<"Got wrong tools. Ignore.";
|
qDebug()<<"Got wrong tools. Ignore.";
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -132,27 +132,6 @@ QPainterPath VEquidistant::ContourPath(const quint32 &idDetail, const VContainer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case (Tool::ArrowTool):
|
|
||||||
case (Tool::SinglePointTool):
|
|
||||||
case (Tool::EndLineTool):
|
|
||||||
case (Tool::LineTool):
|
|
||||||
case (Tool::AlongLineTool):
|
|
||||||
case (Tool::ShoulderPointTool):
|
|
||||||
case (Tool::NormalTool):
|
|
||||||
case (Tool::BisectorTool):
|
|
||||||
case (Tool::LineIntersectTool):
|
|
||||||
case (Tool::SplineTool):
|
|
||||||
case (Tool::CutSplineTool):
|
|
||||||
case (Tool::CutArcTool):
|
|
||||||
case (Tool::ArcTool):
|
|
||||||
case (Tool::SplinePathTool):
|
|
||||||
case (Tool::CutSplinePathTool):
|
|
||||||
case (Tool::PointOfContact):
|
|
||||||
case (Tool::DetailTool):
|
|
||||||
case (Tool::Height):
|
|
||||||
case (Tool::Triangle):
|
|
||||||
case (Tool::PointOfIntersection):
|
|
||||||
case (Tool::UnionDetails):
|
|
||||||
default:
|
default:
|
||||||
qDebug()<<"Get wrong tool type. Ignore."<< static_cast<char>(detail.at(i).getTypeTool());
|
qDebug()<<"Get wrong tool type. Ignore."<< static_cast<char>(detail.at(i).getTypeTool());
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -92,27 +92,6 @@ VToolDetail::VToolDetail(VPattern *doc, VContainer *data, const quint32 &id, con
|
||||||
case (Tool::NodeSplinePath):
|
case (Tool::NodeSplinePath):
|
||||||
InitTool<VNodeSplinePath>(scene, detail.at(i));
|
InitTool<VNodeSplinePath>(scene, detail.at(i));
|
||||||
break;
|
break;
|
||||||
case (Tool::ArrowTool):
|
|
||||||
case (Tool::SinglePointTool):
|
|
||||||
case (Tool::EndLineTool):
|
|
||||||
case (Tool::LineTool):
|
|
||||||
case (Tool::AlongLineTool):
|
|
||||||
case (Tool::ShoulderPointTool):
|
|
||||||
case (Tool::NormalTool):
|
|
||||||
case (Tool::BisectorTool):
|
|
||||||
case (Tool::LineIntersectTool):
|
|
||||||
case (Tool::SplineTool):
|
|
||||||
case (Tool::CutSplineTool):
|
|
||||||
case (Tool::CutArcTool):
|
|
||||||
case (Tool::ArcTool):
|
|
||||||
case (Tool::SplinePathTool):
|
|
||||||
case (Tool::CutSplinePathTool):
|
|
||||||
case (Tool::PointOfContact):
|
|
||||||
case (Tool::DetailTool):
|
|
||||||
case (Tool::Height):
|
|
||||||
case (Tool::Triangle):
|
|
||||||
case (Tool::PointOfIntersection):
|
|
||||||
case (Tool::UnionDetails):
|
|
||||||
default:
|
default:
|
||||||
qDebug()<<"Get wrong tool type. Ignore.";
|
qDebug()<<"Get wrong tool type. Ignore.";
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user