]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Minor changes
authorapo <apo@opencascade.com>
Fri, 25 May 2007 14:20:42 +0000 (14:20 +0000)
committerapo <apo@opencascade.com>
Fri, 25 May 2007 14:20:42 +0000 (14:20 +0000)
src/VISUGUI/VisuGUI.cxx
src/VISUGUI/VisuGUI_Prs3dTools.h
src/VISUGUI/VisuGUI_Tools.cxx
src/VISUGUI/VisuGUI_Tools.h

index 95c9fa52e135a2a82d0e7731e4d833e47670b994..96610a36773aac86e1dcea0a1f7e7c1656317b8f 100644 (file)
@@ -543,8 +543,6 @@ void
 VisuGUI
 ::OnCreateMesh()
 {
-  cout << "MULTIPR: file=" << __FILE__<< " line=" << __LINE__ << " func=OnCreateMesh()" << endl;
-
   _PTR(Study) aStudy = GetCStudy(GetAppStudy(this));
   if (CheckLock(aStudy,GetDesktop(this)))
     return;
index abf4cdb9e4401edfa6ea4431927f05535c16b5ae..a9285458b808dce5e432e2d87a58011ca69511a8 100644 (file)
@@ -288,7 +288,6 @@ namespace VISU
     if (!GetViewWindow<TViewer>(theModule))
       return;
 
-    //TPrs3d_i* aPrs3d =
     CreateAndEditPrs3d<TPrs3d_i,TViewer,TDlg,IsDlgModal>
       (theModule,theTimeStampSObj,thePublishInStudyMode);
 
index 97bbd189eee6e412b8ca138c99bf537825b3e2e9..883ac01ed8ff314e9f48b7ccb57ecc244358909d 100644 (file)
@@ -1147,9 +1147,10 @@ namespace VISU
   //************************************************************
   // Others
 
-  void CreateMesh (const SalomeApp_Module* theModule,
-                   const Handle(SALOME_InteractiveObject)& theIO,
-                   SVTK_ViewWindow* theViewWindow)
+  void
+  CreateMesh(VisuGUI* theModule,
+            const Handle(SALOME_InteractiveObject)& theIO,
+            SVTK_ViewWindow* theViewWindow)
   {  
        _PTR(Study) aStudy = GetCStudy(GetAppStudy(theModule));
     //if (CheckLock(aStudy))
@@ -1234,8 +1235,8 @@ namespace VISU
       }
     }
 
-    SalomeApp_Module* aModule = (SalomeApp_Module*)theModule;
-    UpdateObjBrowser(aModule, false, aResultSObj);
+    UpdateObjBrowser(theModule, false, aResultSObj);
+    RestoreSelection(theModule);
 
     theModule->application()->putInfo(QObject::tr("INF_DONE"));
     // Make "Save" button active
index b1e55a5ff58ade753655c2525c28c99c766b14ca..8f62c287fab9fc924e7f1255dd51d23d58330797 100644 (file)
@@ -215,10 +215,10 @@ namespace VISU
   /*! Create mesh presentation and display it in \a theViewWindow.
    *  If \a theViewWindow is NULL, no displaying will be done.
    */
-  void CreateMesh (const SalomeApp_Module* theModule,
-                  const Handle(SALOME_InteractiveObject)& theIO,
-                  SVTK_ViewWindow* theViewWindow = NULL);
-
+  void CreateMesh(VisuGUI* theModule,
+                 const Handle(SALOME_InteractiveObject)& theIO,
+                 SVTK_ViewWindow* theViewWindow);
+  
   // Others
   std::vector<VISU::Prs3d_i*> GetPrs3dList (const SalomeApp_Module* theModule,
                                            const Handle(SALOME_InteractiveObject)& theIO);