0020885: EDF 607 SMESH: Measure tools

This commit is contained in:
vsr 2010-11-08 13:35:20 +00:00
parent bde720be0e
commit 49792ab647
6 changed files with 17 additions and 5 deletions

View 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

BIN
resources/mesh_bounding_box.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
resources/mesh_min_dist.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

View 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" );

View 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 );

View File

@ -485,5 +485,13 @@
<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>