]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
PVViewer: further code split between pure ParaView stuff and SALOME.
authorabn <adrien.bruneton@cea.fr>
Wed, 17 Jun 2015 12:08:41 +0000 (14:08 +0200)
committerabn <adrien.bruneton@cea.fr>
Wed, 17 Jun 2015 12:08:41 +0000 (14:08 +0200)
src/PVViewer/CMakeLists.txt
src/PVViewer/PVViewer_Core.cxx [new file with mode: 0644]
src/PVViewer/PVViewer_Core.h [new file with mode: 0644]
src/PVViewer/PVViewer_GUIElements.cxx
src/PVViewer/PVViewer_GUIElements.h
src/PVViewer/PVViewer_ViewManager.cxx
src/PVViewer/PVViewer_ViewManager.h
src/PVViewer/PVViewer_ViewModel.cxx
src/PVViewer/PVViewer_ViewModel.h
src/PVViewer/PVViewer_ViewWindow.cxx
src/PVViewer/PVViewer_ViewWindow.h

index 839457c271bbd6375e295c927203c9cfceb6877d..e7f57b58a464de7f50e9a6e5b9c24dba13b49553 100644 (file)
@@ -64,6 +64,7 @@ SET(_other_HEADERS
   PVViewer.h
   PVViewer_LogWindowAdapter.h
   PVViewer_EngineWrapper.h
+  PVViewer_Core.h
 )
 # header files / to install
 SET(PVViewer_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
@@ -92,6 +93,7 @@ SET(_other_SOURCES
   PVViewer_Behaviors.cxx
   PVViewer_GUIElements.cxx
   PVViewer_EngineWrapper.cxx
+  PVViewer_Core.cxx
   )
   
 # sources / to compile
diff --git a/src/PVViewer/PVViewer_Core.cxx b/src/PVViewer/PVViewer_Core.cxx
new file mode 100644 (file)
index 0000000..93750dd
--- /dev/null
@@ -0,0 +1,141 @@
+// 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
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+// Author : Adrien Bruneton (CEA)
+//
+
+#include "PVViewer_Core.h"
+#include "PVViewer_LogWindowAdapter.h"
+#include "PVViewer_GUIElements.h"
+#include "PVViewer_Behaviors.h"
+#include "PVViewer_EngineWrapper.h"
+#include "PVViewer_Core.h"
+
+#include <QApplication>
+#include <QStringList>
+#include <QDir>
+#include <QMainWindow>
+
+#include <string>
+
+#include <pqOptions.h>
+#include <pqSettings.h>
+#include <pqPVApplicationCore.h>
+#include <pqTabbedMultiViewWidget.h>
+#include <pqParaViewMenuBuilders.h>
+#include <pqActiveObjects.h>
+#include <pqPipelineBrowserWidget.h>
+#include <pqServerDisconnectReaction.h>
+
+
+//---------- Static init -----------------
+pqPVApplicationCore* PVViewer_Core::MyCoreApp = 0;
+bool PVViewer_Core::ConfigLoaded = false;
+PVViewer_Behaviors * PVViewer_Core::ParaviewBehaviors = NULL;
+
+pqPVApplicationCore * PVViewer_Core::GetPVApplication()
+{
+  return MyCoreApp;
+}
+
+/*!
+  \brief Static method, performs initialization of ParaView session.
+  \param fullSetup whether to instanciate all behaviors or just the minimal ones.
+  \return \c true if ParaView has been initialized successfully, otherwise false
+*/
+bool PVViewer_Core::ParaviewInitApp(QMainWindow * aDesktop, LogWindow * logWindow)
+{
+  if ( ! MyCoreApp) {
+      // Obtain command-line arguments
+      int argc = 0;
+      char** argv = 0;
+      QString aOptions = getenv("PARAVIEW_OPTIONS");
+      QStringList aOptList = aOptions.split(":", QString::SkipEmptyParts);
+      argv = new char*[aOptList.size() + 1];
+      QStringList args = QApplication::arguments();
+      argv[0] = (args.size() > 0)? strdup(args[0].toLatin1().constData()) : strdup("paravis");
+      argc++;
+
+      foreach (QString aStr, aOptList) {
+        argv[argc] = strdup( aStr.toLatin1().constData() );
+        argc++;
+      }
+      MyCoreApp = new pqPVApplicationCore (argc, argv);
+      if (MyCoreApp->getOptions()->GetHelpSelected() ||
+          MyCoreApp->getOptions()->GetUnknownArgument() ||
+          MyCoreApp->getOptions()->GetErrorMessage() ||
+          MyCoreApp->getOptions()->GetTellVersion()) {
+          return false;
+      }
+
+      // Direct VTK log messages to our SALOME window - TODO: review this
+      PVViewer_LogWindowAdapter * w = PVViewer_LogWindowAdapter::New();
+      w->setLogWindow(logWindow);
+      vtkOutputWindow::SetInstance(w);
+
+      new pqTabbedMultiViewWidget(); // registers a "MULTIVIEW_WIDGET" on creation
+
+      for (int i = 0; i < argc; i++)
+        free(argv[i]);
+      delete[] argv;
+  }
+  // Initialize GUI elements if needed:
+  PVViewer_GUIElements::GetInstance(aDesktop);
+  return true;
+}
+
+void PVViewer_Core::ParaviewInitBehaviors(bool fullSetup, QMainWindow* aDesktop)
+{
+  if (!ParaviewBehaviors)
+      ParaviewBehaviors = new PVViewer_Behaviors(aDesktop);
+
+  if(fullSetup)
+    ParaviewBehaviors->instanciateAllBehaviors(aDesktop);
+  else
+    ParaviewBehaviors->instanciateMinimalBehaviors(aDesktop);
+}
+
+void PVViewer_Core::ParaviewLoadConfigurations(const QString & configPath, bool force)
+{
+  if (!ConfigLoaded || force)
+    {
+      if (!configPath.isNull()) {
+          MyCoreApp->loadConfiguration(configPath + QDir::separator() + "ParaViewFilters.xml");
+          MyCoreApp->loadConfiguration(configPath + QDir::separator() + "ParaViewSources.xml");
+      }
+      ConfigLoaded = true;
+    }
+}
+
+void PVViewer_Core::ParaviewCleanup()
+{
+  // Disconnect from server
+  pqServer* server = pqActiveObjects::instance().activeServer();
+  if (server && server->isRemote())
+    {
+      pqServerDisconnectReaction::disconnectFromServer();
+    }
+
+  pqApplicationCore::instance()->settings()->sync();
+
+  pqPVApplicationCore * app = GetPVApplication();
+  // Schedule destruction of PVApplication singleton:
+  if (app)
+    app->deleteLater();
+}
+
diff --git a/src/PVViewer/PVViewer_Core.h b/src/PVViewer/PVViewer_Core.h
new file mode 100644 (file)
index 0000000..8ea1c24
--- /dev/null
@@ -0,0 +1,59 @@
+// 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
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+// Author : Adrien Bruneton (CEA)
+
+#ifndef SRC_PVVIEWER_PVVIEWER_CORE_H_
+#define SRC_PVVIEWER_PVVIEWER_CORE_H_
+
+#include "PVViewer.h"
+
+#include <QString>
+
+class PVViewer_EngineWrapper;
+class PVViewer_Behaviors;
+class LogWindow;
+class QMainWindow;
+class pqPVApplicationCore;
+
+/**
+ Pure static class gathering most of the interactions with ParaView's API and ParaView's
+ start sequence.
+ */
+class PVVIEWER_EXPORT PVViewer_Core
+{
+public:
+  static pqPVApplicationCore * GetPVApplication();
+
+
+  //! 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();
+
+private:
+  PVViewer_Core();
+  virtual ~PVViewer_Core();
+
+  static pqPVApplicationCore* MyCoreApp;
+  static bool ConfigLoaded;
+  static PVViewer_Behaviors * ParaviewBehaviors;
+};
+
+#endif /* SRC_PVVIEWER_PVVIEWER_CORE_H_ */
index a02dc5f2887adb4ca30c3ccb1e309b572568aca1..e2b77ddb84661e7d9b0cef57f6b155bb41fe596c 100644 (file)
@@ -184,12 +184,6 @@ void PVViewer_GUIElements::addToolbars(QMainWindow* desk)
   dataAction = dataToolbar->toggleViewAction();
 }
 
-void PVViewer_GUIElements::onEmulateApply()
-{
-  if (propertiesPanel)
-    propertiesPanel->apply();
-}
-
 QList<QToolBar*> PVViewer_GUIElements::getToolbars()
 {
   QList<QToolBar*> l;
index 73a659ff7665bfcf33876331421554447f040db7..a498ff333348b57052e99aa9f4566ff3cfa283cc 100644 (file)
@@ -62,9 +62,6 @@ public:
   void setToolBarEnabled(bool enabled);
   QList<QToolBar*> getToolbars();
 
-public slots:
-  void onEmulateApply();  // better use the slot from PVViewer_ViewManager if you want to trigger "Apply"
-
 private:
   PVViewer_GUIElements(QMainWindow* desk);
   virtual ~PVViewer_GUIElements() {}
index 74832ce2a66b84acb801948c13de5aa7095346cd..b630ce50173a81f9fc4db20dd88a927aecd6c8a0 100644 (file)
 //
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+// Author: Adrien Bruneton (CEA)
+
 #include "PVViewer_ViewManager.h"
-#include "PVViewer_ViewModel.h"
 #include "PVViewer_ViewWindow.h"
-#include "PVViewer_LogWindowAdapter.h"
+#include "PVViewer_ViewModel.h"
 #include "PVViewer_GUIElements.h"
-#include "PVViewer_Behaviors.h"
+#include "PVViewer_Core.h"
 #include "PVViewer_EngineWrapper.h"
 
 #include <utilities.h>
-#include <SUIT_MessageBox.h>
+
+#include <LogWindow.h>
 #include <SUIT_Desktop.h>
-#include <SUIT_Session.h>
 #include <SUIT_Study.h>
+#include <SUIT_Session.h>
+#include <SUIT_MessageBox.h>
 #include <SUIT_ResourceMgr.h>
-#include <LogWindow.h>
-
-#include <QApplication>
-#include <QStringList>
-#include <QDir>
-
-#include <string>
 
-#include <pqOptions.h>
 #include <pqServer.h>
-#include <pqSettings.h>
-#include <pqServerDisconnectReaction.h>
-#include <pqPVApplicationCore.h>
-#include <pqTabbedMultiViewWidget.h>
-#include <pqActiveObjects.h>
 #include <pqServerConnectReaction.h>
-
-#include <pqParaViewMenuBuilders.h>
-#include <pqPipelineBrowserWidget.h>
-
-//---------- Static init -----------------
-pqPVApplicationCore* PVViewer_ViewManager::MyCoreApp = 0;
-bool PVViewer_ViewManager::ConfigLoaded = false;
-PVViewer_Behaviors * PVViewer_ViewManager::ParaviewBehaviors = NULL;
+#include <pqActiveObjects.h>
 
 /*!
   Constructor
@@ -64,113 +47,27 @@ PVViewer_ViewManager::PVViewer_ViewManager( SUIT_Study* study, SUIT_Desktop* des
 {
   MESSAGE("PVViewer - view manager created ...")
   setTitle( tr( "PARAVIEW_VIEW_TITLE" ) );
+
   // Initialize minimal paraview stuff (if not already done)
-  ParaviewInitApp(desk, logWindow);
+  PVViewer_Core::ParaviewInitApp(desk, logWindow);
 
   connect( desk, SIGNAL( windowActivated( SUIT_ViewWindow* ) ),
            this, SLOT( onWindowActivated( SUIT_ViewWindow* ) ) );
 }
 
-pqPVApplicationCore * PVViewer_ViewManager::GetPVApplication()
-{
-  return MyCoreApp;
-}
 
-/*!
-  \brief Static method, performs initialization of ParaView session.
-  \param fullSetup whether to instanciate all behaviors or just the minimal ones.
-  \return \c true if ParaView has been initialized successfully, otherwise false
-*/
-bool PVViewer_ViewManager::ParaviewInitApp(SUIT_Desktop * aDesktop, LogWindow * logWindow)
-{
-  if ( ! MyCoreApp) {
-      // Obtain command-line arguments
-      int argc = 0;
-      char** argv = 0;
-      QString aOptions = getenv("PARAVIEW_OPTIONS");
-      QStringList aOptList = aOptions.split(":", QString::SkipEmptyParts);
-      argv = new char*[aOptList.size() + 1];
-      QStringList args = QApplication::arguments();
-      argv[0] = (args.size() > 0)? strdup(args[0].toLatin1().constData()) : strdup("paravis");
-      argc++;
-
-      foreach (QString aStr, aOptList) {
-        argv[argc] = strdup( aStr.toLatin1().constData() );
-        argc++;
-      }
-      MyCoreApp = new pqPVApplicationCore (argc, argv);
-      if (MyCoreApp->getOptions()->GetHelpSelected() ||
-          MyCoreApp->getOptions()->GetUnknownArgument() ||
-          MyCoreApp->getOptions()->GetErrorMessage() ||
-          MyCoreApp->getOptions()->GetTellVersion()) {
-          return false;
-      }
-
-      // Direct VTK log messages to our SALOME window - TODO: review this
-      PVViewer_LogWindowAdapter * w = PVViewer_LogWindowAdapter::New();
-      w->setLogWindow(logWindow);
-      vtkOutputWindow::SetInstance(w);
-
-      new pqTabbedMultiViewWidget(); // registers a "MULTIVIEW_WIDGET" on creation
-
-      for (int i = 0; i < argc; i++)
-        free(argv[i]);
-      delete[] argv;
-  }
-  // Initialize GUI elements if needed:
-  PVViewer_GUIElements::GetInstance(aDesktop);
-  return true;
-}
-
-void PVViewer_ViewManager::ParaviewInitBehaviors(bool fullSetup, SUIT_Desktop* aDesktop)
-{
-  if (!ParaviewBehaviors)
-      ParaviewBehaviors = new PVViewer_Behaviors(aDesktop);
-
-  if(fullSetup)
-    ParaviewBehaviors->instanciateAllBehaviors(aDesktop);
-  else
-    ParaviewBehaviors->instanciateMinimalBehaviors(aDesktop);
-}
-
-void PVViewer_ViewManager::ParaviewLoadConfigurations(bool force)
-{
-  if (!ConfigLoaded || force)
-    {
-      SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
-      QString aPath = resMgr->stringValue("resources", "PVViewer", QString());
-      if (!aPath.isNull()) {
-          MyCoreApp->loadConfiguration(aPath + QDir::separator() + "ParaViewFilters.xml");
-          MyCoreApp->loadConfiguration(aPath + QDir::separator() + "ParaViewSources.xml");
-      }
-      ConfigLoaded = true;
-    }
-}
-
-void PVViewer_ViewManager::ParaviewCleanup()
+PVViewer_EngineWrapper * PVViewer_ViewManager::GetEngine()
 {
-  // Disconnect from server
-  pqServer* server = pqActiveObjects::instance().activeServer();
-  if (server && server->isRemote())
-    {
-      MESSAGE("~PVViewer_Module(): Disconnecting from remote server ...");
-      pqServerDisconnectReaction::disconnectFromServer();
-    }
-
-  pqApplicationCore::instance()->settings()->sync();
-
-  pqPVApplicationCore * app = GetPVApplication();
-  // Schedule destruction of PVApplication singleton:
-  if (app)
-    app->deleteLater();
+  return PVViewer_EngineWrapper::GetInstance();
 }
 
-PVViewer_EngineWrapper * PVViewer_ViewManager::GetEngine()
+QString PVViewer_ViewManager::GetPVConfigPath()
 {
-  return PVViewer_EngineWrapper::GetInstance();
+  SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+  return resMgr->stringValue("resources", "PVViewer", QString());
 }
 
-bool PVViewer_ViewManager::ConnectToExternalPVServer(SUIT_Desktop* aDesktop)
+bool PVViewer_ViewManager::ConnectToExternalPVServer(QMainWindow* aDesktop)
 {
   SUIT_ResourceMgr* aResourceMgr = SUIT_Session::session()->resourceMgr();
   bool noConnect = aResourceMgr->booleanValue( "PARAVIS", "no_ext_pv_server", false );
@@ -231,11 +128,6 @@ bool PVViewer_ViewManager::ConnectToExternalPVServer(SUIT_Desktop* aDesktop)
   return true;
 }
 
-void PVViewer_ViewManager::onEmulateApply()
-{
-  PVViewer_GUIElements * guiElements = PVViewer_GUIElements::GetInstance(desktop);
-  guiElements->onEmulateApply();
-}
 
 /*!Enable toolbars if view \a view is ParaView viewer and disable otherwise.
 */
index 65871c883db9b553e6913be8aacfbb75987ba6e9..416b6b9534b35af8dbec336ac34bbec43e1a98b2 100644 (file)
@@ -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 PVViewer_EngineWrapper;
+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();
+  //! Get the CORBA engine wrapper.
   static PVViewer_EngineWrapper * GetEngine();
 
-  //! 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;
 };
 
index 764284255e660a770a1fab05c2f05ee88fb7e68f..73535c5bfaab5fab398b30c245bc1b31fd375486 100644 (file)
@@ -16,6 +16,7 @@
 //
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+// Author: Adrien Bruneton (CEA)
 
 #include "PVViewer_ViewModel.h"
 #include "PVViewer_ViewWindow.h"
index 9b038f99d2029ddd4bd686bb25fd69c814b8c37b..c4b1d4d939bef21e8f2812404719033f0ee10421 100644 (file)
@@ -16,6 +16,8 @@
 //
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+// Author: Adrien Bruneton (CEA)
+
 #if !defined(_PVViewer_VIEWMODEL_H)
 #define _PVViewer_VIEWMODEL_H
 
index 1c0c2f32267b60cd6522dbda980bf7ab422dc77a..4bb2b3c3db298a81e4fc802df0464dce1536d827 100644 (file)
 //
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
-// File   : PVViewer_ViewWindow.cxx
-// Author : Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com)
-//
+// Author : Adrien Bruneton (CEA)
 
 #include "PVViewer_ViewWindow.h"
-#include "PVViewer_ViewManager.h"
+#include "PVViewer_Core.h"
 #include "PVViewer_ViewModel.h"
 #include "PVViewer_GUIElements.h"
+#include "PVViewer_ViewManager.h"
 
 #include <SUIT_ViewManager.h>
 #include <SUIT_ResourceMgr.h>
@@ -58,9 +57,10 @@ PVViewer_ViewWindow::PVViewer_ViewWindow( SUIT_Desktop* theDesktop, PVViewer_Vie
     setCentralWidget( myPVMgr );
 
     // Finish ParaView set up: behaviors, connection and configurations.
-    PVViewer_ViewManager::ParaviewInitBehaviors(true, theDesktop);
+    const QString configPath(PVViewer_ViewManager::GetPVConfigPath());
+    PVViewer_Core::ParaviewInitBehaviors(true, theDesktop);
     PVViewer_ViewManager::ConnectToExternalPVServer(theDesktop);
-    PVViewer_ViewManager::ParaviewLoadConfigurations();
+    PVViewer_Core::ParaviewLoadConfigurations(configPath);
 
     // Hide toolbars
     PVViewer_GUIElements * pvge = PVViewer_GUIElements::GetInstance(myDesktop);
@@ -115,7 +115,7 @@ pqTabbedMultiViewWidget* PVViewer_ViewWindow::getMultiViewManager() const
   return myPVMgr;
 }
 
-void PVViewer_ViewWindow::onEmulateApply()
-{
-  emit this->applyRequest();
-}
+//void PVViewer_ViewWindow::onEmulateApply()
+//{
+//  emit this->applyRequest();
+//}
index 0985dcd7337fdf2cf60cb6a2fa17c72f16833847..6fd17aab54f1afc18c363a68b96fff3b0e937eb6 100644 (file)
@@ -16,9 +16,8 @@
 //
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
-// File   : Plot2d_ViewWindow.h
-// Author : Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com)
-//
+// Author : Adrien Bruneton (CEA)
+
 
 #ifndef PVViewer_VIEWWINDOW_H
 #define PVViewer_VIEWWINDOW_H
@@ -45,12 +44,6 @@ public:
   
   pqTabbedMultiViewWidget*    getMultiViewManager() const;
 
-signals:
-  void applyRequest();
-
-public slots:
-  void onEmulateApply();
-
 private:
   SUIT_Desktop*     myDesktop;
   PVViewer_Viewer*     myModel;