From dc53066e720482f7c9c88531043b72360122a7f0 Mon Sep 17 00:00:00 2001 From: ouv Date: Thu, 6 Oct 2005 14:26:50 +0000 Subject: [PATCH] Fixed Bug GVIEW10164 : Item "Results at Gauss points" is missing in menu "Visualization" --- src/VISUGUI/VISUM_images.po | 3 +++ src/VISUGUI/VISUM_msg_en.po | 6 ++++++ src/VISUGUI/VisuGUI_Module.cxx | 6 +++++- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/VISUGUI/VISUM_images.po b/src/VISUGUI/VISUM_images.po index e07995e9..23082cd6 100644 --- a/src/VISUGUI/VISUM_images.po +++ b/src/VISUGUI/VISUM_images.po @@ -36,6 +36,9 @@ msgstr "" msgid "ICON_GAUSS_NEW_VIEWER" msgstr "Visu_points.png" +msgid "ICON_GAUSS_POINTS" +msgstr "Visu_gauss_points.png" + msgid "ICON_VVTK_INTERACTOR_STYLE_SWITCH" msgstr "Visu_vvtk_switch.png" diff --git a/src/VISUGUI/VISUM_msg_en.po b/src/VISUGUI/VISUM_msg_en.po index 89cca1ce..457f52ce 100644 --- a/src/VISUGUI/VISUM_msg_en.po +++ b/src/VISUGUI/VISUM_msg_en.po @@ -6,6 +6,12 @@ msgstr "" "Last-Translator: FULLNAME \n" "Content-Type: text/plain; charset=iso-8859-1\n" +msgid "VisuGUI_Module::MEN_VISUALISATION" +msgstr "Visualization" + +msgid "VisuGUI_Module::TOOL_VISUALISATION" +msgstr "Visualization Toolbar" + msgid "VisuGUI_Module::MEN_GAUSS" msgstr "Gauss" diff --git a/src/VISUGUI/VisuGUI_Module.cxx b/src/VISUGUI/VisuGUI_Module.cxx index 1b975551..be93971c 100644 --- a/src/VISUGUI/VisuGUI_Module.cxx +++ b/src/VISUGUI/VisuGUI_Module.cxx @@ -221,13 +221,17 @@ VisuGUI_Module QtxPopupMgr* mgr = popupMgr(); QString aRule; - createAction( GAUSS_CREATE_PRS, tr("MEN_GAUSS_CREATE_PRS"), QIconSet(), + aPixmap = aResourceMgr->loadPixmap( "VISU", tr( "ICON_GAUSS_POINTS" ) ); + createAction( GAUSS_CREATE_PRS, tr("MEN_GAUSS_CREATE_PRS"), aPixmap, tr("MEN_GAUSS_CREATE_PRS"), "", 0, this, false, this, SLOT(OnCreateGaussPoints())); mgr->insert( action( GAUSS_CREATE_PRS ), -1, 0, -1 ); mgr->setRule( action( GAUSS_CREATE_PRS ), aSel_One_ObjBr + " and type='VISU::TTIMESTAMP'", true ); + createMenu( action( GAUSS_CREATE_PRS ), createMenu( tr( "MEN_VISUALISATION" ), -1 ), -1 ); + createTool( GAUSS_CREATE_PRS, createTool( tr( "TOOL_VISUALISATION" ) ), -1 ); + createAction( GAUSS_EDIT_PRS, VisuGUI::tr("MEN_EDIT_PRS"), QIconSet(), VisuGUI::tr("MEN_EDIT_PRS"), "", 0, this, false, this, SLOT(OnEditGaussPoints())); -- 2.39.2