Salome HOME
Revert "Merge branch 'agr/edf12447-catalyst'"
authorCédric Aguerre <cedric.aguerre@edf.fr>
Wed, 16 Mar 2016 12:37:17 +0000 (13:37 +0100)
committerCédric Aguerre <cedric.aguerre@edf.fr>
Wed, 16 Mar 2016 12:37:17 +0000 (13:37 +0100)
This reverts commit de6b5c7a4f6b082ccef52b47259b4f476c101a3f, reversing
changes made to 9ae5de52d1192b56a9ab29640c3643271169bf0e.

CMakeLists.txt
src/PVGUI/PVGUI_Module.cxx
src/PVGUI/PVGUI_Module.h
src/PVGUI/PVGUI_Module_actions.cxx
src/PVGUI/resources/PARAVIS_msg_en.ts
src/PVGUI/resources/PARAVIS_msg_fr.ts
test/standalone/CMakeLists.txt
test/standalone/gui/CMakeLists.txt
test/standalone/gui/PVViewer_GUIElements.cxx
test/standalone/gui/PVViewer_GUIElements.h

index cb4abe6876d937b5199664eaa723a8f97fc25037..cba9538c403783c9ec467fda682650adde19641e 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2010-2016  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
@@ -131,23 +131,12 @@ ENDIF()
 
 FIND_PACKAGE(SalomeParaView REQUIRED)
 
-FIND_PACKAGE(ParaView COMPONENTS vtkPVCatalyst vtkPVPythonCatalyst)
-LIST(FIND VTK_MODULES_ENABLED vtkPVCatalyst vtkPVCatalyst_index)
-LIST(FIND VTK_MODULES_ENABLED vtkPVPythonCatalyst vtkPVPythonCatalyst_index)
-IF (${vtkPVCatalyst_index} GREATER -1 AND
-    ${vtkPVPythonCatalyst_index} GREATER -1)
-  SET(PVCATALYST_ENABLED yes)
-ENDIF()
-IF (PVCATALYST_ENABLED)
-  ADD_DEFINITIONS("-DPVCATALYST_ENABLED")
-ENDIF()
-
 ##
 ## From MEDCoupling / MEDFile / or MEDModule (if CORBA plugin required):
 ##
 
 IF(SALOME_PARAVIS_BUILD_PLUGINS)
-   # If CORBA plugins required, take in MED module
+   # If CORBA plugins required, take in MED module 
    IF(SALOME_PARAVIS_BUILD_CORBA_PLUGINS)
       SET(MED_ROOT_DIR $ENV{MED_ROOT_DIR} CACHE PATH "Path to the SALOME MED module")
       IF(EXISTS ${MED_ROOT_DIR})
@@ -158,11 +147,11 @@ IF(SALOME_PARAVIS_BUILD_PLUGINS)
     ELSE(SALOME_PARAVIS_BUILD_CORBA_PLUGINS)
        SET(MEDCOUPLING_ROOT_DIR $ENV{MEDCOUPLING_ROOT_DIR} CACHE PATH "Path to the MEDCoupling tool")
        IF(EXISTS ${MEDCOUPLING_ROOT_DIR})
-          LIST(APPEND CMAKE_MODULE_PATH "${MEDCOUPLING_ROOT_DIR}/cmake_files")
+          LIST(APPEND CMAKE_MODULE_PATH "${MEDCOUPLING_ROOT_DIR}/cmake_files")   
        ENDIF()
        FIND_PACKAGE(SalomeMEDCoupling)            # will load MEDFile
        SALOME_LOG_OPTIONAL_PACKAGE(MEDCoupling SALOME_PARAVIS_BUILD_PLUGINS)
-    ENDIF()
+    ENDIF()        
 ENDIF(SALOME_PARAVIS_BUILD_PLUGINS)
 
 ##
index 8e3d3f638de701c2ea399377f6d7e7f33d194504..6fa52dbe326922aa6be2150da2569db368740308 100644 (file)
@@ -1,6 +1,6 @@
 // PARAVIS : ParaView wrapper SALOME module
 //
-// Copyright (C) 2010-2016  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
@@ -141,7 +141,7 @@ PVGUI_Module* ParavisModule = 0;
 
 /*!
   \class PVGUI_Module
-  \brief Implementation
+  \brief Implementation 
          SALOME module wrapping ParaView GUI.
 */
 
@@ -166,9 +166,6 @@ PVGUI_Module::PVGUI_Module()
   : LightApp_Module( PARAVIS_MODULE_NAME ),
     mySourcesMenuId( -1 ),
     myFiltersMenuId( -1 ),
-#ifdef PVCATALYST_ENABLED
-    myCatalystMenuId(-1),
-#endif
     myMacrosMenuId(-1),
     myRecentMenuId(-1),
     myOldMsgHandler(0),
@@ -336,7 +333,7 @@ void PVGUI_Module::initialize( CAM_Application* app )
   }
 
   updateMacros();
-
   SUIT_ResourceMgr* aResourceMgr = SUIT_Session::session()->resourceMgr();
   bool isStop = aResourceMgr->booleanValue( PARAVIS_MODULE_NAME, "stop_trace", false );
   if(!isStop)
@@ -350,7 +347,7 @@ void PVGUI_Module::initialize( CAM_Application* app )
     }
 
   this->VTKConnect = vtkEventQtSlotConnect::New();
-
+  
   vtkProcessModule* pm = vtkProcessModule::GetProcessModule();
   if(pm) {
     vtkPVSession* pvs = dynamic_cast<vtkPVSession*>(pm->GetSession());
@@ -392,7 +389,7 @@ void PVGUI_Module::onEndProgress()
 void PVGUI_Module::onDataRepresentationUpdated() {
   LightApp_Study* activeStudy = dynamic_cast<LightApp_Study*>(application()->activeStudy());
   if(!activeStudy) return;
-
+  
   activeStudy->Modified();
 }
 
@@ -403,7 +400,7 @@ void PVGUI_Module::onInitTimer()
 {
   startTrace();
 }
-
+  
 /*!
   \brief Get list of embedded macros files
 */
@@ -434,7 +431,7 @@ void PVGUI_Module::updateMacros()
   if(!aPythonManager)  {
     return;
   }
-
+  
   foreach (QString aStr, getEmbeddedMacrosList()) {
     aPythonManager->addMacro(aStr);
   }
@@ -573,7 +570,7 @@ bool PVGUI_Module::activateModule( SUIT_Study* study )
   myOldMsgHandler = qInstallMsgHandler(ParavisMessageOutput);
 #else
   myOldMsgHandler = qInstallMessageHandler(ParavisMessageOutput);
-#endif
+#endif  
   SUIT_ExceptionHandler::addCleanUpRoutine( paravisCleanUp );
 
   storeCommonWindowsState();
@@ -584,9 +581,6 @@ bool PVGUI_Module::activateModule( SUIT_Study* study )
   showView( true );
   if ( mySourcesMenuId != -1 ) menuMgr()->show(mySourcesMenuId);
   if ( myFiltersMenuId != -1 ) menuMgr()->show(myFiltersMenuId);
-#ifdef PVCATALYST_ENABLED
-  if ( myCatalystMenuId != -1 ) menuMgr()->show(myCatalystMenuId);
-#endif
   if ( myMacrosMenuId != -1 ) menuMgr()->show(myMacrosMenuId);
 
   // Update the various menus with the content pre-loaded in myGuiElements
@@ -594,10 +588,6 @@ bool PVGUI_Module::activateModule( SUIT_Study* study )
 //  myGuiElements->updateSourcesMenu(srcMenu);
 //  QMenu* filtMenu = menuMgr()->findMenu( myFiltersMenuId );
 //  myGuiElements->updateFiltersMenu(filtMenu);
-//#ifdef PVCATALYST_ENABLED
-//  QMenu* catalystMenu = menuMgr()->findMenu( myCatalystMenuId );
-//  myGuiElements->updateCatalystMenu(catalystMenu);
-//#endif
 //  QMenu* macMenu = menuMgr()->findMenu( myMacrosMenuId );
 //  myGuiElements->updateMacrosMenu(macMenu);
 
@@ -624,7 +614,7 @@ bool PVGUI_Module::activateModule( SUIT_Study* study )
   }
 
   if ( myRecentMenuId != -1 ) menuMgr()->show(myRecentMenuId);
-
+  
   return isDone;
 }
 
@@ -669,9 +659,6 @@ bool PVGUI_Module::deactivateModule( SUIT_Study* study )
   menuMgr()->hide(myRecentMenuId);
   menuMgr()->hide(mySourcesMenuId);
   menuMgr()->hide(myFiltersMenuId);
-#ifdef PVCATALYST_ENABLED
-  menuMgr()->hide(myCatalystMenuId);
-#endif
   menuMgr()->hide(myMacrosMenuId);
   setMenuShown( false );
   setToolShown( false );
@@ -687,7 +674,7 @@ bool PVGUI_Module::deactivateModule( SUIT_Study* study )
     qInstallMessageHandler(myOldMsgHandler);
 #endif
   restoreCommonWindowsState();
-
+  
   return LightApp_Module::deactivateModule( study );
 }
 
@@ -717,7 +704,7 @@ void PVGUI_Module::studyClosed(SUIT_Study* study)
 {
   showView(false); // VSR: this seems to be not needed (all views are automatically closed)
   clearParaviewState();
-  //Re-start trace
+  //Re-start trace 
   onRestartTrace();
 
   LightApp_Module::studyClosed(study);
@@ -735,7 +722,7 @@ void PVGUI_Module::openFile( const char* theName )
 
 /*!
   \brief Starts Python trace.
-
   Start trace invoking the newly introduced C++ API (PV 4.2)
   (inspired from pqTraceReaction::start())
 */
@@ -779,7 +766,7 @@ void PVGUI_Module::executeScript( const char* script )
   if ( manager )  {
     pqPythonDialog* pyDiag = manager->pythonShellDialog();
     if ( pyDiag ) {
-      pyDiag->runString(script);
+      pyDiag->runString(script);  
     }
   }
 #endif
@@ -857,7 +844,7 @@ QString PVGUI_Module::getTraceString()
                 + end_line + end_line + camera_qs + end_line;
           }
       }
-  }
+  } 
 
   return traceString;
 }
@@ -933,7 +920,7 @@ void PVGUI_Module::createPreferences()
   // Paravis settings tab
   int aParaVisSettingsTab = addPreference( tr( "TIT_PVISSETTINGS" ) );
 
-  addPreference( tr( "PREF_NO_EXT_PVSERVER" ), aParaVisSettingsTab,
+  addPreference( tr( "PREF_NO_EXT_PVSERVER" ), aParaVisSettingsTab, 
                  LightApp_Preferences::Bool, PARAVIS_MODULE_NAME, "no_ext_pv_server" );
 
   int aSaveType = addPreference( tr( "PREF_SAVE_TYPE_LBL" ), aParaVisSettingsTab,
@@ -950,7 +937,7 @@ void PVGUI_Module::createPreferences()
   // ... "Language" group <<start>>
   int traceGroup = addPreference( tr( "PREF_GROUP_TRACE" ), aParaVisSettingsTab );
 
-  int stopTrace = addPreference( tr( "PREF_STOP_TRACE" ), traceGroup,
+  int stopTrace = addPreference( tr( "PREF_STOP_TRACE" ), traceGroup, 
                                  LightApp_Preferences::Bool, PARAVIS_MODULE_NAME, "stop_trace" );
   setPreferenceProperty( stopTrace, "restart",  true );
 
@@ -1003,7 +990,7 @@ void PVGUI_Module::onStopTrace()
 void PVGUI_Module::onViewManagerAdded( SUIT_ViewManager* vm )
 {
   if ( PVViewer_ViewManager* pvvm = dynamic_cast<PVViewer_ViewManager*>( vm ) ) {
-    connect( pvvm, SIGNAL( viewCreated( SUIT_ViewWindow* ) ),
+    connect( pvvm, SIGNAL( viewCreated( SUIT_ViewWindow* ) ), 
              this, SLOT( onPVViewCreated( SUIT_ViewWindow* ) ) );
     connect( pvvm, SIGNAL( deleteView( SUIT_ViewWindow* ) ),
              this,  SLOT( onPVViewDelete( SUIT_ViewWindow* ) ) );
@@ -1056,7 +1043,7 @@ extern "C" {
   PVGUI_EXPORT CAM_Module* createModule() {
     return new PVGUI_Module();
   }
-
+  
   PVGUI_EXPORT char* getModuleVersion() {
     return (char*)PARAVIS_VERSION_STR;
   }
index 8f0e03c47ac52cc7617ae401c4fe9d42ac3f42ec..64fe64429b9282018204196367bd895c60451d80 100644 (file)
@@ -1,6 +1,6 @@
 // PARAVIS : ParaView wrapper SALOME module
 //
-// Copyright (C) 2010-2016  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
@@ -41,7 +41,7 @@ class SUIT_ViewWindow;
 class PVGUI_Module: public LightApp_Module
 {
   Q_OBJECT
-
+   
   //! Menu actions
   enum {
     //-----------
@@ -161,7 +161,7 @@ private:
   void restoreDockWidgetsState();
 
   //! Shows or hides ParaView view window
-  void showView( bool );
+  void showView( bool );    
 
   //! Get list of embedded macros files
   QStringList getEmbeddedMacrosList();
@@ -177,7 +177,7 @@ private:
 
 private slots:
   void showHelpForProxy( const QString&, const QString& );
-
+  
   void onPreAccept();    // not used inside PARAVIS
   void onPostAccept();   // not used inside PARAVIS
   void endWaitCursor();  // not used inside PARAVIS
@@ -206,25 +206,22 @@ protected slots:
 private:
   int                    mySourcesMenuId;
   int                    myFiltersMenuId;
-#ifdef PVCATALYST_ENABLED
-  int                    myCatalystMenuId;
-#endif
   int                    myMacrosMenuId;
   int                    myRecentMenuId;
-
+  
   typedef QMap<QWidget*, bool> WgMap;
   WgMap                  myDockWidgets;
   WgMap                  myToolbars;
   WgMap                  myToolbarBreaks;
   QList<QMenu*>          myMenus;
 
-  typedef QMap<int, bool> DockWindowMap;
-  DockWindowMap           myCommonMap;
+  typedef QMap<int, bool> DockWindowMap;         
+  DockWindowMap           myCommonMap; 
 #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
   QtMsgHandler            myOldMsgHandler;
-#else
+#else  
   QtMessageHandler        myOldMsgHandler;
-#endif
+#endif  
   vtkEventQtSlotConnect*  VTKConnect;
 
   pqPythonScriptEditor*   myTraceWindow;
index 91e840e049c19f8ee0fa2065c469110d5fc7c659..67f3d6cea892e03aaffe40a6774e37134bb1943c 100644 (file)
@@ -1,6 +1,6 @@
 // PARAVIS : ParaView wrapper SALOME module
 //
-// Copyright (C) 2010-2016  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
@@ -88,7 +88,7 @@ void PVGUI_Module::pvCreateActions()
 
   QPixmap aPixmap;
   QAction* anAction;
-
+  
   // --- Menu "File"
 
   // Open File
@@ -98,14 +98,14 @@ void PVGUI_Module::pvCreateActions()
   anAction->setStatusTip(tr("STB_OPEN_FILE"));
   registerAction(OpenFileId, anAction);
   new pqLoadDataReaction(anAction);
-
+  
   // Load State
   anAction = new QAction(tr("MEN_LOAD_STATE"), this);
   anAction->setToolTip(tr("TOP_LOAD_STATE"));
   anAction->setStatusTip(tr("STB_LOAD_STATE"));
   registerAction(LoadStateId, anAction);
   new pqLoadStateReaction(anAction);
-
+  
   // Save State
   anAction = new QAction(tr("MEN_SAVE_STATE"), this);
   anAction->setToolTip(tr("TOP_SAVE_STATE"));
@@ -193,7 +193,7 @@ void PVGUI_Module::pvCreateActions()
   anAction->setStatusTip(tr("STB_CAMERA_UNDO"));
   registerAction(CameraUndoId, anAction);
   new pqCameraUndoRedoReaction(anAction, true);
-
+  
   // Camera Redo
   aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_CAMERA_REDO"), false );
   anAction = new QAction(QIcon(aPixmap), tr("MEN_CAMERA_REDO"), this);
@@ -208,7 +208,7 @@ void PVGUI_Module::pvCreateActions()
   anAction->setStatusTip("");
   registerAction(FindDataId, anAction);
   new pqDataQueryReaction(anAction);
-
+  
   // Change Input
   anAction = new QAction(tr("MEN_CHANGE_INPUT"), this);
   anAction->setToolTip(tr("TOP_CHANGE_INPUT"));
@@ -245,7 +245,7 @@ void PVGUI_Module::pvCreateActions()
   anAction->setStatusTip(tr("STB_SETTINGS"));
   registerAction(SettingsId, anAction);
   new pqApplicationSettingsReaction(anAction);*/
-
+  
   // View Settings
 //  anAction = new QAction(tr("MEN_VIEW_SETTINGS"), this);
 //  anAction->setToolTip(tr("TOP_VIEW_SETTINGS"));
@@ -257,7 +257,7 @@ void PVGUI_Module::pvCreateActions()
   //pqViewManager* viewManager = qobject_cast<pqViewManager*>(
   //                             pqApplicationCore::instance()->manager("MULTIVIEW_WIDGET"));
 
-  //rnv: Commented to implement issue
+  //rnv: Commented to implement issue 
   //21318: EDF 1615 ALL: Display in full screen mode
   //Switching to the "Full screen" mode added in the SALOME GUI module.
   //if (viewManager) {
@@ -350,7 +350,7 @@ void PVGUI_Module::pvCreateActions()
   registerAction(OutputWindowId, anAction);
   anAction << pqSetName("actionToolsOutputWindow");
   connect(anAction, SIGNAL(triggered()), pqApplicationCore::instance(), SLOT(showOutputWindow()));
-
+  
  // Python Shell
   anAction = new QAction(tr("MEN_PYTHON_SHELL"), this);
   anAction->setToolTip(tr("TOP_PYTHON_SHELL"));
@@ -396,14 +396,14 @@ void PVGUI_Module::pvCreateActions()
   \brief Create menus for ParaView GUI operations
   duplicating menus in pqMainWindow ParaView class
 
-  In particular, ParaView is responsible for updating "Sources" and "Filters" menus.
+  In particular, ParaView is responsible for updating "Sources" and "Filters" menus. 
   For this, specific menu managers created by pqMainWindowCore class are used, and PVGUI_Module
   is responsible for creation of corresponding QMenu objects only.
 */
 void PVGUI_Module::pvCreateMenus()
 {
   SUIT_Desktop* desk = application()->desktop();
-
+  
   // --- Menu "File"
   int aPVMnu = createMenu( tr( "MEN_DESK_FILE" ), -1, -1 );
 
@@ -462,30 +462,23 @@ void PVGUI_Module::pvCreateMenus()
   aPVMnu = createMenu( tr( "MEN_DESK_VIEW" ), -1, -1 );
 
   createMenu( FullScreenId, aPVMnu );
-
+  
   // --- Menu "Sources"
   // Install ParaView managers for "Sources" menu
   QMenu* aRes = 0;
   PVViewer_GUIElements * guiElements = PVViewer_GUIElements::GetInstance(desk);
   aRes = guiElements->getSourcesMenu();
   mySourcesMenuId = createMenu( tr( "MEN_DESK_SOURCES" ), -1, -1, 60, -1, aRes);
-
+  
   // --- Menu "Filters"
   // Install ParaView managers for "Filters" menu
   aRes = guiElements->getFiltersMenu();
   myFiltersMenuId = createMenu( tr( "MEN_DESK_FILTERS" ), -1, -1, 70, -1, aRes);
 
-  // --- Menu "Catalyst"
-  // Install ParaView managers for "Catalyst" menu
-#ifdef PVCATALYST_ENABLED
-  aRes = guiElements->getCatalystMenu();
-  myCatalystMenuId = createMenu( tr( "MEN_DESK_CATALYST" ), -1, -1, 75, -1, aRes);
-#endif
-
    // --- Menu "Macros"
   aRes = guiElements->getMacrosMenu();
   myMacrosMenuId = createMenu( tr( "MEN_MACROS" ), -1, -1, 80, -1, aRes);
-
   // --- Menu "Tools"
   int aToolsMnu = createMenu( tr( "MEN_DESK_TOOLS" ), -1, -1, 90 );
 
index 614eec86aaf3b36c7cb58e7746e6f40947fb19c3..55e4ba6a69c5fe6a96f1f184dd19f29264f72dab 100644 (file)
         <source>MEN_DESK_FILTERS</source>
         <translation>F&amp;ilters</translation>
     </message>
-    <message>
-        <source>MEN_DESK_CATALYST</source>
-        <translation>Catalyst</translation>
-    </message>
     <message>
         <source>MEN_DESK_ANIMATION</source>
         <translation>A&amp;nimation</translation>
index f6f840924721829661d109c057f4f8e22c397f6f..7b1430167edf961d10c39a037159fd232081bfbb 100644 (file)
     <message>
         <source>TTL_VIEW_PANEL</source>
         <translation>Vue</translation>
-    </message>
+    </message>    
     <message>
         <source>TOP_OPEN_FILE</source>
         <translation>Ouvrir un fichier ParaView</translation>
         <source>MEN_DESK_FILTERS</source>
         <translation>F&amp;iltres</translation>
     </message>
-    <message>
-        <source>MEN_DESK_CATALYST</source>
-        <translation>Catalyst</translation>
-    </message>
     <message>
         <source>MEN_DESK_ANIMATION</source>
         <translation>A&amp;nimation</translation>
index 03b60d35413bc9eea557d997450502345495fb23..9479e3fe2795f2005c62165840f4c108b8a9746b 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2010-2016  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
@@ -34,17 +34,6 @@ ENDIF()
 LIST(APPEND CMAKE_PREFIX_PATH "$ENV{PARAVIEW_ROOT_DIR}")
 FIND_PACKAGE(ParaView REQUIRED)
 
-FIND_PACKAGE(ParaView COMPONENTS vtkPVCatalyst vtkPVPythonCatalyst)
-LIST(FIND VTK_MODULES_ENABLED vtkPVCatalyst vtkPVCatalyst_index)
-LIST(FIND VTK_MODULES_ENABLED vtkPVPythonCatalyst vtkPVPythonCatalyst_index)
-IF (${vtkPVCatalyst_index} GREATER -1 AND
-    ${vtkPVPythonCatalyst_index} GREATER -1)
-  SET(PVCATALYST_ENABLED yes)
-ENDIF()
-IF (PVCATALYST_ENABLED)
-  ADD_DEFINITIONS("-DPVCATALYST_ENABLED")
-ENDIF()
-
 INCLUDE(${PARAVIEW_USE_FILE})
 INCLUDE(ParaViewMacros)
 SET(CMAKE_INCLUDE_CURRENT_DIR ON)
index 9717df203ca8cc0d6efd8123f2c2f74f67092e7f..91b5642796b21c1c755f82accf2506f71f18b8bc 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2010-2016  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
@@ -26,7 +26,7 @@ SET(pl_HEADERS
     PVViewer_Behaviors.h
     PVViewer_GUIElements.h
     )
-
+    
 SET(pl_OTHER_HEADERS
     PVViewer_Core.h
     )
@@ -44,17 +44,17 @@ SET(pl_FORMS
     ui/light_para.ui
     ui/view_tab.ui
     )
-
+    
 SET(CMAKE_INCLUDE_CURRENT_DIR ON)
 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
 INCLUDE_DIRECTORIES(${PARAVIEW_INCLUDE_DIRS})
 
 ADD_DEFINITIONS(${QT_DEFINITIONS})
 
-# Generate resources that will embedded
+# Generate resources that will embedded 
 SET(ui_resources
   "${CMAKE_CURRENT_BINARY_DIR}/LightPara_configuration.qrc")
-
+  
 GENERATE_QT_RESOURCE_FROM_FILES(
     "${ui_resources}"
     "/LightPara/Configuration"
@@ -67,11 +67,11 @@ QT_WRAP_UIC(pl_FORMS_HEADERS ${pl_FORMS})
 QT_WRAP_MOC(pl_HEADERS_MOC  ${pl_HEADERS})
 
 ADD_EXECUTABLE(paraLight
-    ${pl_SOURCES}
-    ${pl_HEADERS_MOC}
+    ${pl_SOURCES} 
+    ${pl_HEADERS_MOC} 
     ${pl_FORMS_HEADERS}
     ${rcs_sources})
-
+    
 TARGET_LINK_LIBRARIES(paraLight ${QT_LIBRARIES} pqApplicationComponents vtkRenderingFreeType)#vtkRenderingFreeTypeOpenGL)
 #INSTALL(TARGET paraLight bin)
 
index 372c7a3e5a2aa09fc5d232007fac34a77c63240e..e008c225a084a2c83f0d9ee13202533131876821 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2010-2016  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
@@ -67,10 +67,6 @@ PVViewer_GUIElements::PVViewer_GUIElements(QMainWindow* desk) :
   pqParaViewMenuBuilders::buildSourcesMenu(*sourcesMenu, desk);
   filtersMenu = new QMenu(0);
   pqParaViewMenuBuilders::buildFiltersMenu(*filtersMenu, desk);
-#ifdef PVCATALYST_ENABLED
-  catalystMenu = new QMenu(0);
-  pqParaViewMenuBuilders::buildCatalystMenu(*catalystMenu);
-#endif
   macrosMenu = new QMenu(0);
   pqParaViewMenuBuilders::buildMacrosMenu(*macrosMenu);
 
index 7ab084a3ea8a4dbcd76812418b60f43d0c00765a..33afc03896632dd8d61a9643e0facd9eb92f2217 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2010-2016  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
@@ -52,9 +52,6 @@ public:
   QMenu* getFiltersMenu() { return filtersMenu; }
   QMenu* getSourcesMenu() { return sourcesMenu; }
   QMenu* getMacrosMenu()  { return macrosMenu; }
-#ifdef PVCATALYST_ENABLED
-  QMenu* getCatalystMenu()  { return catalystMenu; }
-#endif
 
   pqVCRToolbar* getVCRToolbar() { return vcrToolbar; }
   pqAnimationTimeToolbar* getTimeToolbar() { return timeToolbar; }
@@ -83,9 +80,6 @@ private:
   QMenu* sourcesMenu;
   QMenu* filtersMenu;
   QMenu* macrosMenu;
-#ifdef PVCATALYST_ENABLED
-  QMenu* catalystMenu;
-#endif
 
   // Toolbars also need to be instanciated early:
   QToolBar* mainToolBar;