From: asv Date: Tue, 2 May 2006 10:59:18 +0000 (+0000) Subject: Save VISU State command is added by VisuGUI_Module now. X-Git-Tag: mergeto_trunk_06May06~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2fd25dc2b35d889775b225ed042162e95bc00379;p=modules%2Fvisu.git Save VISU State command is added by VisuGUI_Module now. --- diff --git a/src/VISUGUI/VISU_msg_en.po b/src/VISUGUI/VISU_msg_en.po index 628061ee..b2b3b673 100644 --- a/src/VISUGUI/VISU_msg_en.po +++ b/src/VISUGUI/VISU_msg_en.po @@ -2032,4 +2032,13 @@ msgid "VVTK_PickingDlg::PARENT_MESH_TITLE" msgstr "Parent mesh element" msgid "VVTK_PickingDlg::DISPLAY_PARENT_MESH" -msgstr "Display parent mesh element" \ No newline at end of file +msgstr "Display parent mesh element" + +msgid "VisuGUI_Module::TOT_DESK_FILE_SAVE_GUI_STATE" +msgstr "Save VISU state" + +msgid "VisuGUI_Module::MEN_DESK_FILE_SAVE_GUI_STATE" +msgstr "Save VISU state" + +msgid "VisuGUI_Module::PRP_DESK_FILE_SAVE_GUI_STATE" +msgstr "Saves current state of viewers, displayed objects, etc." diff --git a/src/VISUGUI/VisuGUI_Module.cxx b/src/VISUGUI/VisuGUI_Module.cxx index 647feba5..e8ce11e7 100644 --- a/src/VISUGUI/VisuGUI_Module.cxx +++ b/src/VISUGUI/VisuGUI_Module.cxx @@ -97,6 +97,8 @@ static int MYDEBUG = 0; static int MYDEBUG = 0; #endif +#define SAVE_VISU_STATE 5090 + #define GAUSS_NEW_VIEWER 5100 #define GAUSS_CREATE_PRS 5200 #define GAUSS_RENAME 5210 @@ -168,6 +170,13 @@ initialize( CAM_Application* theApp ) SUIT_ResourceMgr* aResourceMgr = SUIT_Session::session()->resourceMgr(); + // "Save VISU State" command is moved from SalomeApp_Applicaiton + createAction( SAVE_VISU_STATE, tr( "TOT_DESK_FILE_SAVE_GUI_STATE" ), QIconSet(), + tr( "MEN_DESK_FILE_SAVE_GUI_STATE" ), tr( "PRP_DESK_FILE_SAVE_GUI_STATE" ), + 0, getApp()->desktop(), false, getApp(), SLOT( onSaveGUIState() ) ); + int fileMenu = createMenu( tr( "MEN_DESK_FILE" ), -1 ); + createMenu( SAVE_VISU_STATE, fileMenu, 9, -1 ); + QPixmap aPixmap; aPixmap = aResourceMgr->loadPixmap("VISU",tr("ICON_GAUSS_NEW_VIEWER")); createAction( GAUSS_NEW_VIEWER, @@ -183,7 +192,7 @@ initialize( CAM_Application* theApp ) int windowMenu = createMenu( tr( "MEN_DESK_WINDOW" ), -1, 100 ); int newWinMenu = createMenu( tr( "MEN_DESK_NEWWINDOW" ), windowMenu, -1, 0 ); createMenu( action( GAUSS_NEW_VIEWER ), newWinMenu, -1 ); - + // Add actions to menus createMenu( tr( "MEN_GAUSS" ), -1, -1, 30 ); //createMenu( GAUSS_CREATE_PRS, aMenuId, 10 ); @@ -1941,7 +1950,7 @@ void VisuGUI_Module::restoreVisualParameters(int savePoint) } // for names/parameters iterator } // for entries iterator - // [ update all SVTK/VVTK views + // [ update all SVTK/VVTK/Plot2D views QPtrList lst; getApp()->viewManagers( lst ); for ( QPtrListIterator it( lst ); it.current(); ++it ) {