Export methods for WIN32

This commit is contained in:
abd 2006-04-25 12:57:29 +00:00
parent 38412444f9
commit 4471daee42
6 changed files with 57 additions and 5 deletions

View File

@ -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

View File

@ -25,9 +25,12 @@
// Module : SMESH // Module : SMESH
// $Header$ // $Header$
#include "SMESH_StdMeshersGUI.hxx"
#include "StdMeshersGUI_StdHypothesisCreator.h" #include "StdMeshersGUI_StdHypothesisCreator.h"
#include "StdMeshersGUI_NbSegmentsCreator.h" #include "StdMeshersGUI_NbSegmentsCreator.h"
//============================================================================= //=============================================================================
/*! GetHypothesisCreator /*! GetHypothesisCreator
* *
@ -35,6 +38,7 @@
//============================================================================= //=============================================================================
extern "C" extern "C"
{ {
STDMESHERSGUI_EXPORT
SMESHGUI_GenericHypothesisCreator* GetHypothesisCreator( const QString& aHypType ) SMESHGUI_GenericHypothesisCreator* GetHypothesisCreator( const QString& aHypType )
{ {
if( aHypType=="NumberOfSegments" ) if( aHypType=="NumberOfSegments" )

View File

@ -2,6 +2,8 @@
#ifndef STD_MESHERS_GUI_DISTR_PREVIEW_HEADER #ifndef STD_MESHERS_GUI_DISTR_PREVIEW_HEADER
#define STD_MESHERS_GUI_DISTR_PREVIEW_HEADER #define STD_MESHERS_GUI_DISTR_PREVIEW_HEADER
#include "SMESH_StdMeshersGUI.hxx"
#include <qwt_plot.h> #include <qwt_plot.h>
#include <SALOMEconfig.h> #include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(SMESH_Mesh) #include CORBA_SERVER_HEADER(SMESH_Mesh)
@ -10,7 +12,7 @@
#include <Expr_Array1OfNamedUnknown.hxx> #include <Expr_Array1OfNamedUnknown.hxx>
#include <TColStd_Array1OfReal.hxx> #include <TColStd_Array1OfReal.hxx>
class StdMeshersGUI_DistrPreview : public QwtPlot class STDMESHERSGUI_EXPORT StdMeshersGUI_DistrPreview : public QwtPlot
{ {
Q_OBJECT Q_OBJECT

View File

@ -28,6 +28,8 @@
#ifndef StdMesherGUI_DistrTable_Header #ifndef StdMesherGUI_DistrTable_Header
#define StdMesherGUI_DistrTable_Header #define StdMesherGUI_DistrTable_Header
#include "SMESH_StdMeshersGUI.hxx"
#include <qtable.h> #include <qtable.h>
#include <SALOMEconfig.h> #include <SALOMEconfig.h>
@ -45,7 +47,7 @@ typedef enum { INSERT_ROW, REMOVE_ROW } TableButton;
* \brief This class represents custom table. It has only double values and * \brief This class represents custom table. It has only double values and
editor for every cell has validator editor for every cell has validator
*/ */
class StdMeshersGUI_DistrTable : public QTable class STDMESHERSGUI_EXPORT StdMeshersGUI_DistrTable : public QTable
{ {
Q_OBJECT Q_OBJECT
@ -86,7 +88,7 @@ private:
/*! /*!
* \brief This class represents frame for table and buttons * \brief This class represents frame for table and buttons
*/ */
class StdMeshersGUI_DistrTableFrame : public QFrame class STDMESHERSGUI_EXPORT StdMeshersGUI_DistrTableFrame : public QFrame
{ {
Q_OBJECT Q_OBJECT

View File

@ -2,6 +2,8 @@
#ifndef NB_SEGMENTS_CREATOR_HEADER #ifndef NB_SEGMENTS_CREATOR_HEADER
#define NB_SEGMENTS_CREATOR_HEADER #define NB_SEGMENTS_CREATOR_HEADER
#include "SMESH_StdMeshersGUI.hxx"
#include "StdMeshersGUI_StdHypothesisCreator.h" #include "StdMeshersGUI_StdHypothesisCreator.h"
#include <SALOMEconfig.h> #include <SALOMEconfig.h>
@ -26,7 +28,7 @@ typedef struct
} NbSegmentsHypothesisData; } NbSegmentsHypothesisData;
class StdMeshersGUI_NbSegmentsCreator : public StdMeshersGUI_StdHypothesisCreator class STDMESHERSGUI_EXPORT StdMeshersGUI_NbSegmentsCreator : public StdMeshersGUI_StdHypothesisCreator
{ {
Q_OBJECT Q_OBJECT

View File

@ -28,12 +28,14 @@
#ifndef STDMESHERSGUI_StdHypothesisCreator_HeaderFile #ifndef STDMESHERSGUI_StdHypothesisCreator_HeaderFile
#define STDMESHERSGUI_StdHypothesisCreator_HeaderFile #define STDMESHERSGUI_StdHypothesisCreator_HeaderFile
#include "SMESH_StdMeshersGUI.hxx"
#include <SMESHGUI_Hypotheses.h> #include <SMESHGUI_Hypotheses.h>
/*! /*!
* \brief Class for creation of simple hypotheses (only set of parameters without dependencies) * \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 Q_OBJECT