]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0020885: EDF 607 SMESH: Measure tools
authorvsr <vsr@opencascade.com>
Mon, 8 Nov 2010 13:35:20 +0000 (13:35 +0000)
committervsr <vsr@opencascade.com>
Mon, 8 Nov 2010 13:35:20 +0000 (13:35 +0000)
resources/Makefile.am
resources/mesh_bounding_box.png [new file with mode: 0755]
resources/mesh_min_dist.png [new file with mode: 0755]
src/SMESHGUI/SMESHGUI.cxx
src/SMESHGUI/SMESHGUI_Measurements.cxx
src/SMESHGUI/SMESH_images.ts

index 338af7a1505adca6f8ba9b8382c378f8980ed4f1..da21b6088ca689b4e0503f2c080f57574b45cc2f 100644 (file)
@@ -178,7 +178,9 @@ dist_salomeres_DATA = \
         scale_along_axes.png \
        split_into_tetra.png \
        mesh_duplicate_nodes.png \
-       mesh_duplicate_nodes_with_elem.png
+       mesh_duplicate_nodes_with_elem.png \
+       mesh_bounding_box.png \
+       mesh_min_dist.png
 
 # VSR: little trick to avoid putting if SMESHCatalog.xml to the distribution archive
 nodist_salomeres_SCRIPTS = SMESHCatalog.xml
diff --git a/resources/mesh_bounding_box.png b/resources/mesh_bounding_box.png
new file mode 100755 (executable)
index 0000000..f01bae8
Binary files /dev/null and b/resources/mesh_bounding_box.png differ
diff --git a/resources/mesh_min_dist.png b/resources/mesh_min_dist.png
new file mode 100755 (executable)
index 0000000..6713caf
Binary files /dev/null and b/resources/mesh_min_dist.png differ
index 9a83e9be2043b99d0a852f8b11c74c189c09b07a..48a44fd6e8d46837eadaf60b290d25052a70bfe7 100644 (file)
@@ -3248,8 +3248,8 @@ void SMESHGUI::initialize( CAM_Application* app )
   createSMESHAction( 1137, "DISABLE_AUTO_COLOR" );
   createSMESHAction( 2000, "CTRL" );
 
-  createSMESHAction( 501, "MEASURE_MIN_DIST" );
-  createSMESHAction( 502, "MEASURE_BND_BOX" );
+  createSMESHAction( 501, "MEASURE_MIN_DIST", "ICON_MEASURE_MIN_DIST" );
+  createSMESHAction( 502, "MEASURE_BND_BOX",  "ICON_MEASURE_BND_BOX" );
 
   createSMESHAction( 300, "ERASE" );
   createSMESHAction( 301, "DISPLAY" );
index ffc3fe32c9c5ec2d2b9071a9d2c63a6e0f802fa6..b07c08dc4032f35eae4a02265080af5641e2afbc 100644 (file)
@@ -1098,17 +1098,19 @@ SMESHGUI_MeasureDlg::SMESHGUI_MeasureDlg( QWidget* parent, int page )
   setWindowTitle( tr( "MEASUREMENTS" ) );
   setSizeGripEnabled( true );
 
+  SUIT_ResourceMgr* resMgr = SMESHGUI::resourceMgr();
+
   myTabWidget = new QTabWidget( this );
 
   // min distance
 
   myMinDist = new SMESHGUI_MinDistance( myTabWidget );
-  myTabWidget->addTab( myMinDist, tr( "MIN_DIST" ) );
+  myTabWidget->addTab( myMinDist, resMgr->loadPixmap( "SMESH", tr( "ICON_MEASURE_MIN_DIST" ) ), tr( "MIN_DIST" ) );
 
   // bounding box
   
   myBndBox = new SMESHGUI_BoundingBox( myTabWidget );
-  myTabWidget->addTab( myBndBox, tr( "BND_BOX" ) );
+  myTabWidget->addTab( myBndBox, resMgr->loadPixmap( "SMESH", tr( "ICON_MEASURE_BND_BOX" ) ), tr( "BND_BOX" ) );
 
   // buttons
   QPushButton* okBtn = new QPushButton( tr( "SMESH_BUT_OK" ), this );
index b25d5a457f9e44377abdc72457a0e19fd4be7913..856e88f32740868bc79b378612eac71dfd14f826 100644 (file)
             <source>ICON_SPLIT_TO_TETRA</source>
             <translation>split_into_tetra.png</translation>
         </message>
+        <message>
+            <source>ICON_MEASURE_MIN_DIST</source>
+            <translation>mesh_min_dist.png</translation>
+        </message>
+        <message>
+            <source>ICON_MEASURE_BND_BOX</source>
+            <translation>mesh_bounding_box.png</translation>
+        </message>
     </context>
 </TS>