Refactoring. Delete repetitive code.
--HG-- branch : feature
This commit is contained in:
parent
3492514b04
commit
9fe7c7f622
|
@ -198,27 +198,6 @@ void VToolDetail::Create(DialogTool *dialog, VMainGraphicsScene *scene, VPattern
|
||||||
VNodeSplinePath::Create(doc, data, id, detail.at(i).getId(), Document::FullParse, Source::FromGui);
|
VNodeSplinePath::Create(doc, data, id, detail.at(i).getId(), Document::FullParse, Source::FromGui);
|
||||||
}
|
}
|
||||||
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()<<"May be wrong tool type!!! Ignoring."<<Q_FUNC_INFO;
|
qDebug()<<"May be wrong tool type!!! Ignoring."<<Q_FUNC_INFO;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -248,27 +248,6 @@ void VToolUnionDetails::AddToNewDetail(QObject *tool, VPattern *doc, 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()<<"May be wrong tool type!!! Ignoring."<<Q_FUNC_INFO;
|
qDebug()<<"May be wrong tool type!!! Ignoring."<<Q_FUNC_INFO;
|
||||||
break;
|
break;
|
||||||
|
@ -430,27 +409,6 @@ void VToolUnionDetails::UpdatePoints(const quint32 &idDetail, VContainer *data,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
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()<<"May be wrong tool type!!! Ignoring."<<Q_FUNC_INFO;
|
qDebug()<<"May be wrong tool type!!! Ignoring."<<Q_FUNC_INFO;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user