From: vsr Date: Mon, 19 Apr 2010 15:10:21 +0000 (+0000) Subject: 0020844: EDF 1375 GEOM : The toolbar of the "Measures" menu does not exist X-Git-Tag: V5_1_4rc1~39 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5eba757003ca0bf0cd1fdce7692db04e18cb95ba;p=modules%2Fgeom.git 0020844: EDF 1375 GEOM : The toolbar of the "Measures" menu does not exist --- diff --git a/src/GEOMGUI/GEOM_msg_en.ts b/src/GEOMGUI/GEOM_msg_en.ts index f3b37db0f..296c9d80e 100644 --- a/src/GEOMGUI/GEOM_msg_en.ts +++ b/src/GEOMGUI/GEOM_msg_en.ts @@ -2097,7 +2097,7 @@ Please, select face, shell or solid and try again MEN_CHECK - Check + Check Shape MEN_CHECK_COMPOUND @@ -2529,7 +2529,7 @@ Please, select face, shell or solid and try again MEN_TOLERANCE - Compute Tolerance + Tolerance MEN_TOOLS @@ -2729,11 +2729,11 @@ Please, select face, shell or solid and try again STB_BASIC_PROPS - Basic properties + Show basic properties of the shape STB_BND_BOX - Compute bounding box + Compute bounding box of the shape STB_BOX @@ -2749,7 +2749,7 @@ Please, select face, shell or solid and try again STB_CHECK - Check + Check shape validity STB_CHECK_COMPOUND @@ -2921,7 +2921,7 @@ Please, select face, shell or solid and try again STB_INERTIA - Compute intertia + Compute moments of intertia of the shape STB_ISOS @@ -2937,11 +2937,11 @@ Please, select face, shell or solid and try again STB_MASS_CENTER - Compute center of mass + Compute center of mass of the shape STB_MIN_DIST - Compute minimum distance + Compute minimum distance between two objects STB_MIRROR @@ -2985,7 +2985,7 @@ Please, select face, shell or solid and try again STB_POINT_COORDS - Point coordinates + Display point coordinates STB_POINT_ON_EDGE @@ -3121,7 +3121,7 @@ Please, select face, shell or solid and try again STB_TOLERANCE - Compute tolerance + Compute tolerance of the shape STB_TORUS @@ -3251,6 +3251,10 @@ Please, select face, shell or solid and try again TOOL_ADVANCED Advanced + + TOOL_MEASURES + Measures + TOP_ARC Create an arc @@ -3265,7 +3269,7 @@ Please, select face, shell or solid and try again TOP_BND_BOX - Compute bounding box + Bounding box TOP_BOX @@ -3281,7 +3285,7 @@ Please, select face, shell or solid and try again TOP_CHECK - Check + Check shape TOP_CHECK_COMPOUND @@ -3437,7 +3441,7 @@ Please, select face, shell or solid and try again TOP_INERTIA - Compute intertia + Moments of intertia TOP_ISOS @@ -3453,11 +3457,11 @@ Please, select face, shell or solid and try again TOP_MASS_CENTER - Compute center of mass + Center of mass TOP_MIN_DIST - Compute minimum distance + Minimum distance TOP_MIRROR @@ -3625,7 +3629,7 @@ Please, select face, shell or solid and try again TOP_TOLERANCE - Compute tolerance + Tolerance TOP_TORUS @@ -3777,7 +3781,7 @@ Please, select face, shell or solid and try again TOP_NORMALE - Compute normal to a face + Normal to a face MEN_NORMALE @@ -3785,11 +3789,11 @@ Please, select face, shell or solid and try again STB_NORMALE - Compute normal to a face in a point (optional) + Compute normal to the face TOP_MEASURE_ANGLE - Compute angle + Angle MEN_MEASURE_ANGLE diff --git a/src/GEOMGUI/GeometryGUI.cxx b/src/GEOMGUI/GeometryGUI.cxx index 3dbfca536..8dac74aa0 100644 --- a/src/GEOMGUI/GeometryGUI.cxx +++ b/src/GEOMGUI/GeometryGUI.cxx @@ -982,6 +982,25 @@ void GeometryGUI::initialize( CAM_Application* app ) createTool( GEOMOp::OpSolid, buildTbId ); createTool( GEOMOp::OpCompound, buildTbId ); + int measureTbId = createTool( tr( "TOOL_MEASURES" ) ); + createTool( GEOMOp::OpPointCoordinates, measureTbId ); + createTool( GEOMOp::OpProperties, measureTbId ); + createTool( GEOMOp::OpCenterMass, measureTbId ); + createTool( GEOMOp::OpInertia, measureTbId ); + createTool( GEOMOp::OpNormale, measureTbId ); + createTool( separator(), measureTbId ); + createTool( GEOMOp::OpBoundingBox, measureTbId ); + createTool( GEOMOp::OpMinDistance, measureTbId ); + createTool( GEOMOp::OpAngle, measureTbId ); + createTool( GEOMOp::OpTolerance , measureTbId ); + createTool( separator(), measureTbId ); + createTool( GEOMOp::OpFreeBoundaries, measureTbId ); + createTool( GEOMOp::OpFreeFaces, measureTbId ); + createTool( separator(), measureTbId ); + createTool( GEOMOp::OpWhatIs, measureTbId ); + createTool( GEOMOp::OpCheckShape, measureTbId ); + createTool( GEOMOp::OpCheckCompound, measureTbId ); + int advancedTbId = createTool( tr( "TOOL_ADVANCED" ) ); createTool( GEOMOp::OpPipeTShape, advancedTbId ); //@@ insert new functions before this line @@//