From a249172640019de81806329415db1ed690be0448 Mon Sep 17 00:00:00 2001 From: sln Date: Mon, 31 Oct 2005 13:34:51 +0000 Subject: [PATCH] LightApp_Export added to compile on WNT --- src/LightApp/LightApp_DataObject.h | 2 +- src/LightApp/LightApp_DataOwner.h | 3 ++- src/LightApp/LightApp_DataSubOwner.h | 3 ++- src/LightApp/LightApp_Dialog.h | 3 ++- src/LightApp/LightApp_Driver.cxx | 4 ++++ src/LightApp/LightApp_Driver.h | 8 ++++---- src/LightApp/LightApp_GLSelector.cxx | 3 ++- src/LightApp/LightApp_ModuleDlg.cxx | 5 ++++- src/LightApp/LightApp_ModuleDlg.h | 3 ++- src/LightApp/LightApp_NameDlg.cxx | 11 +++++++---- src/LightApp/LightApp_NameDlg.h | 3 ++- src/LightApp/LightApp_Operation.h | 3 ++- src/LightApp/LightApp_RootObject.h | 10 +++++++++- src/LightApp/LightApp_Selection.h | 3 ++- src/LightApp/LightApp_Study.h | 18 +++++++----------- src/LightApp/LightApp_SwitchOp.h | 3 ++- src/LightApp/LightApp_VTKSelector.h | 2 +- 17 files changed, 55 insertions(+), 32 deletions(-) diff --git a/src/LightApp/LightApp_DataObject.h b/src/LightApp/LightApp_DataObject.h index 7cbdef947..0d2e9cd0a 100644 --- a/src/LightApp/LightApp_DataObject.h +++ b/src/LightApp/LightApp_DataObject.h @@ -10,7 +10,7 @@ class LightApp_Study; /*!Description : Data Object has empty entry so it's children must redefine metod entry() and return some unique string*/ - +// to do : decomment virtual inheritance class LIGHTAPP_EXPORT LightApp_DataObject : public virtual CAM_DataObject { class Key; diff --git a/src/LightApp/LightApp_DataOwner.h b/src/LightApp/LightApp_DataOwner.h index f4d63a7e4..6ec43e08d 100644 --- a/src/LightApp/LightApp_DataOwner.h +++ b/src/LightApp/LightApp_DataOwner.h @@ -2,13 +2,14 @@ #ifndef LIGHTAPP_DATAOWNER_H #define LIGHTAPP_DATAOWNER_H +#include "LightApp.h" #include "SUIT_DataOwner.h" #include "SALOME_InteractiveObject.hxx" /*! This class provide data owner objects. */ -class LightApp_DataOwner : public SUIT_DataOwner +class LIGHTAPP_EXPORT LightApp_DataOwner : public SUIT_DataOwner { public: LightApp_DataOwner( const Handle(SALOME_InteractiveObject)& theIO ); diff --git a/src/LightApp/LightApp_DataSubOwner.h b/src/LightApp/LightApp_DataSubOwner.h index 7090508da..1975c86a2 100644 --- a/src/LightApp/LightApp_DataSubOwner.h +++ b/src/LightApp/LightApp_DataSubOwner.h @@ -2,12 +2,13 @@ #ifndef LIGHTAPP_DATASUBOWNER_H #define LIGHTAPP_DATASUBOWNER_H +#include "LightApp.h" #include /*! Class provide sub owner. */ -class LightApp_DataSubOwner : public LightApp_DataOwner +class LIGHTAPP_EXPORT LightApp_DataSubOwner : public LightApp_DataOwner { public: LightApp_DataSubOwner( const QString&, const int ); diff --git a/src/LightApp/LightApp_Dialog.h b/src/LightApp/LightApp_Dialog.h index 1fb0302e1..b13a0f835 100644 --- a/src/LightApp/LightApp_Dialog.h +++ b/src/LightApp/LightApp_Dialog.h @@ -4,6 +4,7 @@ #ifndef LIGHTAPP_DIALOG_H #define LIGHTAPP_DIALOG_H +#include "LightApp.h" #include #include @@ -20,7 +21,7 @@ class SUIT_ResourceMgr; Class : LightApp_Dialog Description : Base class for all LightApp dialogs */ -class LightApp_Dialog : public QtxDialog +class LIGHTAPP_EXPORT LightApp_Dialog : public QtxDialog { Q_OBJECT diff --git a/src/LightApp/LightApp_Driver.cxx b/src/LightApp/LightApp_Driver.cxx index 9d407f95d..3ad379ca3 100644 --- a/src/LightApp/LightApp_Driver.cxx +++ b/src/LightApp/LightApp_Driver.cxx @@ -11,6 +11,10 @@ #include #include +#ifdef WIN32 +#include +#endif + /*! Constructor.*/ LightApp_Driver::LightApp_Driver() { diff --git a/src/LightApp/LightApp_Driver.h b/src/LightApp/LightApp_Driver.h index d556f5c5a..f58252c0f 100644 --- a/src/LightApp/LightApp_Driver.h +++ b/src/LightApp/LightApp_Driver.h @@ -1,11 +1,11 @@ #ifndef LIGHTAPP_DRIVER_H #define LIGHTAPP_DRIVER_H -#include "LightApp.h" +#include -#include "string.h" -#include "vector.h" -#include "map.h" +#include "string" +#include "vector" +#include "map" #ifdef WIN32 #pragma warning( disable:4251 ) diff --git a/src/LightApp/LightApp_GLSelector.cxx b/src/LightApp/LightApp_GLSelector.cxx index e448f70bc..b49ce51c1 100644 --- a/src/LightApp/LightApp_GLSelector.cxx +++ b/src/LightApp/LightApp_GLSelector.cxx @@ -12,7 +12,8 @@ LightApp_GLSelector::LightApp_GLSelector( GLViewer_Viewer2d* viewer, SUIT_Select myViewer( viewer ) { if ( myViewer ) - connect( myViewer, SIGNAL( selectionChanged() ), this, SLOT( onSelectionChanged() ) ); + connect( myViewer, SIGNAL( selectionChanged( SelectionChangeStatus ) ), + this, SLOT( onSelectionChanged() ) ); } /*!Destructor. Do nothing.*/ diff --git a/src/LightApp/LightApp_ModuleDlg.cxx b/src/LightApp/LightApp_ModuleDlg.cxx index f9f6d7865..1893a2f49 100644 --- a/src/LightApp/LightApp_ModuleDlg.cxx +++ b/src/LightApp/LightApp_ModuleDlg.cxx @@ -2,14 +2,17 @@ // Author : Michael Zorin (mzn) // Module : LightApp -#include "LightApp_ModuleDlg.h" +#include #include #include #include #include #include + +#ifndef WIN32 using namespace std; +#endif /*!Default icon*/ static const char* const default_icon[] = { diff --git a/src/LightApp/LightApp_ModuleDlg.h b/src/LightApp/LightApp_ModuleDlg.h index a844e89c9..9ac3cbba6 100644 --- a/src/LightApp/LightApp_ModuleDlg.h +++ b/src/LightApp/LightApp_ModuleDlg.h @@ -5,6 +5,7 @@ #ifndef LIGHTAPP_MODULEDLG_H #define LIGHTAPP_MODULEDLG_H +#include "LightApp.h" #include #include @@ -12,7 +13,7 @@ class QFrame; class QLabel; class QPushButton; -class LightApp_ModuleDlg : public QDialog +class LIGHTAPP_EXPORT LightApp_ModuleDlg : public QDialog { Q_OBJECT diff --git a/src/LightApp/LightApp_NameDlg.cxx b/src/LightApp/LightApp_NameDlg.cxx index 0b737ad37..3033cb572 100644 --- a/src/LightApp/LightApp_NameDlg.cxx +++ b/src/LightApp/LightApp_NameDlg.cxx @@ -2,17 +2,20 @@ // Author : Vadim SANDLER // $Header$ -#include "LightApp_NameDlg.h" -#include "SUIT_Application.h" -#include "SUIT_Desktop.h" -#include "SUIT_Tools.h" +#include +#include +#include +#include #include #include #include #include #include + +#ifndef WIN32 using namespace std; +#endif /*! Constructor diff --git a/src/LightApp/LightApp_NameDlg.h b/src/LightApp/LightApp_NameDlg.h index 6c48c756d..90eeca3c3 100644 --- a/src/LightApp/LightApp_NameDlg.h +++ b/src/LightApp/LightApp_NameDlg.h @@ -5,6 +5,7 @@ #ifndef LIGHTAPP_NAMEDLG_H #define LIGHTAPP_NAMEDLG_H +#include "LightApp.h" #include class QLineEdit; @@ -14,7 +15,7 @@ class QPushButton; // class : LightApp_NameDlg /*! purpose : Common dialog box class*/ //================================================================================= -class LightApp_NameDlg : public QDialog +class LIGHTAPP_EXPORT LightApp_NameDlg : public QDialog { Q_OBJECT diff --git a/src/LightApp/LightApp_Operation.h b/src/LightApp/LightApp_Operation.h index d2ab49477..4b07bd7b2 100755 --- a/src/LightApp/LightApp_Operation.h +++ b/src/LightApp/LightApp_Operation.h @@ -12,6 +12,7 @@ #ifndef LightApp_Operation_H #define LightApp_Operation_H +#include "LightApp.h" #include class LightApp_Module; @@ -31,7 +32,7 @@ class SUIT_Desktop; * * Base class for all operations (see SUIT_Operation for more description) */ -class LightApp_Operation : public SUIT_Operation +class LIGHTAPP_EXPORT LightApp_Operation : public SUIT_Operation { Q_OBJECT diff --git a/src/LightApp/LightApp_RootObject.h b/src/LightApp/LightApp_RootObject.h index 2176c0699..916030f27 100644 --- a/src/LightApp/LightApp_RootObject.h +++ b/src/LightApp/LightApp_RootObject.h @@ -17,7 +17,15 @@ class LIGHTAPP_EXPORT LightApp_RootObject : public SUIT_DataObject { public: LightApp_RootObject( LightApp_Study* study ) - : myStudy( study ) {} + : myStudy( study ) + { + // to do : to be removed + FILE* f = fopen( "d:\\temp\\SUIT.log", "a" ); + char str[ 255 ]; + sprintf( str, "LightApp_RootObject 0x%X \n", this ); + fputs( str, f ); + fclose( f ); + } virtual ~LightApp_RootObject() {} diff --git a/src/LightApp/LightApp_Selection.h b/src/LightApp/LightApp_Selection.h index a8be43dc9..68ff316f7 100644 --- a/src/LightApp/LightApp_Selection.h +++ b/src/LightApp/LightApp_Selection.h @@ -29,6 +29,7 @@ #ifndef LIGHTAPP_SELECTION_HeaderFile #define LIGHTAPP_SELECTION_HeaderFile +#include "LightApp.h" #include class LightApp_SelectionMgr; @@ -37,7 +38,7 @@ class LightApp_Study; class SUIT_ViewWindow; -class LightApp_Selection : public QtxPopupMgr::Selection +class LIGHTAPP_EXPORT LightApp_Selection : public QtxPopupMgr::Selection { public: LightApp_Selection(); diff --git a/src/LightApp/LightApp_Study.h b/src/LightApp/LightApp_Study.h index 403b1c2b2..0465028fb 100644 --- a/src/LightApp/LightApp_Study.h +++ b/src/LightApp/LightApp_Study.h @@ -1,19 +1,15 @@ #ifndef LIGHTAPP_STUDY_H #define LIGHTAPP_STUDY_H -#include "LightApp.h" -#include "LightApp_Driver.h" +#include +#include -#include "CAM_Study.h" -#include "CAM_DataModel.h" -#include "SUIT_Study.h" +#include +#include +#include -#include "string.h" -#include "vector.h" - -#ifdef WIN32 -#pragma warning( disable:4251 ) -#endif +#include "string" +#include "vector" class SUIT_Application; class CAM_DataModel; diff --git a/src/LightApp/LightApp_SwitchOp.h b/src/LightApp/LightApp_SwitchOp.h index ac1850e30..7c725ebf5 100755 --- a/src/LightApp/LightApp_SwitchOp.h +++ b/src/LightApp/LightApp_SwitchOp.h @@ -15,6 +15,7 @@ #ifndef LightApp_SwitchOp_H #define LightApp_SwitchOp_H +#include "LightApp.h" #include class LightApp_Module; @@ -38,7 +39,7 @@ class SUIT_Study; * operation is suspended and new operation activated. Module contains this class as a * field. Then module is created instance of this class created too. */ -class LightApp_SwitchOp : public QObject +class LIGHTAPP_EXPORT LightApp_SwitchOp : public QObject { Q_OBJECT diff --git a/src/LightApp/LightApp_VTKSelector.h b/src/LightApp/LightApp_VTKSelector.h index da3edd170..aab409f26 100644 --- a/src/LightApp/LightApp_VTKSelector.h +++ b/src/LightApp/LightApp_VTKSelector.h @@ -19,7 +19,7 @@ class SVTK_Viewer; /*! Provide salome vtk data owner list. */ -class LightApp_SVTKDataOwner : public LightApp_DataOwner +class LIGHTAPP_EXPORT LightApp_SVTKDataOwner : public LightApp_DataOwner { public: LightApp_SVTKDataOwner( const Handle(SALOME_InteractiveObject)& theIO, -- 2.39.2