From b786ae51b236a2d4cbb2b4439631b894799fc5d7 Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 27 Mar 2006 09:30:43 +0000 Subject: [PATCH] PAL11986. Add a new status to ErrorCode enum --- idl/SMESH_Pattern.idl | 1 + src/SMESHGUI/SMESHGUI_CreatePatternDlg.cxx | 1 + src/SMESHGUI/SMESH_msg_en.po | 3 +++ src/SMESH_I/SMESH_Pattern_i.cxx | 1 + 4 files changed, 6 insertions(+) diff --git a/idl/SMESH_Pattern.idl b/idl/SMESH_Pattern.idl index d2324a0b2..6317019bf 100644 --- a/idl/SMESH_Pattern.idl +++ b/idl/SMESH_Pattern.idl @@ -140,6 +140,7 @@ module SMESH // Load(face) ERR_LOADF_NARROW_FACE, // too narrow face ERR_LOADF_CLOSED_FACE, // closed face + ERR_LOADF_CANT_PROJECT, // impossible to project nodes // Load(volume) ERR_LOADV_BAD_SHAPE, // volume is not a brick of 6 faces ERR_LOADV_COMPUTE_PARAMS, // cant compute point parameters diff --git a/src/SMESHGUI/SMESHGUI_CreatePatternDlg.cxx b/src/SMESHGUI/SMESHGUI_CreatePatternDlg.cxx index 8d5bc7a6a..3c9ab54a2 100755 --- a/src/SMESHGUI/SMESHGUI_CreatePatternDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_CreatePatternDlg.cxx @@ -516,6 +516,7 @@ bool SMESHGUI_CreatePatternDlg::loadFromObject (const bool theMess) if (aCode == SMESH::SMESH_Pattern::ERR_LOAD_EMPTY_SUBMESH ) aMess = tr("ERR_LOAD_EMPTY_SUBMESH"); else if (aCode == SMESH::SMESH_Pattern::ERR_LOADF_NARROW_FACE ) aMess = tr("ERR_LOADF_NARROW_FACE"); else if (aCode == SMESH::SMESH_Pattern::ERR_LOADF_CLOSED_FACE ) aMess = tr("ERR_LOADF_CLOSED_FACE"); + else if (aCode == SMESH::SMESH_Pattern::ERR_LOADF_CANT_PROJECT ) aMess = tr("ERR_LOADF_CANT_PROJECT"); else if (aCode == SMESH::SMESH_Pattern::ERR_LOADV_BAD_SHAPE ) aMess = tr("ERR_LOADV_BAD_SHAPE"); else if (aCode == SMESH::SMESH_Pattern::ERR_LOADV_COMPUTE_PARAMS) aMess = tr("ERR_LOADV_COMPUTE_PARAMS"); else aMess = tr("ERROR_OF_CREATION"); diff --git a/src/SMESHGUI/SMESH_msg_en.po b/src/SMESHGUI/SMESH_msg_en.po index 93111139e..59d3404db 100644 --- a/src/SMESHGUI/SMESH_msg_en.po +++ b/src/SMESHGUI/SMESH_msg_en.po @@ -1954,6 +1954,9 @@ msgstr "It is impossible to create pattern from narrow face" msgid "SMESHGUI_CreatePatternDlg::ERR_LOADF_CLOSED_FACE" msgstr "It is impossible to create pattern from face having seam edge" +msgid "SMESHGUI_CreatePatternDlg::ERR_LOADF_CANT_PROJECT" +msgstr "Impossible to perform projection of nodes to the face" + msgid "SMESHGUI_CreatePatternDlg::ERR_LOADV_BAD_SHAPE" msgstr "Pattern can be created from closed shell or solid with 6 faces only" diff --git a/src/SMESH_I/SMESH_Pattern_i.cxx b/src/SMESH_I/SMESH_Pattern_i.cxx index f48a6fab3..fe1630f5e 100644 --- a/src/SMESH_I/SMESH_Pattern_i.cxx +++ b/src/SMESH_I/SMESH_Pattern_i.cxx @@ -470,6 +470,7 @@ SMESH::SMESH_Pattern::ErrorCode SMESH_Pattern_i::GetErrorCode() RETCASE( ERR_LOAD_EMPTY_SUBMESH ); RETCASE( ERR_LOADF_NARROW_FACE ); RETCASE( ERR_LOADF_CLOSED_FACE ); + RETCASE( ERR_LOADF_CANT_PROJECT ); RETCASE( ERR_LOADV_BAD_SHAPE ); RETCASE( ERR_LOADV_COMPUTE_PARAMS ); RETCASE( ERR_APPL_NOT_LOADED ); -- 2.39.2