From: abd Date: Tue, 25 Apr 2006 12:57:29 +0000 (+0000) Subject: Export methods for WIN32 X-Git-Tag: LAST_STABLE_VERSION_21_09_2006_ON_3_2_0~37 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4471daee42cfa03c1edc371f9b3555d9f34da0de;p=modules%2Fsmesh.git Export methods for WIN32 --- diff --git a/src/StdMeshersGUI/SMESH_StdMeshersGUI.hxx b/src/StdMeshersGUI/SMESH_StdMeshersGUI.hxx new file mode 100755 index 000000000..67b4638c6 --- /dev/null +++ b/src/StdMeshersGUI/SMESH_StdMeshersGUI.hxx @@ -0,0 +1,40 @@ +// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +// +// 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. +// +// 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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org +// +// +// +// File : SMESH_StdMeshersGUI.hxx +// Author : Alexander BORODIN +// Module : SMESH +// $Header: + +#ifndef _SMESH_StdMeshersGUI_HXX_ +#define _SMESH_StdMeshersGUI_HXX_ + +#ifdef WNT + #if defined STDMESHERSGUI_EXPORTS + #define STDMESHERSGUI_EXPORT __declspec( dllexport ) + #else + #define STDMESHERSGUI_EXPORT __declspec( dllimport ) + #endif +#else + #define STDMESHERSGUI_EXPORT +#endif + +#endif \ No newline at end of file diff --git a/src/StdMeshersGUI/StdMeshersGUI.cxx b/src/StdMeshersGUI/StdMeshersGUI.cxx index a507f6d7b..50904baa9 100644 --- a/src/StdMeshersGUI/StdMeshersGUI.cxx +++ b/src/StdMeshersGUI/StdMeshersGUI.cxx @@ -25,9 +25,12 @@ // Module : SMESH // $Header$ +#include "SMESH_StdMeshersGUI.hxx" + #include "StdMeshersGUI_StdHypothesisCreator.h" #include "StdMeshersGUI_NbSegmentsCreator.h" + //============================================================================= /*! GetHypothesisCreator * @@ -35,6 +38,7 @@ //============================================================================= extern "C" { + STDMESHERSGUI_EXPORT SMESHGUI_GenericHypothesisCreator* GetHypothesisCreator( const QString& aHypType ) { if( aHypType=="NumberOfSegments" ) diff --git a/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.h b/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.h index 224658823..88768a8a0 100644 --- a/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.h +++ b/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.h @@ -2,6 +2,8 @@ #ifndef STD_MESHERS_GUI_DISTR_PREVIEW_HEADER #define STD_MESHERS_GUI_DISTR_PREVIEW_HEADER +#include "SMESH_StdMeshersGUI.hxx" + #include #include #include CORBA_SERVER_HEADER(SMESH_Mesh) @@ -10,7 +12,7 @@ #include #include -class StdMeshersGUI_DistrPreview : public QwtPlot +class STDMESHERSGUI_EXPORT StdMeshersGUI_DistrPreview : public QwtPlot { Q_OBJECT diff --git a/src/StdMeshersGUI/StdMeshersGUI_DistrTable.h b/src/StdMeshersGUI/StdMeshersGUI_DistrTable.h index a6f7f6106..32e336e2e 100644 --- a/src/StdMeshersGUI/StdMeshersGUI_DistrTable.h +++ b/src/StdMeshersGUI/StdMeshersGUI_DistrTable.h @@ -28,6 +28,8 @@ #ifndef StdMesherGUI_DistrTable_Header #define StdMesherGUI_DistrTable_Header +#include "SMESH_StdMeshersGUI.hxx" + #include #include @@ -45,7 +47,7 @@ typedef enum { INSERT_ROW, REMOVE_ROW } TableButton; * \brief This class represents custom table. It has only double values and editor for every cell has validator */ -class StdMeshersGUI_DistrTable : public QTable +class STDMESHERSGUI_EXPORT StdMeshersGUI_DistrTable : public QTable { Q_OBJECT @@ -86,7 +88,7 @@ private: /*! * \brief This class represents frame for table and buttons */ -class StdMeshersGUI_DistrTableFrame : public QFrame +class STDMESHERSGUI_EXPORT StdMeshersGUI_DistrTableFrame : public QFrame { Q_OBJECT diff --git a/src/StdMeshersGUI/StdMeshersGUI_NbSegmentsCreator.h b/src/StdMeshersGUI/StdMeshersGUI_NbSegmentsCreator.h index 6d902fe80..df7989c4e 100644 --- a/src/StdMeshersGUI/StdMeshersGUI_NbSegmentsCreator.h +++ b/src/StdMeshersGUI/StdMeshersGUI_NbSegmentsCreator.h @@ -2,6 +2,8 @@ #ifndef NB_SEGMENTS_CREATOR_HEADER #define NB_SEGMENTS_CREATOR_HEADER +#include "SMESH_StdMeshersGUI.hxx" + #include "StdMeshersGUI_StdHypothesisCreator.h" #include @@ -26,7 +28,7 @@ typedef struct } NbSegmentsHypothesisData; -class StdMeshersGUI_NbSegmentsCreator : public StdMeshersGUI_StdHypothesisCreator +class STDMESHERSGUI_EXPORT StdMeshersGUI_NbSegmentsCreator : public StdMeshersGUI_StdHypothesisCreator { Q_OBJECT diff --git a/src/StdMeshersGUI/StdMeshersGUI_StdHypothesisCreator.h b/src/StdMeshersGUI/StdMeshersGUI_StdHypothesisCreator.h index 216324cab..752ba403f 100644 --- a/src/StdMeshersGUI/StdMeshersGUI_StdHypothesisCreator.h +++ b/src/StdMeshersGUI/StdMeshersGUI_StdHypothesisCreator.h @@ -28,12 +28,14 @@ #ifndef STDMESHERSGUI_StdHypothesisCreator_HeaderFile #define STDMESHERSGUI_StdHypothesisCreator_HeaderFile +#include "SMESH_StdMeshersGUI.hxx" + #include /*! * \brief Class for creation of simple hypotheses (only set of parameters without dependencies) */ -class StdMeshersGUI_StdHypothesisCreator : public SMESHGUI_GenericHypothesisCreator +class STDMESHERSGUI_EXPORT StdMeshersGUI_StdHypothesisCreator : public SMESHGUI_GenericHypothesisCreator { Q_OBJECT