Salome HOME
Add 'Catalyst' menu into ParaVis module.
[modules/gui.git] / src / PVViewer / PVViewer_ViewManager.h
index 65871c883db9b553e6913be8aacfbb75987ba6e9..2e7404b6eda0d5c3d029551f8e01d5c44d0abdbf 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2010-2015  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2016  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -16,6 +16,8 @@
 //
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+// Author: Adrien Bruneton (CEA)
+
 #ifndef PVViewer_VIEWMANAGER_H
 #define PVViewer_VIEWMANAGER_H
 
 
 #include <SUIT_ViewManager.h>
 
-class PVViewer_EngineWrapper;
 class SUIT_Desktop;
 class SUIT_Study;
 class SUIT_ViewWindow;
-class pqTabbedMultiViewWidget;
-class pqPVApplicationCore;
-class PVViewer_Behaviors;
-class pqPropertiesPanel;
-class pqPipelineBrowserWidget;
 class LogWindow;
+class PVServer_ServiceWrapper;
+class QMainWindow;
 
 class PVVIEWER_EXPORT PVViewer_ViewManager : public SUIT_ViewManager
 {
@@ -42,30 +40,20 @@ public:
   PVViewer_ViewManager( SUIT_Study*, SUIT_Desktop*, LogWindow *);
   ~PVViewer_ViewManager() {}
 
-  static pqPVApplicationCore * GetPVApplication();
-  static PVViewer_EngineWrapper * GetEngine();
+  //! Get the CORBA engine wrapper.
+  static PVServer_ServiceWrapper * GetService();
 
-  //! Initialize ParaView if not yet done (once per session)
-  static bool   ParaviewInitApp(SUIT_Desktop* aDesktop, LogWindow * w);
-  static void   ParaviewInitBehaviors(bool fullSetup=false, SUIT_Desktop* aDesktop=0);
-  static void   ParaviewLoadConfigurations(bool force=false);
-  static void   ParaviewCleanup();
+  //! Get PVViewer configuration path as stored by SALOME's resource manager:
+  static QString GetPVConfigPath();
 
   //! Connect to the external PVServer, using the PARAVIS engine to launch it if it is not
   //! already up.
-  static bool   ConnectToExternalPVServer(SUIT_Desktop* aDesktop);
-
-public slots:
-  void onEmulateApply();
+  static bool   ConnectToExternalPVServer(QMainWindow* aDesktop);
 
 protected slots:
   void onWindowActivated(SUIT_ViewWindow*);
 
 private:
-  static pqPVApplicationCore* MyCoreApp;
-  static bool ConfigLoaded;
-  static PVViewer_Behaviors * ParaviewBehaviors;
-
   SUIT_Desktop * desktop;
 };