-// Copyright (C) 2010-2014 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023 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
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-#ifndef PVViewer_VIEWMANAGER_H
-#define PVViewer_VIEWMANAGER_H
+// Author: Adrien Bruneton (CEA)
-#include <SUIT_ViewManager.h>
+#ifndef PVVIEWER_VIEWMANAGER_H
+#define PVVIEWER_VIEWMANAGER_H
+
+#include "PVViewer.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_ViewManager : public SUIT_ViewManager
+class PVVIEWER_EXPORT PVViewer_ViewManager : public SUIT_ViewManager
{
Q_OBJECT
public:
- PVViewer_ViewManager( SUIT_Study*, SUIT_Desktop*, LogWindow *);
+ PVViewer_ViewManager(SUIT_Study*, SUIT_Desktop*);
~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();
- 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();
-
-private:
- static pqPVApplicationCore* MyCoreApp;
- static bool ConfigLoaded;
- static PVViewer_Behaviors * ParaviewBehaviors;
+ static bool ConnectToExternalPVServer(QMainWindow*);
- SUIT_Desktop * desktop;
+protected slots:
+ void onWindowActivated(SUIT_ViewWindow*);
};
-#endif
+#endif // PVVIEWER_VIEWMANAGER_H