X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPVViewer%2FPVViewer_ViewManager.h;h=7c3bf2484d291d4ed9887ca0aeae7ce787fb0f55;hb=2400f3659b65727d5a776dccd3d5dd506d755a88;hp=9061eb65a7cb7a503509aaa5615cfefdcb577d3b;hpb=1c1e0526d452336651ccecf48deb5d8227ecdd47;p=modules%2Fgui.git diff --git a/src/PVViewer/PVViewer_ViewManager.h b/src/PVViewer/PVViewer_ViewManager.h index 9061eb65a..7c3bf2484 100644 --- a/src/PVViewer/PVViewer_ViewManager.h +++ b/src/PVViewer/PVViewer_ViewManager.h @@ -1,4 +1,4 @@ -// Copyright (C) 2010-2014 CEA/DEN, EDF R&D +// Copyright (C) 2010-2015 CEA/DEN, EDF R&D // // 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 @@ -23,16 +25,12 @@ #include -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,27 +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); + static bool ConnectToExternalPVServer(QMainWindow* aDesktop); -public slots: - void onEmulateApply(); +protected slots: + void onWindowActivated(SUIT_ViewWindow*); private: - static pqPVApplicationCore* MyCoreApp; - static bool ConfigLoaded; - static PVViewer_Behaviors * ParaviewBehaviors; - SUIT_Desktop * desktop; };