From 0311492629abf9c6234f46774f0f7864da3e519b Mon Sep 17 00:00:00 2001 From: apo Date: Fri, 25 May 2007 14:20:42 +0000 Subject: [PATCH] Minor changes --- src/VISUGUI/VisuGUI.cxx | 2 -- src/VISUGUI/VisuGUI_Prs3dTools.h | 1 - src/VISUGUI/VisuGUI_Tools.cxx | 11 ++++++----- src/VISUGUI/VisuGUI_Tools.h | 8 ++++---- 4 files changed, 10 insertions(+), 12 deletions(-) diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index 95c9fa52..96610a36 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -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; diff --git a/src/VISUGUI/VisuGUI_Prs3dTools.h b/src/VISUGUI/VisuGUI_Prs3dTools.h index abf4cdb9..a9285458 100644 --- a/src/VISUGUI/VisuGUI_Prs3dTools.h +++ b/src/VISUGUI/VisuGUI_Prs3dTools.h @@ -288,7 +288,6 @@ namespace VISU if (!GetViewWindow(theModule)) return; - //TPrs3d_i* aPrs3d = CreateAndEditPrs3d (theModule,theTimeStampSObj,thePublishInStudyMode); diff --git a/src/VISUGUI/VisuGUI_Tools.cxx b/src/VISUGUI/VisuGUI_Tools.cxx index 97bbd189..883ac01e 100644 --- a/src/VISUGUI/VisuGUI_Tools.cxx +++ b/src/VISUGUI/VisuGUI_Tools.cxx @@ -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 diff --git a/src/VISUGUI/VisuGUI_Tools.h b/src/VISUGUI/VisuGUI_Tools.h index b1e55a5f..8f62c287 100644 --- a/src/VISUGUI/VisuGUI_Tools.h +++ b/src/VISUGUI/VisuGUI_Tools.h @@ -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 GetPrs3dList (const SalomeApp_Module* theModule, const Handle(SALOME_InteractiveObject)& theIO); -- 2.39.2