From: asv Date: Fri, 19 Aug 2005 12:16:55 +0000 (+0000) Subject: "GAUSS viewer" command moved to "New window" menu. X-Git-Tag: BR-D5-38-2003_D2005-12-09~110 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6ec9379fa405871dd14a94c6575d927b5b313d2a;p=modules%2Fvisu.git "GAUSS viewer" command moved to "New window" menu. --- diff --git a/src/VISUGUI/VISUM_msg_en.po b/src/VISUGUI/VISUM_msg_en.po index 62899b51..1b0b0fc3 100644 --- a/src/VISUGUI/VISUM_msg_en.po +++ b/src/VISUGUI/VISUM_msg_en.po @@ -10,7 +10,7 @@ msgid "VisuGUI_Module::MEN_GAUSS" msgstr "Gauss" msgid "VisuGUI_Module::MEN_GAUSS_NEW_VIEWER" -msgstr "New Viewer" +msgstr "GAUSS Viewer" msgid "VisuGUI_Module::VISU_GAUSS_PREF_TAB_TLT" msgstr "Gauss Points" diff --git a/src/VISUGUI/VisuGUI_Module.cxx b/src/VISUGUI/VisuGUI_Module.cxx index 01aff079..5b77c115 100644 --- a/src/VISUGUI/VisuGUI_Module.cxx +++ b/src/VISUGUI/VisuGUI_Module.cxx @@ -148,21 +148,22 @@ VisuGUI_Module { VisuGUI::initialize( theApp ); - // Add menus - int aMenuId; - aMenuId = createMenu( tr( "MEN_GAUSS" ), -1, -1, 30 ); + // create actions and add menus createAction( GAUSS_NEW_VIEWER, tr("MEN_GAUSS_NEW_VIEWER"), QIconSet(), tr("MEN_GAUSS_NEW_VIEWER"), "", 0, this, false, this, SLOT(onCreateViewManager())); - createMenu( GAUSS_NEW_VIEWER, aMenuId, 10 ); - createAction( GAUSS_CREATE_PRS, tr("MEN_GAUSS_CREATE_PRS"), QIconSet(), tr("MEN_GAUSS_CREATE_PRS"), "", 0, this, false, this, SLOT(OnCreateGaussPoints())); + + int windowMenu = createMenu( tr( "MEN_DESK_WINDOW" ), -1, 100 ); + int newWinMenu = createMenu( tr( "MEN_DESK_NEWWINDOW" ), windowMenu, -1, 0 ); + int gaussMenu = createMenu( action( GAUSS_NEW_VIEWER ), newWinMenu, -1 ); + + int aMenuId = createMenu( tr( "MEN_GAUSS" ), -1, -1, 30 ); createMenu( GAUSS_CREATE_PRS, aMenuId, 10 ); } - //--------------------------------------------------------------- bool VisuGUI_Module