Points: Update UI strings for consistency
This commit is contained in:
committed by
Chris Hennes
parent
488bc484b9
commit
4edba0539a
@@ -42,7 +42,7 @@ PyMOD_INIT_FUNC(Points)
|
||||
{
|
||||
// clang-format off
|
||||
PyObject* pointsModule = Points::initModule();
|
||||
Base::Console().log("Loading Points module... done\n");
|
||||
Base::Console().log("Loading Points module… done\n");
|
||||
|
||||
// add python types
|
||||
Base::Interpreter().addType(&Points::PointsPy::Type, pointsModule, "Points");
|
||||
|
||||
@@ -89,7 +89,7 @@ void PointsAlgos::LoadAscii(PointKernel& points, const char* FileName)
|
||||
// resize the PointKernel
|
||||
points.resize(LineCnt);
|
||||
|
||||
Base::SequencerLauncher seq("Loading points...", LineCnt);
|
||||
Base::SequencerLauncher seq("Loading points…", LineCnt);
|
||||
|
||||
// again to the beginning
|
||||
Base::ifstream file(fi, std::ios::in);
|
||||
|
||||
@@ -81,7 +81,7 @@ PyMOD_INIT_FUNC(PointsGui)
|
||||
PyMOD_Return(nullptr);
|
||||
}
|
||||
|
||||
Base::Console().log("Loading GUI of Points module... done\n");
|
||||
Base::Console().log("Loading GUI of Points module… done\n");
|
||||
PyObject* mod = PointsGui::initModule();
|
||||
|
||||
// instantiating the commands
|
||||
|
||||
@@ -66,10 +66,10 @@ CmdPointsImport::CmdPointsImport()
|
||||
{
|
||||
sAppModule = "Points";
|
||||
sGroup = QT_TR_NOOP("Points");
|
||||
sMenuText = QT_TR_NOOP("Import points...");
|
||||
sMenuText = QT_TR_NOOP("Import Points…");
|
||||
sToolTipText = QT_TR_NOOP("Imports a point cloud");
|
||||
sWhatsThis = "Points_Import";
|
||||
sStatusTip = QT_TR_NOOP("Imports a point cloud");
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "Points_Import_Point_cloud";
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@ void CmdPointsImport::activated(int iMsg)
|
||||
msgBox.setWindowTitle(QObject::tr("Points not at Origin"));
|
||||
msgBox.setText(QObject::tr(
|
||||
"The Bounding Box of the imported points does not contain the origin. "
|
||||
"Do you want to translate it to the origin?"));
|
||||
"Translate it to the origin?"));
|
||||
msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
|
||||
msgBox.setDefaultButton(QMessageBox::Yes);
|
||||
auto ret = msgBox.exec();
|
||||
@@ -151,7 +151,7 @@ CmdPointsExport::CmdPointsExport()
|
||||
{
|
||||
sAppModule = "Points";
|
||||
sGroup = QT_TR_NOOP("Points");
|
||||
sMenuText = QT_TR_NOOP("Export points...");
|
||||
sMenuText = QT_TR_NOOP("Export Points…");
|
||||
sToolTipText = QT_TR_NOOP("Exports a point cloud");
|
||||
sWhatsThis = "Points_Export";
|
||||
sStatusTip = QT_TR_NOOP("Exports a point cloud");
|
||||
@@ -199,9 +199,9 @@ CmdPointsTransform::CmdPointsTransform()
|
||||
sAppModule = "Points";
|
||||
sGroup = QT_TR_NOOP("Points");
|
||||
sMenuText = QT_TR_NOOP("Transform Points");
|
||||
sToolTipText = QT_TR_NOOP("Test to transform a point cloud");
|
||||
sToolTipText = QT_TR_NOOP("Tests to transform a point cloud");
|
||||
sWhatsThis = "Points_Transform";
|
||||
sStatusTip = QT_TR_NOOP("Test to transform a point cloud");
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "Test1";
|
||||
}
|
||||
|
||||
@@ -237,10 +237,10 @@ CmdPointsConvert::CmdPointsConvert()
|
||||
{
|
||||
sAppModule = "Points";
|
||||
sGroup = QT_TR_NOOP("Points");
|
||||
sMenuText = QT_TR_NOOP("Convert to points...");
|
||||
sToolTipText = QT_TR_NOOP("Convert to points");
|
||||
sMenuText = QT_TR_NOOP("Convert to Points…");
|
||||
sToolTipText = QT_TR_NOOP("Converts to points");
|
||||
sWhatsThis = "Points_Convert";
|
||||
sStatusTip = QT_TR_NOOP("Convert to points");
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "Points_Convert";
|
||||
}
|
||||
|
||||
@@ -325,10 +325,10 @@ CmdPointsPolyCut::CmdPointsPolyCut()
|
||||
{
|
||||
sAppModule = "Points";
|
||||
sGroup = QT_TR_NOOP("Points");
|
||||
sMenuText = QT_TR_NOOP("Cut point cloud");
|
||||
sMenuText = QT_TR_NOOP("Cut Point Cloud");
|
||||
sToolTipText = QT_TR_NOOP("Cuts a point cloud with a picked polygon");
|
||||
sWhatsThis = "Points_PolyCut";
|
||||
sStatusTip = QT_TR_NOOP("Cuts a point cloud with a picked polygon");
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "PolygonPick";
|
||||
}
|
||||
|
||||
@@ -373,10 +373,10 @@ CmdPointsMerge::CmdPointsMerge()
|
||||
{
|
||||
sAppModule = "Points";
|
||||
sGroup = QT_TR_NOOP("Points");
|
||||
sMenuText = QT_TR_NOOP("Merge point clouds");
|
||||
sToolTipText = QT_TR_NOOP("Merge several point clouds into one");
|
||||
sMenuText = QT_TR_NOOP("Merge Point Clouds");
|
||||
sToolTipText = QT_TR_NOOP("Merges several point clouds into one");
|
||||
sWhatsThis = "Points_Merge";
|
||||
sStatusTip = QT_TR_NOOP("Merge several point clouds into one");
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "Points_Merge";
|
||||
}
|
||||
|
||||
@@ -435,10 +435,10 @@ CmdPointsStructure::CmdPointsStructure()
|
||||
{
|
||||
sAppModule = "Points";
|
||||
sGroup = QT_TR_NOOP("Points");
|
||||
sMenuText = QT_TR_NOOP("Structured point cloud");
|
||||
sToolTipText = QT_TR_NOOP("Convert points to structured point cloud");
|
||||
sMenuText = QT_TR_NOOP("Structured Point Cloud");
|
||||
sToolTipText = QT_TR_NOOP("Convert points to a structured point cloud");
|
||||
sWhatsThis = "Points_Structure";
|
||||
sStatusTip = QT_TR_NOOP("Convert points to structured point cloud");
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "Points_Structure";
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>ASCII points import</string>
|
||||
<string>ASCII Points Import</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout">
|
||||
<property name="spacing">
|
||||
@@ -31,7 +31,7 @@
|
||||
<item>
|
||||
<widget class="QLabel" name="textLabel1">
|
||||
<property name="text">
|
||||
<string>Template:</string>
|
||||
<string>Template</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -43,7 +43,7 @@
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox1">
|
||||
<property name="title">
|
||||
<string>Special lines</string>
|
||||
<string>Special Lines</string>
|
||||
</property>
|
||||
<layout class="QGridLayout">
|
||||
<property name="margin">
|
||||
@@ -55,7 +55,7 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QGroupBox" name="groupBox">
|
||||
<property name="title">
|
||||
<string>First line:</string>
|
||||
<string>First Line</string>
|
||||
</property>
|
||||
<layout class="QHBoxLayout">
|
||||
<property name="spacing">
|
||||
@@ -98,7 +98,7 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="textLabel3">
|
||||
<property name="text">
|
||||
<string>Cluster by lines starting with:</string>
|
||||
<string>Cluster by lines starting with</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -108,7 +108,7 @@
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="textLabel4">
|
||||
<property name="text">
|
||||
<string>Ignore lines starting with:</string>
|
||||
<string>Ignore lines starting with</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -123,7 +123,7 @@
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox2">
|
||||
<property name="title">
|
||||
<string>Point format</string>
|
||||
<string>Point Format</string>
|
||||
</property>
|
||||
<layout class="QGridLayout">
|
||||
<property name="margin">
|
||||
@@ -143,7 +143,7 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="textLabel6">
|
||||
<property name="text">
|
||||
<string>Number separator:</string>
|
||||
<string>Number separator</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -177,7 +177,7 @@
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="textLabel7">
|
||||
<property name="text">
|
||||
<string>Points format:</string>
|
||||
<string>Points format</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -198,7 +198,7 @@
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="textLabel8">
|
||||
<property name="text">
|
||||
<string>Next block:</string>
|
||||
<string>Next block</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -206,7 +206,7 @@
|
||||
<widget class="QComboBox" name="comboBoxNextBlock1">
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>none</string>
|
||||
<string>None</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
@@ -226,7 +226,7 @@
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>I (Gray value)</string>
|
||||
<string>I (gray value)</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
@@ -234,7 +234,7 @@
|
||||
<item row="3" column="0">
|
||||
<widget class="QLabel" name="textLabel8_2">
|
||||
<property name="text">
|
||||
<string>Next block:</string>
|
||||
<string>Next block</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -242,7 +242,7 @@
|
||||
<widget class="QComboBox" name="comboBoxNextBlock2">
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>none</string>
|
||||
<string>None</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
@@ -262,7 +262,7 @@
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>I (Gray value)</string>
|
||||
<string>I (gray value)</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
@@ -270,7 +270,7 @@
|
||||
<item row="4" column="0">
|
||||
<widget class="QLabel" name="textLabel8_2_2">
|
||||
<property name="text">
|
||||
<string>Next block:</string>
|
||||
<string>Next block</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -278,7 +278,7 @@
|
||||
<widget class="QComboBox" name="comboBoxNextBlock3">
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>none</string>
|
||||
<string>None</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
@@ -298,7 +298,7 @@
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>I (Gray value)</string>
|
||||
<string>I (gray value)</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
@@ -338,7 +338,7 @@
|
||||
<item>
|
||||
<widget class="QLabel" name="textLabel5">
|
||||
<property name="text">
|
||||
<string>Number of previewed lines:</string>
|
||||
<string>Number of previewed lines</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
using namespace PointsGui;
|
||||
|
||||
#if 0 // needed for Qt's lupdate utility
|
||||
qApp->translate("Workbench", "Points tools");
|
||||
qApp->translate("Workbench", "Points Tools");
|
||||
qApp->translate("Workbench", "&Points");
|
||||
#endif
|
||||
|
||||
@@ -46,7 +46,7 @@ Gui::ToolBarItem* Workbench::setupToolBars() const
|
||||
{
|
||||
Gui::ToolBarItem* root = StdWorkbench::setupToolBars();
|
||||
Gui::ToolBarItem* pnt = new Gui::ToolBarItem(root);
|
||||
pnt->setCommand("Points tools");
|
||||
pnt->setCommand("Points Tools");
|
||||
*pnt << "Points_Import"
|
||||
<< "Points_Export"
|
||||
<< "Separator"
|
||||
@@ -62,7 +62,7 @@ Gui::ToolBarItem* Workbench::setupCommandBars() const
|
||||
// point tools
|
||||
Gui::ToolBarItem* root = new Gui::ToolBarItem;
|
||||
Gui::ToolBarItem* pnt = new Gui::ToolBarItem(root);
|
||||
pnt->setCommand("Points tools");
|
||||
pnt->setCommand("Points Tools");
|
||||
*pnt << "Points_Import"
|
||||
<< "Points_Export"
|
||||
<< "Points_Convert"
|
||||
|
||||
Reference in New Issue
Block a user