PAL13312 (EDF262 SMESH mesh concatenation operation needed):

add SMESHGUI_BuildCompoundDlg
This commit is contained in:
akl 2007-03-05 11:26:53 +00:00
parent 6b49d8f0aa
commit f9a07a8a0a
4 changed files with 60 additions and 0 deletions

View File

@ -91,6 +91,7 @@ LIB_SRC = SMESHGUI.cxx \
SMESHGUI_SewingDlg.cxx \
SMESHGUI_MergeNodesDlg.cxx \
SMESHGUI_EditMeshDlg.cxx \
SMESHGUI_BuildCompoundDlg.cxx \
SMESHGUI_Utils.cxx \
SMESHGUI_GEOMGenUtils.cxx \
SMESHGUI_MeshUtils.cxx \
@ -151,6 +152,7 @@ LIB_MOC = \
SMESHGUI_SewingDlg.h \
SMESHGUI_MergeNodesDlg.h \
SMESHGUI_EditMeshDlg.h \
SMESHGUI_BuildCompoundDlg.h \
SMESHGUI_CreatePolyhedralVolumeDlg.h \
SMESHGUI_Operation.h \
SMESHGUI_SelectionOp.h \

View File

@ -66,6 +66,7 @@
#include "SMESHGUI_MeshOp.h"
#include "SMESHGUI_Displayer.h"
#include "SMESHGUI_MakeNodeAtPointDlg.h"
#include "SMESHGUI_BuildCompoundDlg.h"
#include "SMESHGUI_Utils.h"
#include "SMESHGUI_GEOMGenUtils.h"
@ -1391,6 +1392,16 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
case 704: // Edit mesh/sub-mesh
startOperation( 704 );
break;
case 710: // Build compound mesh
{
if (checkLock(aStudy)) break;
EmitSignalDeactivateDialog();
new SMESHGUI_BuildCompoundDlg( this,
tr("SMESH_BUILD_COMPOUND_TITLE"),
tr("ICON_DLG_BUILD_COMPOUND"),
1 );
}
break;
case 407: // DIAGONAL INVERSION
case 408: // Delete diagonal
{
@ -2348,6 +2359,7 @@ void SMESHGUI::initialize( CAM_Application* app )
createSMESHAction( 702, "CREATE_MESH", "ICON_DLG_INIT_MESH" );
createSMESHAction( 703, "CREATE_SUBMESH", "ICON_DLG_ADD_SUBMESH" );
createSMESHAction( 704, "EDIT_MESHSUBMESH","ICON_DLG_EDIT_MESH" );
createSMESHAction( 710, "BUILD_COMPOUND", "ICON_UNION" );
createSMESHAction( 801, "CREATE_GROUP", "ICON_SMESH_TREE_GROUP" );
createSMESHAction( 802, "CONSTRUCT_GROUP", "ICON_CONSTRUCT_GROUP" );
createSMESHAction( 803, "EDIT_GROUP", "ICON_EDIT_GROUP" );
@ -2476,6 +2488,8 @@ void SMESHGUI::initialize( CAM_Application* app )
createMenu( separator(), meshId, -1 );
createMenu( 701, meshId, -1 );
createMenu( separator(), meshId, -1 );
createMenu( 710, meshId, -1 );
createMenu( separator(), meshId, -1 );
createMenu( 801, meshId, -1 );
createMenu( 802, meshId, -1 );
createMenu( 803, meshId, -1 );
@ -2567,6 +2581,8 @@ void SMESHGUI::initialize( CAM_Application* app )
createTool( separator(), meshTb );
createTool( 701, meshTb );
createTool( separator(), meshTb );
createTool( 710, meshTb );
createTool( separator(), meshTb );
createTool( 801, meshTb );
createTool( 802, meshTb );
createTool( 803, meshTb );

View File

@ -137,6 +137,10 @@ msgstr "mesh_merge_nodes.png"
msgid "ICON_DLG_MERGE_ELEMENTS"
msgstr "mesh_merge_elements.png"
#Build compound
msgid "ICON_DLG_BUILD_COMPOUND"
msgstr "mesh_build_compound.png"
#-----------------------------------------------------------
# Hypothesis
#-----------------------------------------------------------

View File

@ -790,6 +790,10 @@ msgstr "Create a copy"
msgid "SMESH_ROTATION"
msgstr "Rotation"
#Build compound
msgid "SMESH_BUILD_COMPOUND_TITLE"
msgstr "Create a Compound"
# -------------- Mesh Infos --------------
#Mesh Infos
@ -2132,6 +2136,9 @@ msgstr "Compute"
msgid "MEN_CREATE_SUBMESH"
msgstr "Create Sub-mesh"
msgid "MEN_BUILD_COMPOUND"
msgstr "Build Compound"
msgid "MEN_GLOBAL_HYPO"
msgstr "Global Hypothesis"
@ -2491,6 +2498,9 @@ msgstr "Compute"
msgid "TOP_CREATE_SUBMESH"
msgstr "Create Sub-mesh"
msgid "TOP_BUILD_COMPOUND"
msgstr "Build Compound Mesh"
msgid "TOP_GLOBAL_HYPO"
msgstr "Global Hypothesis"
@ -2798,6 +2808,9 @@ msgstr "Compute"
msgid "STB_CREATE_SUBMESH"
msgstr "Create Sub-mesh"
msgid "STB_BUILD_COMPOUND"
msgstr "Build Compound Mesh"
msgid "STB_GLOBAL_HYPO"
msgstr "Global Hypothesis"
@ -3221,6 +3234,31 @@ msgstr "Edit mesh/sub-mesh"
msgid "SMESHGUI_MeshDlg::HYPOTHESES_SETS"
msgstr "Assign a set of hypotheses"
#-----------------------------------------------------------
msgid "SMESHGUI_BuildCompoundDlg::COMPOUND"
msgstr "Compound"
msgid "SMESHGUI_BuildCompoundDlg::RESULT_NAME"
msgstr "Result name"
msgid "SMESHGUI_BuildCompoundDlg::COMPOUND_MESH"
msgstr "Compound_Mesh"
msgid "SMESHGUI_BuildCompoundDlg::MESHES"
msgstr "Meshes"
msgid "SMESHGUI_BuildCompoundDlg::PROCESSING_IDENTICAL_GROUPS"
msgstr "Processing identical groups"
msgid "SMESHGUI_BuildCompoundDlg::UNITE"
msgstr "Unite"
msgid "SMESHGUI_BuildCompoundDlg::RENAME"
msgstr "Rename"
msgid "SMESHGUI_BuildCompoundDlg::MERGE_NODES_AND_ELEMENTS"
msgstr "Merge coincident nodes and elements"
#-----------------------------------------------------------