Salome HOME
ENV: Windows porting T_3_0_2a1
authorenv <env@opencascade.com>
Mon, 29 Aug 2005 06:03:08 +0000 (06:03 +0000)
committerenv <env@opencascade.com>
Mon, 29 Aug 2005 06:03:08 +0000 (06:03 +0000)
27 files changed:
src/BasicGUI/BasicGUI.cxx
src/BlocksGUI/BlocksGUI.cxx
src/BooleanGUI/BooleanGUI.cxx
src/BuildGUI/BuildGUI.cxx
src/DisplayGUI/DisplayGUI.cxx
src/DlgRef/DlgRef_6Sel_QTD.h
src/EntityGUI/EntityGUI.cxx
src/GEOMGUI/GeometryGUI.cxx
src/GEOMToolsGUI/GEOMToolsGUI.cxx
src/GEOM_I/GEOM_Gen_i.cc
src/GenerationGUI/GenerationGUI.cxx
src/GroupGUI/GroupGUI.cxx
src/MeasureGUI/MeasureGUI.cxx
src/MeasureGUI/MeasureGUI_BndBoxDlg.h
src/MeasureGUI/MeasureGUI_CenterMassDlg.h
src/MeasureGUI/MeasureGUI_CheckCompoundOfBlocksDlg.h
src/MeasureGUI/MeasureGUI_CheckShapeDlg.h
src/MeasureGUI/MeasureGUI_DistanceDlg.h
src/MeasureGUI/MeasureGUI_InertiaDlg.h
src/MeasureGUI/MeasureGUI_MaxToleranceDlg.h
src/MeasureGUI/MeasureGUI_PointDlg.h
src/MeasureGUI/MeasureGUI_PropertiesDlg.h
src/MeasureGUI/MeasureGUI_WhatisDlg.h
src/OperationGUI/OperationGUI.cxx
src/PrimitiveGUI/PrimitiveGUI.cxx
src/RepairGUI/RepairGUI.cxx
src/TransformationGUI/TransformationGUI.cxx

index 31217bc6476f47676dc1c780803c8c91f36d474d..076e0ed3a3827069949c0b52dbb2e7346ca1158f 100644 (file)
@@ -219,6 +219,9 @@ gp_Pnt BasicGUI::ConvertClickToPoint( int x, int y, Handle(V3d_View) aView)
 //=====================================================================================
 extern "C"
 {
+#ifdef WNT
+       __declspec( dllexport )
+#endif
   GEOMGUI* GetLibGUI( GeometryGUI* parent )
   {
     return BasicGUI::GetBasicGUI( parent );
index 0b42de719c67463d26d455f33f3a5210f9d12ea8..30abf2a668fdbbf02fd56c63796c9b0f9b5f0dca 100644 (file)
@@ -126,6 +126,9 @@ bool BlocksGUI::OnGUIEvent( int theCommandID, SUIT_Desktop* parent )
 //=====================================================================================
 extern "C"
 {
+#ifdef WNT
+       __declspec( dllexport )
+#endif
   GEOMGUI* GetLibGUI( GeometryGUI* parent )
   {
     return BlocksGUI::GetBlocksGUI( parent );
index e233311b240e089c1f30e09586b4360aa62e198d..5f0865f6c8d0abb9e86d8e49201a07de137696ab 100644 (file)
@@ -100,6 +100,9 @@ bool BooleanGUI::OnGUIEvent(int theCommandID, SUIT_Desktop* parent)
 //=====================================================================================
 extern "C"
 {
+#ifdef WNT
+       __declspec( dllexport )
+#endif
   GEOMGUI* GetLibGUI( GeometryGUI* parent )
   {
     return BooleanGUI::GetBooleanGUI( parent );
index 97a38e990e44952667790eed7de28fdb71474d58..bb0c98a2c31003c4d6e622b35ff884e4dfae7a0c 100644 (file)
@@ -108,6 +108,9 @@ bool BuildGUI::OnGUIEvent( int theCommandID, SUIT_Desktop* parent )
 //=====================================================================================
 extern "C"
 {
+#ifdef WNT
+       __declspec( dllexport )
+#endif
   GEOMGUI* GetLibGUI( GeometryGUI* parent )
   {
     return BuildGUI::GetBuildGUI( parent );
index 94400653a05726b525ad6888cf94db49b65def4e..b329a2f6209625ac91c08b1701dfa2df50582088 100644 (file)
@@ -466,6 +466,9 @@ void DisplayGUI::ChangeDisplayMode( const int mode, SUIT_ViewWindow* viewWindow
 //=====================================================================================
 extern "C"
 {
+#ifdef WNT
+       __declspec( dllexport )
+#endif
   GEOMGUI* GetLibGUI( GeometryGUI* parent )
   {
     return DisplayGUI::GetDisplayGUI( parent );
index 0231bbb4bdd00381f7ba9f9906ff4473b3c68202..a80bc433a9b07dab8faa5c3ba7d136661b047f4d 100644 (file)
@@ -19,7 +19,13 @@ class QLabel;
 class QLineEdit;
 class QPushButton;
 
-class DlgRef_6Sel_QTD : public QWidget
+#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
+#define DLGREF_WNT_EXPORT __declspec( dllexport )
+#else
+#define DLGREF_WNT_EXPORT
+#endif
+
+class DLGREF_WNT_EXPORT DlgRef_6Sel_QTD : public QWidget
 { 
     Q_OBJECT
 
index 104dfd3036426a20f9bf0cb7f2f5d908ca595c38..c1af4be77cf01baa0086bdf0f0881bc191855e55 100644 (file)
@@ -668,6 +668,9 @@ bool EntityGUI::OnSubShapeGetSelected(const TopoDS_Shape& ShapeTopo, const char*
 //=====================================================================================
 extern "C"
 {
+#ifdef WNT
+       __declspec( dllexport )
+#endif
   GEOMGUI* GetLibGUI( GeometryGUI* parent )
   {
     return EntityGUI::GetEntityGUI( parent );
index 166e56ab3917745473c156bd6c7f39fb44697805..4f72ceb79c8b66e3e5810052ac09b4ba0fc1b1c3 100644 (file)
@@ -200,8 +200,13 @@ GEOMGUI* GeometryGUI::getLibrary( const QString& libraryName )
   if ( !myGUIMap.contains( libraryName ) ) {
     // try to load library if it is not loaded yet
     QCString libs;
+#ifndef WNT
     if( ( libs = getenv( "LD_LIBRARY_PATH" ) ) ) {
-      QStringList dirList = QStringList::split( ":", libs, false ); // skip empty entries
+         QStringList dirList = QStringList::split( ":", libs, false ); // skip empty entries
+#else
+       if( ( libs = getenv( "PATH" ) ) ) {
+         QStringList dirList = QStringList::split( ";", libs, false ); // skip empty entries
+#endif
       for( int i = dirList.count()-1; i >= 0; i-- ) {
        QString dir = dirList[ i ];
        QFileInfo fi( Qtx::addSlash( dirList[ i ] ) + libraryName );
@@ -366,7 +371,11 @@ void GeometryGUI::OnGUIEvent( int id )
       id == 901  ||  // OBJECT BROWSER - RENAME
       id == 9024 ) { // OBJECT BROWSER - OPEN
     //cout << "id " << id << " received" << endl;
-    library = getLibrary( "libGEOMToolsGUI.so" );
+#ifndef WNT
+       library = getLibrary( "libGEOMToolsGUI.so" );
+#else
+       library = getLibrary( "GEOMToolsGUI.dll" );
+#endif
   }
   else if( id == 211  ||  // MENU VIEW - WIREFRAME/SHADING
           id == 212  ||  // MENU VIEW - DISPLAY ALL
@@ -376,7 +385,11 @@ void GeometryGUI::OnGUIEvent( int id )
           id == 216  ||  // MENU VIEW - DISPLAY
           id == 80311 ||  // POPUP VIEWER - WIREFRAME
           id == 80312 ) { // POPUP VIEWER - SHADING
-    library = getLibrary( "libDisplayGUI.so" );
+#ifndef WNT
+       library = getLibrary( "libDisplayGUI.so" );
+#else
+       library = getLibrary( "DisplayGUI.dll" );
+#endif
   }
   else if( id == 4011 ||  // MENU BASIC - POINT
           id == 4012 ||  // MENU BASIC - LINE
@@ -388,24 +401,40 @@ void GeometryGUI::OnGUIEvent( int id )
           id == 4018 ||  // MENU BASIC - WPLANE
           id == 4019 ||  // MENU BASIC - CURVE
           id == 4020 ) { // MENU BASIC - REPAIR
-    library = getLibrary( "libBasicGUI.so" );
+#ifndef WNT
+       library = getLibrary( "libBasicGUI.so" );
+#else
+       library = getLibrary( "BasicGUI.dll" );
+#endif
   }
   else if( id == 4021 ||  // MENU PRIMITIVE - BOX
           id == 4022 ||  // MENU PRIMITIVE - CYLINDER
           id == 4023 ||  // MENU PRIMITIVE - SPHERE
           id == 4024 ||  // MENU PRIMITIVE - TORUS
           id == 4025 ) { // MENU PRIMITIVE - CONE
-    library = getLibrary( "libPrimitiveGUI.so" );
+#ifndef WNT
+       library = getLibrary( "libPrimitiveGUI.so" );
+#else
+       library = getLibrary( "PrimitiveGUI.dll" );
+#endif
   }
   else if( id == 4031 ||  // MENU GENERATION - PRISM
           id == 4032 ||  // MENU GENERATION - REVOLUTION
           id == 4033 ||  // MENU GENERATION - FILLING
           id == 4034 ) { // MENU GENERATION - PIPE
-    library = getLibrary( "libGenerationGUI.so" );
+#ifndef WNT
+       library = getLibrary( "libGenerationGUI.so" );
+#else
+       library = getLibrary( "GenerationGUI.dll" );
+#endif
   }
   else if( id == 404 ||   // MENU ENTITY - SKETCHER
           id == 407 ) {  // MENU ENTITY - EXPLODE
-    library = getLibrary( "libEntityGUI.so" );
+#ifndef WNT
+       library = getLibrary( "libEntityGUI.so" );
+#else
+       library = getLibrary( "EntityGUI.dll" );
+#endif
   }
   else if( id == 4081 ||  // MENU BUILD - EDGE
           id == 4082 ||  // MENU BUILD - WIRE
@@ -413,13 +442,21 @@ void GeometryGUI::OnGUIEvent( int id )
           id == 4084 ||  // MENU BUILD - SHELL
           id == 4085 ||  // MENU BUILD - SOLID
           id == 4086 ) { // MENU BUILD - COMPUND
-    library = getLibrary( "libBuildGUI.so" );
+#ifndef WNT
+       library = getLibrary( "libBuildGUI.so" );
+#else
+       library = getLibrary( "BuildGUI.dll" );
+#endif
   }
   else if( id == 5011 ||  // MENU BOOLEAN - FUSE
           id == 5012 ||  // MENU BOOLEAN - COMMON
           id == 5013 ||  // MENU BOOLEAN - CUT
           id == 5014 ) { // MENU BOOLEAN - SECTION
-    library = getLibrary( "libBooleanGUI.so" );
+#ifndef WNT
+       library = getLibrary( "libBooleanGUI.so" );
+#else
+       library = getLibrary( "BooleanGUI.dll" );
+#endif
   }
   else if( id == 5021 ||  // MENU TRANSFORMATION - TRANSLATION
           id == 5022 ||  // MENU TRANSFORMATION - ROTATION
@@ -429,14 +466,22 @@ void GeometryGUI::OnGUIEvent( int id )
           id == 5026 ||  // MENU TRANSFORMATION - OFFSET
           id == 5027 ||  // MENU TRANSFORMATION - MULTI-TRANSLATION
           id == 5028 ) { // MENU TRANSFORMATION - MULTI-ROTATION
-    library = getLibrary( "libTransformationGUI.so" );
+#ifndef WNT
+       library = getLibrary( "libTransformationGUI.so" );
+#else
+       library = getLibrary( "TransformationGUI.dll" );
+#endif
   }
   else if( id == 503 ||   // MENU OPERATION - PARTITION
           id == 504 ||   // MENU OPERATION - ARCHIMEDE
           id == 505 ||   // MENU OPERATION - FILLET
           id == 506 ||   // MENU OPERATION - CHAMFER  
           id == 507 ) {  // MENU OPERATION - CLIPPING RANGE
-    library = getLibrary( "libOperationGUI.so" );
+#ifndef WNT
+       library = getLibrary( "libOperationGUI.so" );
+#else
+       library = getLibrary( "OperationGUI.dll" );
+#endif
   }
   else if( id == 601 ||   // MENU REPAIR - SEWING
           id == 603 ||   // MENU REPAIR - SUPPRESS FACES
@@ -448,7 +493,11 @@ void GeometryGUI::OnGUIEvent( int id )
            id == 609 ||   // MENU REPAIR - FREE BOUNDARIES
            id == 610 ||   // MENU REPAIR - FREE FACES
           id == 602 ) {  // MENU REPAIR - GLUE FACES
-    library = getLibrary( "libRepairGUI.so" );
+#ifndef WNT
+       library = getLibrary( "libRepairGUI.so" );
+#else
+       library = getLibrary( "RepairGUI.dll" );
+#endif
   }
   else if( id == 701   ||  // MENU MEASURE - PROPERTIES
           id == 702   ||  // MENU MEASURE - CDG
@@ -460,19 +509,31 @@ void GeometryGUI::OnGUIEvent( int id )
           id == 707   ||  // MENU MEASURE - CHECK
           id == 7072  ||  // MENU MEASURE - CHECK COMPOUND OF BLOCKS
           id == 708 ) {  // MENU MEASURE - POINT COORDINATES
-    library = getLibrary( "libMeasureGUI.so" );
+#ifndef WNT
+       library = getLibrary( "libMeasureGUI.so" );
+#else
+       library = getLibrary( "MeasureGUI.dll" );
+#endif
   }
   else if( id == 800  ||  // MENU GROUP - CREATE
           id == 8001 ||  // POPUP MENU - CREATE GROUP
           id == 801 ) {  // MENU GROUP - EDIT
-    library = getLibrary( "libGroupGUI.so" );
+#ifndef WNT
+       library = getLibrary( "libGroupGUI.so" );
+#else
+       library = getLibrary( "GroupGUI.dll" );
+#endif
   }
   else if( id == 9999  ||  // MENU BLOCKS - HEXAHEDRAL SOLID
            id == 9998  ||  // MENU BLOCKS - MULTI-TRANSFORMATION
            id == 9997  ||  // MENU BLOCKS - QUADRANGLE FACE
            id == 99991 ||  // MENU BLOCKS - PROPAGATE
            id == 9995 ) { // MENU BLOCKS - EXPLODE ON BLOCKS
-    library = getLibrary( "libBlocksGUI.so" );
+#ifndef WNT
+       library = getLibrary( "libBlocksGUI.so" );
+#else
+       library = getLibrary( "BlocksGUI.dll" );
+#endif
   }
 
   // call method of corresponding GUI library
index fd24821261b4841aa6c7a67fa4abcc32b1422fb9..aced45d1a421f04b531ef03c1dd6af47c45c6109 100644 (file)
@@ -639,6 +639,9 @@ QString GEOMToolsGUI::getParentComponent( _PTR( SObject ) obj )
 //=====================================================================================
 extern "C"
 {
+#ifdef WNT
+       __declspec( dllexport )
+#endif
   GEOMGUI* GetLibGUI( GeometryGUI* parent )
   {
     return new GEOMToolsGUI( parent );
index 44d4c23b6735b13a899c79524f2a8503296d2cca..0a2e9dc83e1210f03c4b599185ad2dffb1f4ab72 100644 (file)
@@ -852,6 +852,9 @@ GEOM::GEOM_Object_ptr GEOM_Gen_i::GetObject (CORBA::Long theStudyID, const char*
 //=====================================================================================
 extern "C"
 {
+#ifdef WNT
+       __declspec( dllexport )
+#endif
   PortableServer::ObjectId * GEOMEngine_factory(CORBA::ORB_ptr orb,
                                                PortableServer::POA_ptr poa,
                                                PortableServer::ObjectId * contId,
index e05be81ca18828858b81d4c749e4c4eea97961f2..4d52198f53276c40007616adec1307835912aeef 100644 (file)
@@ -26,7 +26,6 @@
 //  Module : GEOM
 //  $Header$
 
-using namespace std;
 #include "GenerationGUI.h"
 
 #include "SUIT_Session.h"
@@ -37,6 +36,8 @@ using namespace std;
 #include "GenerationGUI_FillingDlg.h"   // Method FILLING
 #include "GenerationGUI_PipeDlg.h"      // Method PIPE
 
+using namespace std;
+
 GenerationGUI* GenerationGUI::myGUIObject = 0;
 
 //=======================================================================
@@ -101,6 +102,9 @@ bool GenerationGUI::OnGUIEvent( int theCommandID, SUIT_Desktop* parent )
 //=====================================================================================
 extern "C"
 {
+#ifdef WNT
+       __declspec( dllexport )
+#endif
   GEOMGUI* GetLibGUI(GeometryGUI* parent)
   {
     return GenerationGUI::GetGenerationGUI(parent);
index 317b2e20ae7561c5b7d5a84eac6f153b47518b68..e7a489013847d74ca140d89e5117dd30c739552e 100644 (file)
@@ -142,6 +142,9 @@ bool GroupGUI::OnGUIEvent( int theCommandID, SUIT_Desktop* parent )
 //=====================================================================================
 extern "C"
 {
+#ifdef WNT
+       __declspec( dllexport )
+#endif
   GEOMGUI* GetLibGUI(GeometryGUI* p)
   {
     return GroupGUI::GetGroupGUI(p);
index a989d9ae8c107f1b67b37911e9e6b757ff6177af..b49f9eed5f8c3939e4e795568ffc22cee10c7334 100644 (file)
@@ -138,6 +138,9 @@ bool MeasureGUI::OnGUIEvent( int theCommandID, SUIT_Desktop* parent )
 //=====================================================================================
 extern "C"
 {
+#ifdef WNT
+       __declspec( dllexport )
+#endif
   GEOMGUI* GetLibGUI( GeometryGUI* parent )
   {
     return MeasureGUI::GetMeasureGUI( parent );
index 43e5a7ade17694371668105461ea5790ddc8115a..a4da9046c34db9dc6da4d5352ffc98b26a14dab0 100644 (file)
 
 class MeasureGUI_1Sel6LineEdit_QTD;
 
+#if defined WNT && defined MEASUREGUI_EXPORTS
+#define MEASUREGUI_EXPORT __declspec( dllexport )
+#else
+#define MEASUREGUI_EXPORT
+#endif
+
 //=================================================================================
 // class    : DialogBox_PROPERTIES
 // purpose  :
 //=================================================================================
-class MeasureGUI_BndBoxDlg : public MeasureGUI_Skeleton
+class MEASUREGUI_EXPORT MeasureGUI_BndBoxDlg : public MeasureGUI_Skeleton
 { 
     Q_OBJECT
 
index bab31e6ea164505dd3879e882ea4aecf08c95cb3..1cee7d35762f123fe71981f423861b6185b7f81c 100644 (file)
 
 class MeasureGUI_1Sel3LineEdit_QTD;
 
+#if defined WNT && defined MEASUREGUI_EXPORTS
+#define MEASUREGUI_EXPORT __declspec( dllexport )
+#else
+#define MEASUREGUI_EXPORT
+#endif
+
 //=================================================================================
 // class    : MeasureGUI_CenterMassDlg
 // purpose  :
 //=================================================================================
-class MeasureGUI_CenterMassDlg : public GEOMBase_Skeleton
+class MEASUREGUI_EXPORT MeasureGUI_CenterMassDlg : public GEOMBase_Skeleton
 {
     Q_OBJECT
 
index 6f733eaa9d3457afd6129625c4abd18ae3dc7676..0038dcb4ed06b3bb116d6616f3e4d57a06d7bdc8 100644 (file)
@@ -35,11 +35,17 @@ class MeasureGUI_1Sel1TextView_QTD;
 class QListBox;
 class QLabel;
 
+#if defined WNT && defined MEASUREGUI_EXPORTS
+#define MEASUREGUI_EXPORT __declspec( dllexport )
+#else
+#define MEASUREGUI_EXPORT
+#endif
+
 //=================================================================================
 // class    : MeasureGUI_CheckCompoundOfBlocksDlg
 // purpose  :
 //=================================================================================
-class MeasureGUI_CheckCompoundOfBlocksDlg : public MeasureGUI_Skeleton
+class MEASUREGUI_EXPORT MeasureGUI_CheckCompoundOfBlocksDlg : public MeasureGUI_Skeleton
 {
     Q_OBJECT
 
index 9590666323178af256723b7f5c4836d13b2a05d7..60eb49538667cedab09f9a8943c3697c37b13878 100644 (file)
 
 class MeasureGUI_1Sel1TextView_QTD;
 
+#if defined WNT && defined MEASUREGUI_EXPORTS
+#define MEASUREGUI_EXPORT __declspec( dllexport )
+#else
+#define MEASUREGUI_EXPORT
+#endif
+
 //=================================================================================
 // class    : MeasureGUI_CheckShapeDlg
 // purpose  :
 //=================================================================================
-class MeasureGUI_CheckShapeDlg : public MeasureGUI_Skeleton
+class MEASUREGUI_EXPORT MeasureGUI_CheckShapeDlg : public MeasureGUI_Skeleton
 {
     Q_OBJECT
 
index bb935c2fae0f68f94a2ede424cbed1ad7040ffe8..98d382f6f62dc6dee288ae0b48d35a2b652ecb28 100644 (file)
 class MeasureGUI_2Sel1LineEdit_QTD;
 class gp_Pnt;
 
+#if defined WNT && defined MEASUREGUI_EXPORTS
+#define MEASUREGUI_EXPORT __declspec( dllexport )
+#else
+#define MEASUREGUI_EXPORT
+#endif
 
 //=================================================================================
 // class    : MeasureGUI_DistanceDlg
 // purpose  :
 //=================================================================================
-class MeasureGUI_DistanceDlg : public MeasureGUI_Skeleton
+class MEASUREGUI_EXPORT MeasureGUI_DistanceDlg : public MeasureGUI_Skeleton
 { 
     Q_OBJECT
 
index f636d1263811f1e00a21b8a6524105878f8b8889..2ccf8320354eb302e4d59d70ad1baa80883accc0 100644 (file)
@@ -35,12 +35,18 @@ class MeasureGUI_1Sel12LineEdit_QTD;
 class gp_XYZ;
 class gp_Mat;
 
+#if defined WNT && defined MEASUREGUI_EXPORTS
+#define MEASUREGUI_EXPORT __declspec( dllexport )
+#else
+#define MEASUREGUI_EXPORT
+#endif
+
 //=================================================================================
 // class    : MeasureGUI_InertiaDlg
 // purpose  : Dialog for displaying moment of inertia
 //=================================================================================
 
-class MeasureGUI_InertiaDlg : public MeasureGUI_Skeleton
+class MEASUREGUI_EXPORT MeasureGUI_InertiaDlg : public MeasureGUI_Skeleton
 { 
     Q_OBJECT
 
index e72d365e4e4cfdc54d3c4819d9318b6b4167813c..13c0733e181c0ff910d3c84d2b0c34a92b257b2c 100644 (file)
 
 class  MeasureGUI_1Sel6LineEdit_QTD;
 
+#if defined WNT && defined MEASUREGUI_EXPORTS
+#define MEASUREGUI_EXPORT __declspec( dllexport )
+#else
+#define MEASUREGUI_EXPORT
+#endif
+
 //=================================================================================
 // class    : DialogBox_PROPERTIES
 // purpose  :
 //=================================================================================
-class MeasureGUI_MaxToleranceDlg : public MeasureGUI_Skeleton
+class MEASUREGUI_EXPORT MeasureGUI_MaxToleranceDlg : public MeasureGUI_Skeleton
 { 
     Q_OBJECT
 
index 5480010bf14ce03cea1496c56a15fce0b69d9e0b..f26853b9ac064a476b6978276e1b798d64272069 100644 (file)
 
 class QLineEdit;
 
+#if defined WNT && defined MEASUREGUI_EXPORTS
+#define MEASUREGUI_EXPORT __declspec( dllexport )
+#else
+#define MEASUREGUI_EXPORT
+#endif
+
 //=================================================================================
 // class    : MeasureGUI_PointDlg
 // purpose  : Dialog for displaying point coordinates
 //=================================================================================
 
-class MeasureGUI_PointDlg : public MeasureGUI_Skeleton
+class MEASUREGUI_EXPORT MeasureGUI_PointDlg : public MeasureGUI_Skeleton
 { 
   Q_OBJECT
 
index f3cbdb2e3ddf6b11828b133e1f62388b88672f5a..e63a0ef56492072d16191c7a8d0a5cf5e234ff9f 100644 (file)
 #include "MeasureGUI_Skeleton.h"
 class MeasureGUI_1Sel3LineEdit_QTD;
 
+#if defined WNT && defined MEASUREGUI_EXPORTS
+#define MEASUREGUI_EXPORT __declspec( dllexport )
+#else
+#define MEASUREGUI_EXPORT
+#endif
+
 //=================================================================================
 // class    : MeasureGUI_PropertiesDlg
 // purpose  : Dialog for displaying length, area and volume
 //=================================================================================
 
-class MeasureGUI_PropertiesDlg : public MeasureGUI_Skeleton
+class MEASUREGUI_EXPORT MeasureGUI_PropertiesDlg : public MeasureGUI_Skeleton
 { 
     Q_OBJECT
 
index 72aae55cff7b7d91acd351fbb4ad9ef95e3142ff..ebdf84be1d307006f7477f96d0e801c9196ceb38 100644 (file)
 
 class MeasureGUI_1Sel1TextView_QTD;
 
+#if defined WNT && defined MEASUREGUI_EXPORTS
+#define MEASUREGUI_EXPORT __declspec( dllexport )
+#else
+#define MEASUREGUI_EXPORT
+#endif
+
 //=================================================================================
 // class    : DialogBox_PROPERTIES
 // purpose  :
 //=================================================================================
-class MeasureGUI_WhatisDlg : public MeasureGUI_Skeleton
+class MEASUREGUI_EXPORT MeasureGUI_WhatisDlg : public MeasureGUI_Skeleton
 { 
     Q_OBJECT
 
index d9035a40fb42ff1985b61abd7c38f88508ef5ad6..6838a57d7d58839909672de2bb3deda2e402ebcf 100644 (file)
@@ -115,6 +115,9 @@ bool OperationGUI::OnGUIEvent( int theCommandID, SUIT_Desktop* parent )
 //=====================================================================================
 extern "C"
 {
+#ifdef WNT
+       __declspec( dllexport )
+#endif
   GEOMGUI* GetLibGUI(GeometryGUI* parent)
   {
     return OperationGUI::GetOperationGUI(parent);
index 081ac7ab9412f510045dd51c418677dfb9311b5c..49448108f31a7bea96c46d40a8882a35959af0f7 100644 (file)
@@ -128,6 +128,9 @@ bool PrimitiveGUI::OnGUIEvent(int theCommandID, SUIT_Desktop* parent)
 //=====================================================================================
 extern "C"
 {
+#ifdef WNT
+       __declspec( dllexport )
+#endif
   GEOMGUI* GetLibGUI( GeometryGUI* parent )
   {
     return PrimitiveGUI::GetPrimitiveGUI( parent );
index df2eeba6338863525ff73b142ae3b86c22f9eceb..fe3d7b27c0298d4d61dc9446beaae8771ada5b63 100644 (file)
@@ -136,6 +136,9 @@ bool RepairGUI::OnGUIEvent(int theCommandID, SUIT_Desktop* parent)
 //=====================================================================================
 extern "C"
 {
+#ifdef WNT
+       __declspec( dllexport )
+#endif
   GEOMGUI* GetLibGUI( GeometryGUI* parent )
   {
     return RepairGUI::GetRepairGUI( parent );
index 2c8b97a73082f59bcc7d625bfc059cb04613a840..84c79078f87a6613027b6628fc923f36293d40e2 100644 (file)
@@ -146,6 +146,9 @@ bool TransformationGUI::OnGUIEvent(int theCommandID, SUIT_Desktop* parent)
 //=====================================================================================
 extern "C"
 {
+#ifdef WNT
+       __declspec( dllexport )
+#endif
   GEOMGUI* GetLibGUI( GeometryGUI* parent )
   {
     return TransformationGUI::GetTransformationGUI( parent );