From 6ec9379fa405871dd14a94c6575d927b5b313d2a Mon Sep 17 00:00:00 2001 From: asv Date: Fri, 19 Aug 2005 12:16:55 +0000 Subject: [PATCH] "GAUSS viewer" command moved to "New window" menu. --- src/VISUGUI/VISUM_msg_en.po | 2 +- src/VISUGUI/VisuGUI_Module.cxx | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) 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 -- 2.39.2