From 223283729f28728081ce6a58723ecc49a0815c65 Mon Sep 17 00:00:00 2001 From: sln Date: Tue, 8 Nov 2005 15:58:04 +0000 Subject: [PATCH] SUPERVGRAPH_EXPORT added for windows compilation --- src/SUPERVGraph/SUPERVGraph.h | 16 +++++++++++++++- src/SUPERVGraph/SUPERVGraph_ViewFrame.h | 6 ++++-- src/SUPERVGraph/SUPERVGraph_ViewManager.h | 4 +++- src/SUPERVGraph/SUPERVGraph_ViewModel.h | 4 +++- 4 files changed, 25 insertions(+), 5 deletions(-) diff --git a/src/SUPERVGraph/SUPERVGraph.h b/src/SUPERVGraph/SUPERVGraph.h index d2d83794e..599857d00 100755 --- a/src/SUPERVGraph/SUPERVGraph.h +++ b/src/SUPERVGraph/SUPERVGraph.h @@ -32,7 +32,21 @@ #include "SUIT_Desktop.h" #include "SUIT_ViewWindow.h" -class SUPERVGraph : public QObject +#ifdef WNT +#ifdef SUPERVGRAPH_EXPORTS +#define SUPERVGRAPH_EXPORT __declspec(dllexport) +#else +#define SUPERVGRAPH_EXPORT __declspec(dllimport) +#endif +#else +#define SUPERVGRAPH_EXPORT +#endif + +#if defined WNT +#pragma warning ( disable: 4251 ) +#endif + +class SUPERVGRAPH_EXPORT SUPERVGraph : public QObject { Q_OBJECT diff --git a/src/SUPERVGraph/SUPERVGraph_ViewFrame.h b/src/SUPERVGraph/SUPERVGraph_ViewFrame.h index 351241aa8..ea0bf5629 100755 --- a/src/SUPERVGraph/SUPERVGraph_ViewFrame.h +++ b/src/SUPERVGraph/SUPERVGraph_ViewFrame.h @@ -29,11 +29,13 @@ #ifndef SUPERVGraph_ViewFrame_H #define SUPERVGraph_ViewFrame_H +#include "SUPERVGraph.h" + #include "SALOME_InteractiveObject.hxx" #include "SUIT_PopupClient.h" #include "SUIT_ViewWindow.h" -class /*SUPERVGRAPH_EXPORT*/ SUPERVGraph_View: public QWidget, public SUIT_PopupClient { +class SUPERVGRAPH_EXPORT SUPERVGraph_View: public QWidget, public SUIT_PopupClient { Q_OBJECT; public: static QString Type() { return "SUPERVGraphViewer"; } @@ -55,7 +57,7 @@ class /*SUPERVGRAPH_EXPORT*/ SUPERVGraph_View: public QWidget, public SUIT_Popup }; -class /*SUPERVGRAPH_EXPORT*/ SUPERVGraph_ViewFrame : public SUIT_ViewWindow { +class SUPERVGRAPH_EXPORT SUPERVGraph_ViewFrame : public SUIT_ViewWindow { Q_OBJECT public: diff --git a/src/SUPERVGraph/SUPERVGraph_ViewManager.h b/src/SUPERVGraph/SUPERVGraph_ViewManager.h index 9ffb49f67..9e023c254 100644 --- a/src/SUPERVGraph/SUPERVGraph_ViewManager.h +++ b/src/SUPERVGraph/SUPERVGraph_ViewManager.h @@ -1,12 +1,14 @@ #ifndef SUPERVGRAPH_VIEWMANAGER_H #define SUPERVGRAPH_VIEWMANAGER_H +#include "SUPERVGraph.h" + #include "SUPERVGraph_ViewModel.h" #include "SUIT_ViewManager.h" class SUIT_Desktop; -class /*SUPERVGRAPH_EXPORT*/ SUPERVGraph_ViewManager : public SUIT_ViewManager +class SUPERVGRAPH_EXPORT SUPERVGraph_ViewManager : public SUIT_ViewManager { Q_OBJECT diff --git a/src/SUPERVGraph/SUPERVGraph_ViewModel.h b/src/SUPERVGraph/SUPERVGraph_ViewModel.h index ab817dae7..559be8b40 100644 --- a/src/SUPERVGraph/SUPERVGraph_ViewModel.h +++ b/src/SUPERVGraph/SUPERVGraph_ViewModel.h @@ -1,9 +1,11 @@ #ifndef SUPERVGRAPH_VIEWMODEL_H #define SUPERVGRAPH_VIEWMODEL_H +#include "SUPERVGraph.h" + #include "SUIT_ViewModel.h" -class /*SUPERVGRAPH_EXPORT*/ SUPERVGraph_Viewer: public SUIT_ViewModel +class SUPERVGRAPH_EXPORT SUPERVGraph_Viewer: public SUIT_ViewModel { Q_OBJECT -- 2.39.2