Windows porting

This commit is contained in:
szy 2005-08-23 13:10:06 +00:00
parent d7ed319c3f
commit e22560c4dc
27 changed files with 108 additions and 58 deletions

View File

@ -26,7 +26,6 @@
// Module : GEOM // Module : GEOM
// $Header$ // $Header$
using namespace std;
#include "BuildGUI_FaceDlg.h" #include "BuildGUI_FaceDlg.h"
#include "GEOMImpl_Types.hxx" #include "GEOMImpl_Types.hxx"
@ -38,6 +37,8 @@ using namespace std;
#include <qcheckbox.h> #include <qcheckbox.h>
#include <qlabel.h> #include <qlabel.h>
using namespace std;
//================================================================================= //=================================================================================
// class : BuildGUI_FaceDlg() // class : BuildGUI_FaceDlg()
// purpose : Constructs a BuildGUI_FaceDlg which is a child of 'parent', with the // purpose : Constructs a BuildGUI_FaceDlg which is a child of 'parent', with the

View File

@ -63,7 +63,6 @@ private slots:
void ClickOnOk(); void ClickOnOk();
bool ClickOnApply(); bool ClickOnApply();
void SetEditCurrentArgument(); void SetEditCurrentArgument();
void LineEditReturnPressed();
void SelectionIntoArgument(); void SelectionIntoArgument();
void ActivateThisDialog(); void ActivateThisDialog();

View File

@ -64,7 +64,6 @@ private slots:
void ClickOnOk(); void ClickOnOk();
bool ClickOnApply(); bool ClickOnApply();
void SetEditCurrentArgument(); void SetEditCurrentArgument();
void LineEditReturnPressed();
void SelectionIntoArgument(); void SelectionIntoArgument();
void ActivateThisDialog(); void ActivateThisDialog();
void EnableNameField(bool toEnable); void EnableNameField(bool toEnable);

View File

@ -21,7 +21,13 @@ class QListViewItem;
class QPushButton; class QPushButton;
class QSpinBox; class QSpinBox;
class DlgRef_1List1Spin1Btn_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_1List1Spin1Btn_QTD : public QWidget
{ {
Q_OBJECT Q_OBJECT

View File

@ -20,7 +20,13 @@ class QLabel;
class QLineEdit; class QLineEdit;
class QPushButton; class QPushButton;
class DlgRef_1Sel1Check_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_1Sel1Check_QTD : public QWidget
{ {
Q_OBJECT Q_OBJECT

View File

@ -32,7 +32,13 @@
#include "DlgRef_1Sel1Spin1Check_QTD.h" #include "DlgRef_1Sel1Spin1Check_QTD.h"
#include "DlgRef_SpinBox.h" #include "DlgRef_SpinBox.h"
class DlgRef_1Sel1Spin1Check : public DlgRef_1Sel1Spin1Check_QTD #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_1Sel1Spin1Check : public DlgRef_1Sel1Spin1Check_QTD
{ {
Q_OBJECT Q_OBJECT

View File

@ -13,7 +13,13 @@
class QGridLayout; class QGridLayout;
class DlgRef_1Sel_Ext : public DlgRef_1Sel_QTD #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_1Sel_Ext : public DlgRef_1Sel_QTD
{ {
Q_OBJECT Q_OBJECT

View File

@ -32,7 +32,13 @@
#include "DlgRef_2Sel2Spin1Check_QTD.h" #include "DlgRef_2Sel2Spin1Check_QTD.h"
#include "DlgRef_SpinBox.h" #include "DlgRef_SpinBox.h"
class DlgRef_2Sel2Spin1Check : public DlgRef_2Sel2Spin1Check_QTD #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_2Sel2Spin1Check : public DlgRef_2Sel2Spin1Check_QTD
{ {
Q_OBJECT Q_OBJECT

View File

@ -32,7 +32,13 @@
#include "DlgRef_2Sel4Spin1Check_QTD.h" #include "DlgRef_2Sel4Spin1Check_QTD.h"
#include "DlgRef_SpinBox.h" #include "DlgRef_SpinBox.h"
class DlgRef_2Sel4Spin1Check : public DlgRef_2Sel4Spin1Check_QTD #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_2Sel4Spin1Check : public DlgRef_2Sel4Spin1Check_QTD
{ {
Q_OBJECT Q_OBJECT

View File

@ -32,7 +32,13 @@
#include "DlgRef_3Sel3Spin1Check_QTD.h" #include "DlgRef_3Sel3Spin1Check_QTD.h"
#include "DlgRef_SpinBox.h" #include "DlgRef_SpinBox.h"
class DlgRef_3Sel3Spin1Check : public DlgRef_3Sel3Spin1Check_QTD #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_3Sel3Spin1Check : public DlgRef_3Sel3Spin1Check_QTD
{ {
Q_OBJECT Q_OBJECT

View File

@ -32,7 +32,13 @@
#include "DlgRef_3Sel4Spin2Check_QTD.h" #include "DlgRef_3Sel4Spin2Check_QTD.h"
#include "DlgRef_SpinBox.h" #include "DlgRef_SpinBox.h"
class DlgRef_3Sel4Spin2Check : public DlgRef_3Sel4Spin2Check_QTD #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_3Sel4Spin2Check : public DlgRef_3Sel4Spin2Check_QTD
{ {
Q_OBJECT Q_OBJECT

View File

@ -22,7 +22,13 @@ class QPushButton;
class QCheckBox; class QCheckBox;
class QPushButton; class QPushButton;
class DlgRef_4Sel1List1Check_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_4Sel1List1Check_QTD : public QWidget
{ {
Q_OBJECT Q_OBJECT

View File

@ -21,22 +21,13 @@ class QLineEdit;
class QPushButton; class QPushButton;
class QRadioButton; class QRadioButton;
#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
#if defined DLGREF_EXPORTS #define DLGREF_WNT_EXPORT __declspec( dllexport )
#if defined WIN32
#define DLGREF_EXPORT __declspec( dllexport )
#else #else
#define DLGREF_EXPORT #define DLGREF_WNT_EXPORT
#endif
#else
#if defined WNT
#define DLGREF_EXPORT __declspec( dllimport )
#else
#define DLGREF_EXPORT
#endif
#endif #endif
class DLGREF_EXPORT DlgRef_Skeleton_QTD : public QDialog class DLGREF_WNT_EXPORT DlgRef_Skeleton_QTD : public QDialog
{ {
Q_OBJECT Q_OBJECT

View File

@ -58,8 +58,12 @@ class Prs3d_Presentation;
class SALOME_InteractiveObject; class SALOME_InteractiveObject;
class TopoDS_Shape; class TopoDS_Shape;
#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
class GEOM_AISShape : public SALOME_AISShape { #define OBJECT_WNT_EXPORT __declspec( dllexport )
#else
#define OBJECT_WNT_EXPORT
#endif
class OBJECT_WNT_EXPORT GEOM_AISShape : public SALOME_AISShape {
public: public:
@ -81,27 +85,27 @@ public:
// } // }
// Methods PUBLIC // Methods PUBLIC
// //
Standard_EXPORT GEOM_AISShape(const TopoDS_Shape& shape, const Standard_CString aName); GEOM_AISShape(const TopoDS_Shape& shape, const Standard_CString aName);
Standard_EXPORT Standard_Boolean hasIO() ; Standard_Boolean hasIO() ;
Standard_EXPORT void setIO(const Handle(SALOME_InteractiveObject)& name) ; void setIO(const Handle(SALOME_InteractiveObject)& name) ;
Standard_EXPORT void setName(const Standard_CString aName) ; void setName(const Standard_CString aName) ;
Standard_EXPORT Standard_CString getName() ; Standard_CString getName() ;
Standard_EXPORT Handle_SALOME_InteractiveObject getIO() ; Handle_SALOME_InteractiveObject getIO() ;
Standard_EXPORT void highlightSubShapes(const TColStd_IndexedMapOfInteger& aIndexMap, const Standard_Boolean aHighlight ); void highlightSubShapes(const TColStd_IndexedMapOfInteger& aIndexMap, const Standard_Boolean aHighlight );
Standard_EXPORT ~GEOM_AISShape(); ~GEOM_AISShape();
Standard_EXPORT void SetTransparency(const Standard_Real aValue); void SetTransparency(const Standard_Real aValue);
Standard_EXPORT void SetShadingColor(const Quantity_Color &aCol); void SetShadingColor(const Quantity_Color &aCol);
Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager, virtual void Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,
const Handle(Prs3d_Presentation)& aPresentation, const Handle(Prs3d_Presentation)& aPresentation,
const Standard_Integer aMode = 0) ; const Standard_Integer aMode = 0) ;
// Type management // Type management
// //
Standard_EXPORT friend Handle_Standard_Type& GEOM_AISShape_Type_(); friend Handle_Standard_Type& GEOM_AISShape_Type_();
Standard_EXPORT const Handle(Standard_Type)& DynamicType() const; const Handle(Standard_Type)& DynamicType() const;
Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const; Standard_Boolean IsKind(const Handle(Standard_Type)&) const;
protected: protected:

View File

@ -26,7 +26,6 @@
// Module : GEOM // Module : GEOM
// $Header$ // $Header$
using namespace std;
#include "OperationGUI.h" #include "OperationGUI.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"
@ -43,6 +42,8 @@ using namespace std;
#include "OperationGUI_ClippingDlg.h" #include "OperationGUI_ClippingDlg.h"
using namespace std;
OperationGUI* OperationGUI::myGUIObject = 0; OperationGUI* OperationGUI::myGUIObject = 0;
//======================================================================= //=======================================================================

View File

@ -25,7 +25,6 @@
// Module : GEOM // Module : GEOM
// $Header$ // $Header$
using namespace std;
#include "OperationGUI_MaterialDlg.h" #include "OperationGUI_MaterialDlg.h"
#include "OperationGUI_PartitionDlg.h" #include "OperationGUI_PartitionDlg.h"
@ -39,6 +38,8 @@ using namespace std;
#include <qlistview.h> #include <qlistview.h>
#include <qspinbox.h> #include <qspinbox.h>
using namespace std;
//================================================================================= //=================================================================================
// class : OperationGUI_MaterialDlg() // class : OperationGUI_MaterialDlg()
// purpose : Constructs a OperationGUI_MaterialDlg which is a child of 'parent', with the // purpose : Constructs a OperationGUI_MaterialDlg which is a child of 'parent', with the

View File

@ -26,7 +26,6 @@
// Module : GEOM // Module : GEOM
// $Header$ // $Header$
using namespace std;
#include "RepairGUI_CloseContourDlg.h" #include "RepairGUI_CloseContourDlg.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
@ -42,6 +41,8 @@ using namespace std;
#include <qlabel.h> #include <qlabel.h>
using namespace std;
//================================================================================= //=================================================================================
// class : RepairGUI_CloseContourDlg() // class : RepairGUI_CloseContourDlg()
// purpose : Constructs a RepairGUI_CloseContourDlg which is a child of 'parent', with the // purpose : Constructs a RepairGUI_CloseContourDlg which is a child of 'parent', with the

View File

@ -26,7 +26,6 @@
// Module : GEOM // Module : GEOM
// $Header$ // $Header$
using namespace std;
#include "RepairGUI_DivideEdgeDlg.h" #include "RepairGUI_DivideEdgeDlg.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
@ -40,6 +39,8 @@ using namespace std;
#include <qlabel.h> #include <qlabel.h>
using namespace std;
//================================================================================= //=================================================================================
// class : RepairGUI_DivideEdgeDlg() // class : RepairGUI_DivideEdgeDlg()
// purpose : Constructs a RepairGUI_DivideEdgeDlg which is a child of 'parent', with the // purpose : Constructs a RepairGUI_DivideEdgeDlg which is a child of 'parent', with the

View File

@ -26,7 +26,6 @@
// Module : GEOM // Module : GEOM
// $Header$ // $Header$
using namespace std;
#include "RepairGUI_FreeFacesDlg.h" #include "RepairGUI_FreeFacesDlg.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
@ -56,6 +55,7 @@ using namespace std;
#define MARGIN 10 #define MARGIN 10
#define MIN_WIDTH 200 #define MIN_WIDTH 200
using namespace std;
//================================================================================= //=================================================================================
// class : RepairGUI_FreeFacesDlg() // class : RepairGUI_FreeFacesDlg()

View File

@ -26,7 +26,6 @@
// Module : GEOM // Module : GEOM
// $Header$ // $Header$
using namespace std;
#include "RepairGUI_GlueDlg.h" #include "RepairGUI_GlueDlg.h"
#include "DlgRef_1Sel_Ext.h" #include "DlgRef_1Sel_Ext.h"
#include "GEOMImpl_Types.hxx" #include "GEOMImpl_Types.hxx"
@ -48,11 +47,10 @@ using namespace std;
#include <qapplication.h> #include <qapplication.h>
#include <qlabel.h> #include <qlabel.h>
using namespace std;
#define DEFAULT_TOLERANCE_VALUE 1e-07 #define DEFAULT_TOLERANCE_VALUE 1e-07
//================================================================================= //=================================================================================
// class : RepairGUI_GlueDlg() // class : RepairGUI_GlueDlg()
// purpose : Constructs a RepairGUI_GlueDlg which is a child of 'parent', with the // purpose : Constructs a RepairGUI_GlueDlg which is a child of 'parent', with the

View File

@ -26,7 +26,6 @@
// Module : GEOM // Module : GEOM
// $Header$ // $Header$
using namespace std;
#include "RepairGUI_RemoveHolesDlg.h" #include "RepairGUI_RemoveHolesDlg.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
@ -41,6 +40,7 @@ using namespace std;
#include <TopAbs.hxx> #include <TopAbs.hxx>
#include <TColStd_MapOfInteger.hxx> #include <TColStd_MapOfInteger.hxx>
using namespace std;
//================================================================================= //=================================================================================
// class : RepairGUI_RemoveHolesDlg() // class : RepairGUI_RemoveHolesDlg()

View File

@ -26,7 +26,6 @@
// Module : GEOM // Module : GEOM
// $Header$ // $Header$
using namespace std;
#include "RepairGUI_RemoveIntWiresDlg.h" #include "RepairGUI_RemoveIntWiresDlg.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
@ -39,6 +38,7 @@ using namespace std;
#include <TopAbs.hxx> #include <TopAbs.hxx>
#include <TColStd_MapOfInteger.hxx> #include <TColStd_MapOfInteger.hxx>
using namespace std;
//================================================================================= //=================================================================================
// class : RepairGUI_RemoveIntWiresDlg() // class : RepairGUI_RemoveIntWiresDlg()

View File

@ -26,7 +26,6 @@
// Module : GEOM // Module : GEOM
// $Header$ // $Header$
using namespace std;
#include "RepairGUI_SewingDlg.h" #include "RepairGUI_SewingDlg.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
@ -42,6 +41,7 @@ using namespace std;
#define DEFAULT_TOLERANCE_VALUE 1e-07 #define DEFAULT_TOLERANCE_VALUE 1e-07
using namespace std;
//================================================================================= //=================================================================================
// class : RepairGUI_SewingDlg() // class : RepairGUI_SewingDlg()

View File

@ -26,8 +26,6 @@
// Module : GEOM // Module : GEOM
// $Header$ // $Header$
using namespace std;
#include "RepairGUI_ShapeProcessDlg.h" #include "RepairGUI_ShapeProcessDlg.h"
#include "GEOMImpl_Types.hxx" #include "GEOMImpl_Types.hxx"
@ -45,6 +43,7 @@ using namespace std;
#include <qlabel.h> #include <qlabel.h>
#include <qmessagebox.h> #include <qmessagebox.h>
using namespace std;
//================================================================================= //=================================================================================
// class : RepairGUI_ShapeProcessDlg() // class : RepairGUI_ShapeProcessDlg()

View File

@ -134,7 +134,6 @@ private slots:
void lineEditReturnPressed(); void lineEditReturnPressed();
void selectionChanged(); void selectionChanged();
void selectClicked(); void selectClicked();
void activateSelection();
void operationChanged(); void operationChanged();
void advOptionToggled(bool); void advOptionToggled(bool);
}; };

View File

@ -26,7 +26,6 @@
// Module : GEOM // Module : GEOM
// $Header$ // $Header$
using namespace std;
#include "RepairGUI_SuppressFacesDlg.h" #include "RepairGUI_SuppressFacesDlg.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
@ -40,6 +39,8 @@ using namespace std;
#include <qlabel.h> #include <qlabel.h>
using namespace std;
//================================================================================= //=================================================================================
// class : RepairGUI_SuppressFacesDlg() // class : RepairGUI_SuppressFacesDlg()
// purpose : Constructs a RepairGUI_SuppressFacesDlg which is a child of 'parent', with the // purpose : Constructs a RepairGUI_SuppressFacesDlg which is a child of 'parent', with the

View File

@ -26,7 +26,6 @@
// Module : GEOM // Module : GEOM
// $Header$ // $Header$
using namespace std;
#include "TransformationGUI.h" #include "TransformationGUI.h"
#include "GeometryGUI.h" #include "GeometryGUI.h"
@ -42,6 +41,8 @@ using namespace std;
#include "TransformationGUI_OffsetDlg.h" // Method OFFSET #include "TransformationGUI_OffsetDlg.h" // Method OFFSET
#include "TransformationGUI_PositionDlg.h" // Method POSITION #include "TransformationGUI_PositionDlg.h" // Method POSITION
using namespace std;
TransformationGUI* TransformationGUI::myGUIObject = 0; TransformationGUI* TransformationGUI::myGUIObject = 0;
//======================================================================= //=======================================================================