ReverseEngineering: Update UI strings for consistency

This commit is contained in:
Max Wilfinger
2025-06-29 15:46:41 +02:00
committed by Chris Hennes
parent 2a96b8c758
commit da5f0f18c6
10 changed files with 40 additions and 41 deletions

View File

@@ -999,7 +999,7 @@ PyMOD_INIT_FUNC(ReverseEngineering)
}
PyObject* mod = Reen::initModule();
Base::Console().log("Loading ReverseEngineering module... done\n");
Base::Console().log("Loading ReverseEngineering module done\n");
PyMOD_Return(mod);
}
// clang-format on

View File

@@ -105,7 +105,7 @@ void RegionGrowing::perform(int ksearch)
void RegionGrowing::perform(const std::vector<Base::Vector3f>& myNormals)
{
if (myPoints.size() != myNormals.size()) {
throw Base::RuntimeError("Number of points doesn't match with number of normals");
throw Base::RuntimeError("Number of points does not match with number of normals");
}
pcl::PointCloud<pcl::PointXYZ>::Ptr cloud(new pcl::PointCloud<pcl::PointXYZ>);

View File

@@ -82,7 +82,7 @@ PyMOD_INIT_FUNC(ReverseEngineeringGui)
}
PyObject* mod = ReverseEngineeringGui::initModule();
Base::Console().log("Loading GUI of ReverseEngineering module... done\n");
Base::Console().log("Loading GUI of ReverseEngineering module done\n");
// instantiating the commands
CreateReverseEngineeringCommands();

View File

@@ -68,8 +68,8 @@ CmdApproxCurve::CmdApproxCurve()
{
sAppModule = "Reen";
sGroup = QT_TR_NOOP("Reverse Engineering");
sMenuText = QT_TR_NOOP("Approximate B-spline curve...");
sToolTipText = QT_TR_NOOP("Approximate a B-spline curve");
sMenuText = QT_TR_NOOP("Approximate B-Spline Curve");
sToolTipText = QT_TR_NOOP("Approximates a B-spline curve");
sWhatsThis = "Reen_ApproxCurve";
sStatusTip = sToolTipText;
}
@@ -81,7 +81,7 @@ void CmdApproxCurve::activated(int)
if (obj.size() != 1 || !(obj.at(0)->isDerivedFrom<Points::Feature>())) {
QMessageBox::warning(Gui::getMainWindow(),
qApp->translate("Reen_ApproxSurface", "Wrong selection"),
qApp->translate("Reen_ApproxSurface", "Please select a point cloud."));
qApp->translate("Reen_ApproxSurface", "Select a point cloud."));
return;
}
@@ -101,8 +101,8 @@ CmdApproxSurface::CmdApproxSurface()
{
sAppModule = "Reen";
sGroup = QT_TR_NOOP("Reverse Engineering");
sMenuText = QT_TR_NOOP("Approximate B-spline surface...");
sToolTipText = QT_TR_NOOP("Approximate a B-spline surface");
sMenuText = QT_TR_NOOP("Approximate B-Spline Surface");
sToolTipText = QT_TR_NOOP("Approximates a B-spline surface");
sWhatsThis = "Reen_ApproxSurface";
sStatusTip = sToolTipText;
sPixmap = "actions/FitSurface";
@@ -119,7 +119,7 @@ void CmdApproxSurface::activated(int)
QMessageBox::warning(
Gui::getMainWindow(),
qApp->translate("Reen_ApproxSurface", "Wrong selection"),
qApp->translate("Reen_ApproxSurface", "Please select a point cloud or mesh."));
qApp->translate("Reen_ApproxSurface", "Select a point cloud or mesh."));
return;
}
@@ -140,7 +140,7 @@ CmdApproxPlane::CmdApproxPlane()
sAppModule = "Reen";
sGroup = QT_TR_NOOP("Reverse Engineering");
sMenuText = QT_TR_NOOP("Plane");
sToolTipText = QT_TR_NOOP("Approximate a plane");
sToolTipText = QT_TR_NOOP("Approximates a plane");
sWhatsThis = "Reen_ApproxPlane";
sStatusTip = sToolTipText;
}
@@ -248,7 +248,7 @@ CmdApproxCylinder::CmdApproxCylinder()
sAppModule = "Reen";
sGroup = QT_TR_NOOP("Reverse Engineering");
sMenuText = QT_TR_NOOP("Cylinder");
sToolTipText = QT_TR_NOOP("Approximate a cylinder");
sToolTipText = QT_TR_NOOP("Approximates a cylinder");
sWhatsThis = "Reen_ApproxCylinder";
sStatusTip = sToolTipText;
}
@@ -316,7 +316,7 @@ CmdApproxSphere::CmdApproxSphere()
sAppModule = "Reen";
sGroup = QT_TR_NOOP("Reverse Engineering");
sMenuText = QT_TR_NOOP("Sphere");
sToolTipText = QT_TR_NOOP("Approximate a sphere");
sToolTipText = QT_TR_NOOP("Approximates a sphere");
sWhatsThis = "Reen_ApproxSphere";
sStatusTip = sToolTipText;
}
@@ -363,8 +363,8 @@ CmdApproxPolynomial::CmdApproxPolynomial()
{
sAppModule = "Reen";
sGroup = QT_TR_NOOP("Reverse Engineering");
sMenuText = QT_TR_NOOP("Polynomial surface");
sToolTipText = QT_TR_NOOP("Approximate a polynomial surface");
sMenuText = QT_TR_NOOP("Polynomial Surface");
sToolTipText = QT_TR_NOOP("Approximates a polynomial surface");
sWhatsThis = "Reen_ApproxPolynomial";
sStatusTip = sToolTipText;
}
@@ -421,8 +421,8 @@ CmdSegmentation::CmdSegmentation()
{
sAppModule = "Reen";
sGroup = QT_TR_NOOP("Reverse Engineering");
sMenuText = QT_TR_NOOP("Mesh segmentation...");
sToolTipText = QT_TR_NOOP("Create mesh segments");
sMenuText = QT_TR_NOOP("Mesh Segmentation");
sToolTipText = QT_TR_NOOP("Creates mesh segments");
sWhatsThis = "Reen_Segmentation";
sStatusTip = sToolTipText;
}
@@ -453,8 +453,8 @@ CmdSegmentationManual::CmdSegmentationManual()
{
sAppModule = "Reen";
sGroup = QT_TR_NOOP("Reverse Engineering");
sMenuText = QT_TR_NOOP("Manual segmentation...");
sToolTipText = QT_TR_NOOP("Create mesh segments manually");
sMenuText = QT_TR_NOOP("Manual Segmentation");
sToolTipText = QT_TR_NOOP("Creates mesh segments manually");
sWhatsThis = "Reen_SegmentationManual";
sStatusTip = sToolTipText;
}
@@ -483,8 +483,8 @@ CmdSegmentationFromComponents::CmdSegmentationFromComponents()
{
sAppModule = "Reen";
sGroup = QT_TR_NOOP("Reverse Engineering");
sMenuText = QT_TR_NOOP("From components");
sToolTipText = QT_TR_NOOP("Create mesh segments from components");
sMenuText = QT_TR_NOOP("From Components");
sToolTipText = QT_TR_NOOP("Creates mesh segments from components");
sWhatsThis = "Reen_SegmentationFromComponents";
sStatusTip = sToolTipText;
}
@@ -533,8 +533,8 @@ CmdMeshBoundary::CmdMeshBoundary()
{
sAppModule = "Reen";
sGroup = QT_TR_NOOP("Reverse Engineering");
sMenuText = QT_TR_NOOP("Wire from mesh boundary...");
sToolTipText = QT_TR_NOOP("Create wire from mesh boundaries");
sMenuText = QT_TR_NOOP("Wire From Mesh Boundary");
sToolTipText = QT_TR_NOOP("Creates a wire from mesh boundaries");
sWhatsThis = "Reen_Segmentation";
sStatusTip = sToolTipText;
}
@@ -598,7 +598,7 @@ CmdPoissonReconstruction::CmdPoissonReconstruction()
{
sAppModule = "Reen";
sGroup = QT_TR_NOOP("Reverse Engineering");
sMenuText = QT_TR_NOOP("Poisson...");
sMenuText = QT_TR_NOOP("Poisson");
sToolTipText = QT_TR_NOOP("Poisson surface reconstruction");
sWhatsThis = "Reen_PoissonReconstruction";
sStatusTip = sToolTipText;
@@ -610,10 +610,9 @@ void CmdPoissonReconstruction::activated(int)
std::vector<App::DocumentObject*> obj =
Gui::Selection().getObjectsOfType(Points::Feature::getClassTypeId());
if (obj.size() != 1) {
QMessageBox::warning(
Gui::getMainWindow(),
qApp->translate("Reen_ApproxSurface", "Wrong selection"),
qApp->translate("Reen_ApproxSurface", "Please select a single point cloud."));
QMessageBox::warning(Gui::getMainWindow(),
qApp->translate("Reen_ApproxSurface", "Wrong selection"),
qApp->translate("Reen_ApproxSurface", "Select a single point cloud."));
return;
}
@@ -633,7 +632,7 @@ CmdViewTriangulation::CmdViewTriangulation()
{
sAppModule = "Reen";
sGroup = QT_TR_NOOP("Reverse Engineering");
sMenuText = QT_TR_NOOP("Structured point clouds");
sMenuText = QT_TR_NOOP("Structured Point Clouds");
sToolTipText = QT_TR_NOOP("Triangulation of structured point clouds");
sStatusTip = QT_TR_NOOP("Triangulation of structured point clouds");
sWhatsThis = "Reen_ViewTriangulation";

View File

@@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>Fit B-spline curve</string>
<string>Fit B-Spline Curve</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">

View File

@@ -203,7 +203,7 @@ bool FitBSplineSurfaceWidget::accept()
QMessageBox::warning(
this,
tr("Wrong selection"),
tr("Please select a single placement object to get local orientation."));
tr("Select a single placement object to get local orientation."));
return false;
}

View File

@@ -11,13 +11,13 @@
</rect>
</property>
<property name="windowTitle">
<string>Fit B-spline surface</string>
<string>Fit B-Spline Surface</string>
</property>
<layout class="QGridLayout" name="gridLayout_5">
<item row="0" column="0">
<widget class="QGroupBox" name="groupBoxU">
<property name="title">
<string>u-Direction</string>
<string>U-Direction</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
@@ -84,7 +84,7 @@
<item row="0" column="1">
<widget class="QGroupBox" name="groupBoxV">
<property name="title">
<string>v-Direction</string>
<string>V-Direction</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
@@ -228,7 +228,7 @@
<item row="2" column="1">
<widget class="QPushButton" name="makePlacement">
<property name="text">
<string>Create placement</string>
<string>Create Placement</string>
</property>
</widget>
</item>
@@ -244,7 +244,7 @@
<item row="0" column="0">
<widget class="QLabel" name="label_7">
<property name="text">
<string>Total Weight</string>
<string>Total weight</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>

View File

@@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>Mesh segmentation</string>
<string>Mesh Segmentation</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">

View File

@@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>Manual segmentation</string>
<string>Manual Mesh Segmentation</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
@@ -95,7 +95,7 @@
<item row="3" column="0">
<widget class="QPushButton" name="selectTriangle">
<property name="text">
<string>Pick triangle</string>
<string>Pick Triangle</string>
</property>
</widget>
</item>
@@ -278,7 +278,7 @@
<item row="4" column="0">
<widget class="QGroupBox" name="groupBox_3">
<property name="title">
<string>Region options</string>
<string>Region Options</string>
</property>
<layout class="QGridLayout" name="gridLayoutReg">
<item row="0" column="0">
@@ -294,7 +294,7 @@
<item row="1" column="0">
<widget class="QCheckBox" name="screenTriangles">
<property name="text">
<string>Respect only triangles with normals facing screen</string>
<string>Respect only triangles with screen-facing normals</string>
</property>
<property name="checked">
<bool>true</bool>

View File

@@ -50,7 +50,7 @@ Gui::MenuItem* Workbench::setupMenuBar() const
reen->setCommand("&Reverse Engineering");
Gui::MenuItem* reconstruct = new Gui::MenuItem();
reconstruct->setCommand("Surface reconstruction");
reconstruct->setCommand("Surface Reconstruction");
*reconstruct << "Reen_PoissonReconstruction"
<< "Reen_ViewTriangulation";
*reen << reconstruct;