Salome HOME
Porting on windows
authorana <ana@opencascade.com>
Mon, 20 Oct 2014 10:55:05 +0000 (14:55 +0400)
committerana <ana@opencascade.com>
Mon, 20 Oct 2014 10:55:05 +0000 (14:55 +0400)
src/PVViewer/CMakeLists.txt
src/PVViewer/PVViewer.h [new file with mode: 0644]
src/PVViewer/PVViewer_Behaviors.h
src/PVViewer/PVViewer_EngineWrapper.h
src/PVViewer/PVViewer_GUIElements.h
src/PVViewer/PVViewer_LogWindowAdapter.h
src/PVViewer/PVViewer_ViewManager.h
src/PVViewer/PVViewer_ViewModel.h
src/PVViewer/PVViewer_ViewWindow.h

index 8a43e577c36e7eb3fdc0ff265c5e4d4921c8a84a..5c02e6185f9bab66e1e626b871bb07d1a5622d22 100644 (file)
@@ -48,6 +48,7 @@ SET(_link_LIBRARIES
   ${KERNEL_LDFLAGS} ${KERNEL_SALOMELocalTrace} ${KERNEL_OpUtil} 
   ${GUI_LDFLAGS} suit Event PyInterp 
   ${_PARAVIEW_APP_COMPO_LIB}
+  vtkRenderingFreeTypeOpenGL
 )
 
 # --- headers ---
@@ -63,6 +64,7 @@ SET(_moc_HEADERS
 
 # header files / no moc processing
 SET(_other_HEADERS
+  PVViewer.h
   PVViewer_LogWindowAdapter.h
   PVViewer_EngineWrapper.h
 )
diff --git a/src/PVViewer/PVViewer.h b/src/PVViewer/PVViewer.h
new file mode 100644 (file)
index 0000000..7783389
--- /dev/null
@@ -0,0 +1,32 @@
+// Copyright (C) 2010-2014  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
+
+#ifndef PVVIEWER_H
+#define PVVIEWER_H
+
+#ifdef WIN32
+#if defined PVViewer_EXPORTS
+#define PVVIEWER_EXPORT __declspec(dllexport)
+#else
+#define PVVIEWER_EXPORT __declspec(dllimport)
+#endif
+#else
+#define PVVIEWER_EXPORT
+#endif
+
+#endif //PVVIEWER_H
index fa2d32af8309983d4e7a27ff888400dbe361d776..070fb26bfb428605c580731c3af37b6be421425d 100644 (file)
@@ -22,6 +22,8 @@
 #ifndef PVGUIBEHAVIORS_H_
 #define PVGUIBEHAVIORS_H_
 
+#include "PVViewer.h"
+
 #include <QObject>
 
 class SalomeApp_Module;
@@ -33,7 +35,7 @@ class pqPropertiesPanel;
  *    Qt/ApplicationComponents/pqParaViewBehaviors.cxx
  * Except a few ones, behaviors are destroyed when the module is destroyed.
  */
-class PVViewer_Behaviors: public QObject
+class PVVIEWER_EXPORT PVViewer_Behaviors: public QObject
 {
   Q_OBJECT
 
index c4a9e74719bd97321133e5f9352fa7a915a7aaeb..8400985d5a44966584dbbde429e3fff5d1b522a4 100644 (file)
@@ -21,6 +21,8 @@
 #ifndef PVVIEWERENGINEWRAPPER_H_
 #define PVVIEWERENGINEWRAPPER_H_
 
+#include "PVViewer.h"
+
 #include <PyInterp_Utils.h>
 #include <string>
 
@@ -38,7 +40,7 @@
  * (Two implementations are provided: one with CORBA dynamic invokation from C++, one using
  * Python - see commented elements in the .cxx file)
  */
-class PVViewer_EngineWrapper
+class PVVIEWER_EXPORT PVViewer_EngineWrapper
 {
 public:
   //! Returns the unique instance of the engine.
index ca0634e032012f5b2bebb225dc2bc516a7f1d694..aa22f4b2d9b8d7f18db5af84cb2e326cadbd4fe2 100644 (file)
@@ -21,6 +21,8 @@
 #ifndef PVVIEWERGUIELEMENTS_H_
 #define PVVIEWERGUIELEMENTS_H_
 
+#include "PVViewer.h"
+
 #include <QObject>
 
 class pqPropertiesPanel;
@@ -34,7 +36,7 @@ class QMenu;
  * For example sources menu should be built *before* loading ParaView's configuration, so that the
  * list of sources gets properly populated.
  */
-class PVViewer_GUIElements: public QObject
+class PVVIEWER_EXPORT PVViewer_GUIElements: public QObject
 {
   Q_OBJECT
 
index 863ddbcb87a1fd1221630545a8496b3dbeb9dd8f..a6b60d46297ad54fd383bdca6d72ce153b55256f 100644 (file)
@@ -20,6 +20,8 @@
 #ifndef _PVViewer_LogWindowAdapter_h
 #define _PVViewer_LogWindowAdapter_h
 
+#include "PVViewer.h"
+
 #include <vtkOutputWindow.h>
 
 class LogWindow;
@@ -32,7 +34,7 @@ vtkOutputWindow::setInstance() static method.
 
 This class is based on pqOutputWindow ParaView class.
 */
-class PVViewer_LogWindowAdapter : public vtkOutputWindow
+class PVVIEWER_EXPORT PVViewer_LogWindowAdapter : public vtkOutputWindow
 {
 public:
   static PVViewer_LogWindowAdapter *New();
index 0925698f7f2539632f7efe243a79ab1aa00b5773..fad78159f3f39f90a9e64fd18ea17eefdb29ecb0 100644 (file)
@@ -19,6 +19,8 @@
 #ifndef PVViewer_VIEWMANAGER_H
 #define PVViewer_VIEWMANAGER_H
 
+#include "PVViewer.h"
+
 #include <SUIT_ViewManager.h>
 
 class PVViewer_EngineWrapper;
@@ -32,7 +34,7 @@ class pqPropertiesPanel;
 class pqPipelineBrowserWidget;
 class LogWindow;
 
-class PVViewer_ViewManager : public SUIT_ViewManager
+class PVVIEWER_EXPORT PVViewer_ViewManager : public SUIT_ViewManager
 {
   Q_OBJECT
 
index e70f663cb820d30c35649aac4356dda31cd4c90c..5f685cd4b8f63ae2f239e4485dc4499f71444b1b 100644 (file)
 #if !defined(_PVViewer_VIEWMODEL_H)
 #define _PVViewer_VIEWMODEL_H
 
+#include "PVViewer.h"
+
 #include <SUIT_ViewModel.h>
 
 class SUIT_ViewWindow;
 class SUIT_Desktop;
 class SUIT_Desktop;
 
-class PVViewer_Viewer: public SUIT_ViewModel
+class PVVIEWER_EXPORT PVViewer_Viewer: public SUIT_ViewModel
 {
   Q_OBJECT
 
index e3ff387ce7092879dffa4eff375dde6b6cd1e198..595fb05092d32d534e876672628ffd77ddc889c3 100644 (file)
@@ -23,6 +23,8 @@
 #ifndef PVViewer_VIEWWINDOW_H
 #define PVViewer_VIEWWINDOW_H
 
+#include "PVViewer.h"
+
 #include <SUIT_ViewWindow.h>
 #include <QMap>
 
@@ -30,7 +32,7 @@ class SUIT_Desktop;
 class PVViewer_Viewer;
 class pqTabbedMultiViewWidget;
 
-class PVViewer_ViewWindow : public SUIT_ViewWindow
+class PVVIEWER_EXPORT PVViewer_ViewWindow : public SUIT_ViewWindow
 {
   Q_OBJECT