From 6db0112ecab5d25654c146e145eb7e4c16f7d7f0 Mon Sep 17 00:00:00 2001 From: abn Date: Fri, 12 Sep 2014 15:50:22 +0200 Subject: [PATCH] Reinstanciating trace mechanism + headers cleanup. --- src/PVGUI/PVGUI_Module.cxx | 100 ++++++++++++------------------------- 1 file changed, 32 insertions(+), 68 deletions(-) diff --git a/src/PVGUI/PVGUI_Module.cxx b/src/PVGUI/PVGUI_Module.cxx index d417e1a5..259e0713 100644 --- a/src/PVGUI/PVGUI_Module.cxx +++ b/src/PVGUI/PVGUI_Module.cxx @@ -42,6 +42,7 @@ #include "PVGUI_OutputWindowAdapter.h" #include "PVGUI_Behaviors.h" +// SALOME Includes #include #include #include @@ -50,27 +51,26 @@ #include #include -// SALOME Includes -#include "SALOME_LifeCycleCORBA.hxx" -#include "SALOMEDS_SObject.hxx" - -#include "LightApp_SelectionMgr.h" -#include "LightApp_NameDlg.h" +#include +#include +#include +#include #include #include #include #include -#include -#include -#include -#include - -#include +#include +#include #include #include +#include + +// External includes +#include + #include #include #include @@ -90,82 +90,45 @@ #include #include +// Paraview includes +#include // for symbol PARAVIEW_VERSION +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + #include #include #include #include #include -#include +#include #include #include -#include #include -#include #include -#include -#include -#include -#include -#include #include -#include #include -#include #include #include -#include #include -#include #include #include -#include -//#include #include #include #include -#include -#include -#include - -#include - -#include - #include #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include - -#include -#include - -// Trace related -#include -#include -#include -#include - //---------------------------------------------------------------------------- pqPVApplicationCore* PVGUI_Module::MyCoreApp = 0; @@ -254,9 +217,9 @@ PARAVIS_ORB::PARAVIS_Gen_var PVGUI_Module::myEngine; aStudyBuilder->FindOrCreateAttribute(aSComponent, "AttributeName"); _PTR(AttributeName) aName (anAttr); - //CORBA::ORB_var anORB = PARAVIS::PARAVIS_Gen_i::GetORB(); - int dnu; - CORBA::ORB_var anORB = CORBA::ORB_init(dnu, 0); // suppose ORB was already initialized + ORB_INIT& init = *SINGLETON_::Instance(); + CORBA::ORB_var anORB = init( qApp->argc(), qApp->argv() ); + SALOME_NamingService *NamingService = new SALOME_NamingService( anORB ); CORBA::Object_var objVarN = NamingService->Resolve("/Kernel/ModulCatalog"); SALOME_ModuleCatalog::ModuleCatalog_var Catalogue = @@ -642,6 +605,7 @@ void PVGUI_Module::onInitTimer() #ifndef PARAVIS_WITH_FULL_CORBA connectToExternalPVServer(); #endif + startTrace(); } /*! -- 2.39.2