]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
IPAL0052199: TC7.3.0: "Display mode" menu is not identical in two cases
authorkga <kga@opencascade.com>
Wed, 4 Dec 2013 05:42:05 +0000 (05:42 +0000)
committerkga <kga@opencascade.com>
Wed, 4 Dec 2013 05:42:05 +0000 (05:42 +0000)
src/DisplayGUI/DisplayGUI.cxx
src/GEOMGUI/GEOM_msg_en.ts
src/GEOMGUI/GeometryGUI.cxx
src/GEOMGUI/GeometryGUI_Operations.h

index c4432718ce7dd9644c869216414c34421143eb16..230c751a3a76c922f38e1fae3735192e606a2a69 100644 (file)
@@ -105,6 +105,9 @@ bool DisplayGUI::OnGUIEvent(int theCommandID, SUIT_Desktop* parent)
   case GEOMOp::OpDMShadingWithEdges:  // MENU VIEW - DISPLAY MODE - SHADING WITH EDGES
     SetDisplayMode( 2 );
     break;
+  case GEOMOp::OpDMTexture:           // MENU VIEW - DISPLAY MODE - TEXTURE
+    SetDisplayMode( 3 );
+    break;
   case GEOMOp::OpShowAll:        // MENU VIEW - SHOW ALL
     getGeometryGUI()->EmitSignalDeactivateDialog();
     DisplayAll();
index a56f0efd878b62eddd25bae60ade1a15f8df9b13..11148b58b8495a9d44e59eb1911aac52a2ffbf4a 100644 (file)
@@ -3004,6 +3004,10 @@ Please, select face, shell or solid and try again</translation>
         <source>MEN_MATERIALS_LIBRARY</source>
         <translation>Materials library</translation>
     </message>
+    <message>
+        <source>MEN_TEXTURE</source>
+        <translation>Texture</translation>
+    </message>
     <message>
         <source>MEN_TORUS</source>
         <translation>Torus</translation>
index bdf31b9688c0c77ed4ce5a4b191bb9ad1344c321..ee74a05039e628ee1045d480b4f236cce8ccba98 100644 (file)
@@ -503,6 +503,7 @@ void GeometryGUI::OnGUIEvent( int id, const QVariant& theParam )
   case GEOMOp::OpDMWireframe:        // MENU VIEW - WIREFRAME
   case GEOMOp::OpDMShading:          // MENU VIEW - SHADING
   case GEOMOp::OpDMShadingWithEdges: // MENU VIEW - SHADING
+  case GEOMOp::OpDMTexture:          // MENU VIEW - TEXTURE
   case GEOMOp::OpShowAll:            // MENU VIEW - SHOW ALL
   case GEOMOp::OpShowOnly:           // MENU VIEW - DISPLAY ONLY
   case GEOMOp::OpShowOnlyChildren:   // MENU VIEW - SHOW ONLY CHILDREN
@@ -1019,6 +1020,7 @@ void GeometryGUI::initialize( CAM_Application* app )
   createGeomAction( GEOMOp::OpDMWireframe,        "WIREFRAME" );
   createGeomAction( GEOMOp::OpDMShading,          "SHADING" );
   createGeomAction( GEOMOp::OpDMShadingWithEdges, "SHADING_WITH_EDGES" );
+  createGeomAction( GEOMOp::OpDMTexture,          "TEXTURE" );
   createGeomAction( GEOMOp::OpShowAll,          "DISPLAY_ALL" );
   createGeomAction( GEOMOp::OpHideAll,          "ERASE_ALL" );
   createGeomAction( GEOMOp::OpShow,             "DISPLAY" );
@@ -1291,6 +1293,7 @@ void GeometryGUI::initialize( CAM_Application* app )
   createMenu( GEOMOp::OpDMWireframe,        dispmodeId, -1 );
   createMenu( GEOMOp::OpDMShading,          dispmodeId, -1 );
   createMenu( GEOMOp::OpDMShadingWithEdges, dispmodeId, -1 );
+  createMenu( GEOMOp::OpDMTexture,          dispmodeId, -1 );
   createMenu( separator(),                  dispmodeId, -1 );
   createMenu( GEOMOp::OpSwitchVectors,      dispmodeId, -1 );
 
index 965e9e44509b7bd002ce55428d0178cd41e12da2..304220b0b0ebb2cdd7d2e484b687edaa3eb99e11 100644 (file)
@@ -68,6 +68,7 @@ namespace GEOMOp {
     OpDMWireframe         = 2010,   // MENU VIEW  - DISPLAY MODE - WIREFRAME
     OpDMShading           = 2011,   // MENU VIEW  - DISPLAY MODE - SHADING
     OpDMShadingWithEdges  = 2012,   // MENU VIEW  - DISPLAY MODE - SHADING WITH EDGES
+    OpDMTexture           = 2013,   // MENU VIEW  - DISPLAY MODE - TEXTURE
     OpShow                = 2100,   // POPUP MENU - SHOW
     OpShowOnly            = 2101,   // POPUP MENU - SHOW ONLY
     OpHide                = 2102,   // POPUP MENU - HIDE