Salome HOME
updated copyright message
[modules/gui.git] / src / PVViewer / PVViewer_Core.h
index 28e0ba3e3cdbe065a0fc2f93ebe83e6dd91ffb27..b710740e57fb5f7e5666cd287f61549b2eb52368 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2016  CEA/DEN, EDF R&D, OPEN CASCADE
+// 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
@@ -18,8 +18,8 @@
 //
 // Author : Adrien Bruneton (CEA)
 
-#ifndef SRC_PVVIEWER_PVVIEWER_CORE_H_
-#define SRC_PVVIEWER_PVVIEWER_CORE_H_
+#ifndef PVVIEWER_CORE_H
+#define PVVIEWER_CORE_H
 
 #include "PVViewer.h"
 
@@ -27,7 +27,6 @@
 
 class PVServer_ServiceWrapper;
 class PVViewer_Behaviors;
-class LogWindow;
 class QMainWindow;
 class pqPVApplicationCore;
 
@@ -38,22 +37,24 @@ class pqPVApplicationCore;
 class PVVIEWER_EXPORT PVViewer_Core
 {
 public:
-  static pqPVApplicationCore * GetPVApplication();
-
+  static pqPVApplicationCore* GetPVApplication();
+  static bool ParaViewInitAppCore();
+  static pqPVApplicationCore *GetPVAppCore() { return MyCoreApp; }
 
   //! Initialize ParaView if not yet done (once per session)
-  static bool   ParaviewInitApp(QMainWindow* aDesktop, LogWindow * w);
-  static void   ParaviewInitBehaviors(bool fullSetup=false, QMainWindow* aDesktop=0);
-  static void   ParaviewLoadConfigurations(const QString & configPath, bool force=false);
-  static void   ParaviewCleanup();
+  static bool ParaviewInitApp();
+  static void ParaviewInitBehaviors(bool = false, QMainWindow* = 0);
+  static void ParaviewLoadConfigurations(const QString&, bool = false);
+  static void ParaviewCleanup();
 
 private:
   PVViewer_Core();
   virtual ~PVViewer_Core(){};
 
   static pqPVApplicationCore* MyCoreApp;
+  static bool MyPqTabWidSingletonLoaded;
   static bool ConfigLoaded;
-  static PVViewer_Behaviors * ParaviewBehaviors;
+  static PVViewer_Behaviors* ParaviewBehaviors;
 };
 
-#endif /* SRC_PVVIEWER_PVVIEWER_CORE_H_ */
+#endif // PVVIEWER_CORE_H