]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Save GUI State command is renamed to Save VISU State and moved to VisuGUI_Module...
authorasv <asv@opencascade.com>
Tue, 2 May 2006 10:56:35 +0000 (10:56 +0000)
committerasv <asv@opencascade.com>
Tue, 2 May 2006 10:56:35 +0000 (10:56 +0000)
src/SalomeApp/SalomeApp_Application.cxx
src/SalomeApp/SalomeApp_Application.h

index ccff1f8fbdc67a7b56db47dfb5ef5b272ba90902..772adfb7deb8b09eb74ecfe3dee8bb7ac428e540 100644 (file)
@@ -105,10 +105,11 @@ void SalomeApp_Application::createActions()
   SUIT_Desktop* desk = desktop();
   
   //! Save GUI state
-  createAction( SaveGUIStateId, tr( "TOT_DESK_FILE_SAVE_GUI_STATE" ), QIconSet(),
-               tr( "MEN_DESK_FILE_SAVE_GUI_STATE" ), tr( "PRP_DESK_FILE_SAVE_GUI_STATE" ),
-               0, desk, false, this, SLOT( onSaveGUIState() ) );
-
+  // "Save GUI State" command is moved to VISU module
+  //  createAction( SaveGUIStateId, tr( "TOT_DESK_FILE_SAVE_GUI_STATE" ), QIconSet(),
+  //           tr( "MEN_DESK_FILE_SAVE_GUI_STATE" ), tr( "PRP_DESK_FILE_SAVE_GUI_STATE" ),
+  //           0, desk, false, this, SLOT( onSaveGUIState() ) );
+  
   //! Dump study
   createAction( DumpStudyId, tr( "TOT_DESK_FILE_DUMP_STUDY" ), QIconSet(),
                tr( "MEN_DESK_FILE_DUMP_STUDY" ), tr( "PRP_DESK_FILE_DUMP_STUDY" ),
@@ -136,7 +137,10 @@ void SalomeApp_Application::createActions()
 
   int fileMenu = createMenu( tr( "MEN_DESK_FILE" ), -1 );
 
-  createMenu( SaveGUIStateId, fileMenu, 10, -1 );
+  // "Save GUI State" command is renamed to "Save VISU State" and 
+  // creation of menu item is moved to VISU
+  //  createMenu( SaveGUIStateId, fileMenu, 10, -1 ); 
+
   createMenu( DumpStudyId, fileMenu, 10, -1 );
   createMenu( separator(), fileMenu, -1, 15, -1 );
   createMenu( LoadScriptId, fileMenu, 10, -1 );
index e8ba1d4b40ac4b172d0f1a2b1c17c1b789c911af..d44c08a4c66ec221eb41a03db1b4ad9fd62dac77 100644 (file)
@@ -77,6 +77,7 @@ public slots:
   virtual bool                        onLoadDoc( const QString& );
   virtual void                        onCopy();
   virtual void                        onPaste();
+  void                                onSaveGUIState();// called from VISU
 
 protected slots:
   void                                onStudySaved( SUIT_Study* );
@@ -99,14 +100,14 @@ private slots:
   void                                onProperties();
   void                                onDumpStudy();
   void                                onLoadScript(); 
-  void                                onSaveGUIState(); 
+
   void                                onDeleteGUIState(); 
+  void                                onRestoreGUIState();
+  void                                onRenameGUIState();
 
   void                                onCatalogGen();
   void                                onRegDisplay();
   void                                onOpenWith();
-  void                                onRestoreGUIState();
-  void                                onRenameGUIState();
 };
 
 #ifdef WIN32