[TD]abort dimensioning of spline edge

This commit is contained in:
Wanderer Fan
2022-06-06 11:43:28 -04:00
committed by WandererFan
parent 92b124d7df
commit 4fc652b460

View File

@@ -315,16 +315,9 @@ void CmdTechDrawRadiusDimension::activated(int iMsg)
return;
}
} else if (edgeType == isBSpline) {
QMessageBox::StandardButton result =
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("BSpline Curve Warning"),
QObject::tr("Selected edge is a BSpline. Radius will be approximate. Continue?"),
QMessageBox::Ok | QMessageBox::Cancel, QMessageBox::Cancel);
if (result == QMessageBox::Ok) {
objs.push_back(objFeat);
subs.push_back(SubNames[0]);
} else {
return;
}
QMessageBox::critical(Gui::getMainWindow(), QObject::tr("BSpline Curve Error"),
QObject::tr("Selected edge is a BSpline and a radius can not be calculated."));
return;
} else {
QMessageBox::warning(
Gui::getMainWindow(), QObject::tr("Incorrect Selection"),
@@ -438,16 +431,9 @@ void CmdTechDrawDiameterDimension::activated(int iMsg)
return;
}
} else if (edgeType == isBSpline) {
QMessageBox::StandardButton result =
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("BSpline Curve Warning"),
QObject::tr("Selected edge is a BSpline. Diameter will be approximate. Continue?"),
QMessageBox::Ok | QMessageBox::Cancel, QMessageBox::Cancel);
if (result == QMessageBox::Ok) {
objs.push_back(objFeat);
subs.push_back(SubNames[0]);
} else {
return;
}
QMessageBox::critical(Gui::getMainWindow(), QObject::tr("BSpline Curve Error"),
QObject::tr("Selected edge is a BSpline and a diameter can not be calculated."));
return;
} else {
QMessageBox::warning(
Gui::getMainWindow(), QObject::tr("Incorrect Selection"),