Surface, MeshPart: add more information to the CurveOnMesh command

In the Surface Workbench, the command is called `Surface_CurveOnMesh`
and the only thing it does is call the corresponding command
in the MeshPart Workbench, where it is defined
under the name `MeshPart_CurveOnMesh`.

Currently the MeshPart Workbench is not exposed on the graphical user
interface but it is loaded at startup, and its commands
are in fact used from the Mesh Workbench and, in this case,
the Surface Workbench.

Also improve the tooltip of the other commands in the Surface Workbench:
`Cut`, `Filling`, `GeomFillSurface`, `ExtendFace`, and `Sections`.
The `Cut` command does not do anything at this moment
so it is not visible in the interface.
This commit is contained in:
vocx-fc
2020-09-30 18:32:57 -05:00
committed by wmayer
parent 13a5f74d32
commit 8eb466d3e7
2 changed files with 31 additions and 11 deletions

View File

@@ -311,7 +311,15 @@ CmdMeshPartCurveOnMesh::CmdMeshPartCurveOnMesh()
sAppModule = "MeshPart";
sGroup = QT_TR_NOOP("Mesh");
sMenuText = QT_TR_NOOP("Curve on mesh...");
sToolTipText = QT_TR_NOOP("Curve on mesh");
sToolTipText = QT_TR_NOOP("Creates an approximated curve on top of the selected mesh.\n"
"Press 'Start', then pick points on the mesh; "
"when enough points have been set,\n"
"right-click and choose 'Create'.\n"
"\n"
"This command only works with a 'mesh' object, "
"not a regular face or surface.\n"
"To convert an object to a mesh "
"use the tools of the Mesh Workbench.");
sWhatsThis = "MeshPart_CurveOnMesh";
sStatusTip = sToolTipText;
}

View File

@@ -75,11 +75,12 @@ CmdSurfaceCut::CmdSurfaceCut()
sAppModule = "Surface";
sGroup = QT_TR_NOOP("Surface");
sMenuText = QT_TR_NOOP("Surface Cut function");
sToolTipText = QT_TR_NOOP("Cuts a Shape with another Shape.\nReturns a modified version of the first shape");
sToolTipText = QT_TR_NOOP("Cuts a shape with another Shape.\n"
"It returns a modified version of the first shape");
sWhatsThis = "Surface_Cut";
sStatusTip = QT_TR_NOOP("Surface Cut function");
sStatusTip = sToolTipText;
sPixmap = "Surface_Cut";
sAccel = "CTRL+H";
// sAccel = "CTRL+H";
}
void CmdSurfaceCut::activated(int iMsg)
@@ -133,8 +134,10 @@ CmdSurfaceFilling::CmdSurfaceFilling()
sAppModule = "Surface";
sGroup = QT_TR_NOOP("Surface");
sMenuText = QT_TR_NOOP("Filling...");
sToolTipText = QT_TR_NOOP("Fills a series of boundary curves, constraint curves and vertexes with a surface");
sStatusTip = QT_TR_NOOP("Fills a series of boundary curves, constraint curves and vertexes with a surface");
sToolTipText = QT_TR_NOOP("Creates a surface from a series of picked boundary edges.\n"
"Optionally, the surface may be constrained by non-boundary edges\n"
"and vertices, to determine its curvature.");
sStatusTip = sToolTipText;
sWhatsThis = "Surface_Filling";
sPixmap = "Surface_Filling";
}
@@ -165,7 +168,7 @@ CmdSurfaceGeomFillSurface::CmdSurfaceGeomFillSurface()
sAppModule = "Surface";
sGroup = QT_TR_NOOP("Surface");
sMenuText = QT_TR_NOOP("Fill boundary curves");
sToolTipText = QT_TR_NOOP("Creates a surface from two, three or four boundary edges");
sToolTipText = QT_TR_NOOP("Creates a surface from two, three or four boundary edges.");
sWhatsThis = "Surface_GeomFillSurface";
sStatusTip = sToolTipText;
sPixmap = "Surface_BSplineSurface";
@@ -195,7 +198,15 @@ CmdSurfaceCurveOnMesh::CmdSurfaceCurveOnMesh()
sAppModule = "MeshPart";
sGroup = QT_TR_NOOP("Surface");
sMenuText = QT_TR_NOOP("Curve on mesh...");
sToolTipText = QT_TR_NOOP("Curve on mesh");
sToolTipText = QT_TR_NOOP("Creates an approximated curve on top of the selected mesh.\n"
"Press 'Start', then pick points on the mesh; "
"when enough points have been set,\n"
"right-click and choose 'Create'.\n"
"\n"
"This command only works with a 'mesh' object, "
"not a regular face or surface.\n"
"To convert an object to a mesh "
"use the tools of the Mesh Workbench.");
sWhatsThis = "Surface_CurveOnMesh";
sStatusTip = sToolTipText;
sPixmap = "Surface_CurveOnMesh";
@@ -229,7 +240,8 @@ CmdSurfaceExtendFace::CmdSurfaceExtendFace()
sAppModule = "Surface";
sGroup = QT_TR_NOOP("Surface");
sMenuText = QT_TR_NOOP("Extend face");
sToolTipText = QT_TR_NOOP("Extend face");
sToolTipText = QT_TR_NOOP("Extrapolates the selected face or surface at its boundaries\n"
"with its local U and V parameters.");
sWhatsThis = "Surface_ExtendFace";
sStatusTip = sToolTipText;
sPixmap = "Surface_Extend";
@@ -270,8 +282,8 @@ CmdSurfaceSections::CmdSurfaceSections()
sAppModule = "Surface";
sGroup = QT_TR_NOOP("Surface");
sMenuText = QT_TR_NOOP("Sections...");
sToolTipText = QT_TR_NOOP("Creates a surface from a series of section curves");
sStatusTip = QT_TR_NOOP("Creates a surface from a series of section curves");
sToolTipText = QT_TR_NOOP("Creates a surface from a series of sectional edges.");
sStatusTip = sToolTipText;
sWhatsThis = "Surface_Sections";
sPixmap = "Surface_Sections";
}