]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Save VISU State command is added by VisuGUI_Module now.
authorasv <asv@opencascade.com>
Tue, 2 May 2006 10:59:18 +0000 (10:59 +0000)
committerasv <asv@opencascade.com>
Tue, 2 May 2006 10:59:18 +0000 (10:59 +0000)
src/VISUGUI/VISU_msg_en.po
src/VISUGUI/VisuGUI_Module.cxx

index 628061ee7d8707189315c9930a8c652cc6b8bc5c..b2b3b673c25750a8c52e9a0e81b5e4f9a0f97901 100644 (file)
@@ -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."
index 647feba5c1e7342f65ad09e0fc12de4e3cbfe6a7..e8ce11e73aa180bc7e879756506a472f4f973530 100644 (file)
@@ -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<SUIT_ViewManager> lst;
   getApp()->viewManagers( lst );
   for ( QPtrListIterator<SUIT_ViewManager> it( lst ); it.current(); ++it ) {