First compiled version of GEOM sources

This commit is contained in:
abd 2006-03-16 11:25:11 +00:00
parent 0c9aa567ca
commit aa00566cfd
25 changed files with 184 additions and 99 deletions

View File

@ -30,9 +30,21 @@
#include <TopoDS_Shape.hxx>
#ifdef WNT
#include <SALOME_WNT.hxx>
#if defined BREPEXPORT_EXPORTS
#if defined WIN32
#define BREPEXPORT_EXPORT __declspec( dllexport )
#else
#define BREPEXPORT_EXPORT
#endif
#else
#if defined WIN32
#define BREPEXPORT_EXPORT __declspec( dllimport )
#else
#define BREPEXPORT_EXPORT
#endif
#endif
#else
#define SALOME_WNT_EXPORT
#define BREPEXPORT_EXPORT
#endif
//=============================================================================
@ -43,7 +55,7 @@
extern "C"
{
SALOME_WNT_EXPORT
BREPEXPORT_EXPORT
int Export(const TopoDS_Shape& theShape, const TCollection_AsciiString& theFileName)
{
MESSAGE("Export BREP into file " << theFileName.ToCString());

View File

@ -31,9 +31,21 @@
#include <TopoDS_Shape.hxx>
#ifdef WNT
#include <SALOME_WNT.hxx>
#if defined BREPIMPORT_EXPORTS
#if defined WIN32
#define BREPIMPORT_EXPORT __declspec( dllexport )
#else
#define BREPIMPORT_EXPORT
#endif
#else
#if defined WIN32
#define BREPIMPORT_EXPORT __declspec( dllimport )
#else
#define BREPIMPORT_EXPORT
#endif
#endif
#else
#define SALOME_WNT_EXPORT
#define BREPIMPORT_EXPORT
#endif
//=============================================================================
@ -44,7 +56,7 @@
extern "C"
{
SALOME_WNT_EXPORT
BREPIMPORT_EXPORT
TopoDS_Shape Import (const TCollection_AsciiString& theFileName,
TCollection_AsciiString& theError)
{

View File

@ -219,9 +219,7 @@ gp_Pnt BasicGUI::ConvertClickToPoint( int x, int y, Handle(V3d_View) aView)
//=====================================================================================
extern "C"
{
#ifdef WNT
__declspec( dllexport )
#endif
GEOM_BASICGUI_EXPORT
GEOMGUI* GetLibGUI( GeometryGUI* parent )
{
return BasicGUI::GetBasicGUI( parent );

View File

@ -29,21 +29,17 @@
#ifndef BASICGUI_H
#define BASICGUI_H
#include "GEOM_BasicGUI.hxx"
#include "GEOMGUI.h"
#include "GEOMBase.h"
#include <V3d_View.hxx>
#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
#define BASICGUI_WNT_EXPORT __declspec( dllexport )
#else
#define BASICGUI_WNT_EXPORT
#endif
//=================================================================================
// class : BasicGUI
// purpose :
//=================================================================================
class BasicGUI : public GEOMGUI
class GEOM_BASICGUI_EXPORT BasicGUI : public GEOMGUI
{
protected:
BasicGUI( GeometryGUI* parent ); // hide constructor to avoid direct creation

View File

@ -29,18 +29,16 @@
#ifndef DIALOGBOX_ARC_H
#define DIALOGBOX_ARC_H
#include "GEOM_BasicGUI.hxx"
#include "GEOMBase_Skeleton.h"
#include "DlgRef_3Sel_QTD.h"
#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
#define BASICGUI_WNT_EXPORT __declspec( dllexport )
#else
#define BASICGUI_WNT_EXPORT
#endif
//=================================================================================
// class : BasicGUI_ArcDlg
// purpose :
//=================================================================================
class BasicGUI_ArcDlg : public GEOMBase_Skeleton
class GEOM_BASICGUI_EXPORT BasicGUI_ArcDlg : public GEOMBase_Skeleton
{
Q_OBJECT

View File

@ -29,26 +29,19 @@
#ifndef DIALOGBOX_CIRCLE_H
#define DIALOGBOX_CIRCLE_H
#include "GEOM_BasicGUI.hxx"
#include "GEOMBase_Skeleton.h"
#include "DlgRef_2Sel1Spin.h"
#include "DlgRef_3Sel_QTD.h"
#include "BasicGUI.h"
//#include "GEOM_EdgeFilter.hxx"
//#include "GEOM_ShapeTypeFilter.hxx"
#include <gp_Dir.hxx>
#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
#define BASICGUI_WNT_EXPORT __declspec( dllexport )
#else
#define BASICGUI_WNT_EXPORT
#endif
//=================================================================================
// class : BasicGUI_CircleDlg
// purpose :
//=================================================================================
class BasicGUI_CircleDlg : public GEOMBase_Skeleton
class GEOM_BASICGUI_EXPORT BasicGUI_CircleDlg : public GEOMBase_Skeleton
{
Q_OBJECT

View File

@ -28,23 +28,19 @@
#ifndef BASICGUI_CURVE_H
#define BASICGUI_CURVE_H
#include "GEOM_BasicGUI.hxx"
#include "GEOMBase_Skeleton.h"
#include "DlgRef_1Sel_QTD.h"
#include "BasicGUI.h"
#include <list>
#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
#define BASICGUI_WNT_EXPORT __declspec( dllexport )
#else
#define BASICGUI_WNT_EXPORT
#endif
//#include "GEOM_ShapeTypeFilter.hxx"
//=================================================================================
// class : BasicGUI_CurveDlg
// purpose :
//=================================================================================
class BasicGUI_CurveDlg : public GEOMBase_Skeleton
class GEOM_BASICGUI_EXPORT BasicGUI_CurveDlg : public GEOMBase_Skeleton
{
Q_OBJECT

View File

@ -28,24 +28,18 @@
#ifndef BASICGUI_ELLIPSE_H
#define BASICGUI_ELLIPSE_H
#include "GEOM_BasicGUI.hxx"
#include "GEOMBase_Skeleton.h"
#include "DlgRef_2Sel2Spin.h"
#include "BasicGUI.h"
//#include "GEOM_ShapeTypeFilter.hxx"
//#include "GEOM_EdgeFilter.hxx"
#include <gp_Dir.hxx>
#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
#define BASICGUI_WNT_EXPORT __declspec( dllexport )
#else
#define BASICGUI_WNT_EXPORT
#endif
//=================================================================================
// class : BasicGUI_EllipseDlg
// purpose :
//=================================================================================
class BasicGUI_EllipseDlg : public GEOMBase_Skeleton
class GEOM_BASICGUI_EXPORT BasicGUI_EllipseDlg : public GEOMBase_Skeleton
{
Q_OBJECT

View File

@ -29,20 +29,16 @@
#ifndef DIALOGBOX_LINE_H
#define DIALOGBOX_LINE_H
#include "GEOM_BasicGUI.hxx"
#include "GEOMBase_Skeleton.h"
#include "DlgRef_2Sel_QTD.h"
#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
#define BASICGUI_WNT_EXPORT __declspec( dllexport )
#else
#define BASICGUI_WNT_EXPORT
#endif
//=================================================================================
// class : BasicGUI_LineDlg
// purpose :
//=================================================================================
class BasicGUI_LineDlg : public GEOMBase_Skeleton
class GEOM_BASICGUI_EXPORT BasicGUI_LineDlg : public GEOMBase_Skeleton
{
Q_OBJECT

View File

@ -29,6 +29,8 @@
#ifndef DIALOGBOX_Marker_H
#define DIALOGBOX_Marker_H
#include "GEOM_BasicGUI.hxx"
#include "GEOMBase_Skeleton.h"
#include "DlgRef_1Sel_QTD.h"
#include "DlgRef_3Sel_QTD.h"
@ -37,13 +39,7 @@
class DlgRef_SpinBox;
#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
#define BASICGUI_WNT_EXPORT __declspec( dllexport )
#else
#define BASICGUI_WNT_EXPORT
#endif
class BasicGUI_MarkerDlg : public GEOMBase_Skeleton
class GEOM_BASICGUI_EXPORT BasicGUI_MarkerDlg : public GEOMBase_Skeleton
{
Q_OBJECT

View File

@ -29,22 +29,18 @@
#ifndef DIALOGBOX_PLANE_H
#define DIALOGBOX_PLANE_H
#include "GEOM_BasicGUI.hxx"
#include "GEOMBase_Skeleton.h"
#include "DlgRef_1Sel1Spin.h"
#include "DlgRef_2Sel1Spin.h"
#include "DlgRef_3Sel1Spin.h"
#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
#define BASICGUI_WNT_EXPORT __declspec( dllexport )
#else
#define BASICGUI_WNT_EXPORT
#endif
//=================================================================================
// class : BasicGUI_PlaneDlg
// purpose :
//=================================================================================
class BasicGUI_PlaneDlg : public GEOMBase_Skeleton
class GEOM_BASICGUI_EXPORT BasicGUI_PlaneDlg : public GEOMBase_Skeleton
{
Q_OBJECT

View File

@ -29,6 +29,8 @@
#ifndef DIALOGBOX_POINT_H
#define DIALOGBOX_POINT_H
#include "GEOM_BasicGUI.hxx"
#include "GEOMBase_Skeleton.h"
#include "DlgRef_1Sel1Spin.h"
#include "DlgRef_3Spin.h"
@ -37,16 +39,11 @@
class QLineEdit;
class QGroupBox;
#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
#define BASICGUI_WNT_EXPORT __declspec( dllexport )
#else
#define BASICGUI_WNT_EXPORT
#endif
//=================================================================================
// class : BasicGUI_PointDlg
// purpose :
//=================================================================================
class BasicGUI_PointDlg : public GEOMBase_Skeleton
class GEOM_BASICGUI_EXPORT BasicGUI_PointDlg : public GEOMBase_Skeleton
{
Q_OBJECT

View File

@ -29,23 +29,19 @@
#ifndef DIALOGBOX_VECTOR_H
#define DIALOGBOX_VECTOR_H
#include "GEOM_BasicGUI.hxx"
#include "GEOMBase_Skeleton.h"
#include "DlgRef_2Sel_QTD.h"
#include "DlgRef_3Spin1Check.h"
#include "BasicGUI.h"
//#include "GEOM_ShapeTypeFilter.hxx"
#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
#define BASICGUI_WNT_EXPORT __declspec( dllexport )
#else
#define BASICGUI_WNT_EXPORT
#endif
//=================================================================================
// class : BasicGUI_VectorDlg
// purpose :
//=================================================================================
class BasicGUI_VectorDlg : public GEOMBase_Skeleton
class GEOM_BASICGUI_EXPORT BasicGUI_VectorDlg : public GEOMBase_Skeleton
{
Q_OBJECT

View File

@ -28,21 +28,18 @@
#ifndef DIALOGBOX_WORKINGPLANE_H
#define DIALOGBOX_WORKINGPLANE_H
#include "GEOM_BasicGUI.hxx"
#include "GEOMBase_Skeleton.h"
#include "DlgRef_1Sel_QTD.h"
#include "DlgRef_2Sel_QTD.h"
#include "DlgRef_3Check_QTD.h"
#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
#define BASICGUI_WNT_EXPORT __declspec( dllexport )
#else
#define BASICGUI_WNT_EXPORT
#endif
//=================================================================================
// class : BasicGUI_WorkingPlaneDlg
// purpose :
//=================================================================================
class BASICGUI_WNT_EXPORT BasicGUI_WorkingPlaneDlg : public GEOMBase_Skeleton
class GEOM_BASICGUI_EXPORT BASICGUI_WNT_EXPORT BasicGUI_WorkingPlaneDlg : public GEOMBase_Skeleton
{
Q_OBJECT

47
src/BasicGUI/GEOM_BasicGUI.hxx Executable file
View File

@ -0,0 +1,47 @@
// 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 : GEOM_BasicGUI.hxx
// Author : Alexander A. BORODIN
// Module : GEOM
#ifndef _GEOM_BasicGUI_HXX_
#define _GEOM_BasicGUI_HXX_
#ifdef WNT
#if defined BASICGUI_EXPORTS
#if defined WIN32
#define GEOM_BASICGUI_EXPORT __declspec( dllexport )
#else
#define GEOM_BASICGUI_EXPORT
#endif
#else
#if defined WIN32
#define GEOM_BASICGUI_EXPORT __declspec( dllimport )
#else
#define GEOM_BASICGUI_EXPORT
#endif
#endif
#else
#define GEOM_BASICGUI_EXPORT
#endif
#endif

View File

@ -62,7 +62,8 @@ LIB_MOC = \
BasicGUI_PlaneDlg.h \
BasicGUI_WorkingPlaneDlg.h \
BasicGUI_CurveDlg.h \
BasicGUI_MarkerDlg.h
BasicGUI_MarkerDlg.h \
GEOM_BasicGUI.hxx
LIB_CLIENT_IDL = SALOME_GenericObj.idl SALOME_Exception.idl SALOME_Component.idl

View File

@ -126,9 +126,7 @@ bool BlocksGUI::OnGUIEvent( int theCommandID, SUIT_Desktop* parent )
//=====================================================================================
extern "C"
{
#ifdef WNT
__declspec( dllexport )
#endif
GEOM_BLOCKSGUI_EXPORT
GEOMGUI* GetLibGUI( GeometryGUI* parent )
{
return BlocksGUI::GetBlocksGUI( parent );

View File

@ -28,13 +28,15 @@
#ifndef BLOCKSGUI_H
#define BLOCKSGUI_H
#include "GEOM_BlocksGUI.hxx"
#include "GEOMGUI.h"
//=================================================================================
// class : BlocksGUI
// purpose :
//=================================================================================
class BlocksGUI : public GEOMGUI
class GEOM_BLOCKSGUI_EXPORT BlocksGUI : public GEOMGUI
{
protected:
BlocksGUI( GeometryGUI* parent ); // hide constructor to avoid direct creation

View File

@ -28,6 +28,8 @@
#ifndef DIALOGBOX_BLOCK_H
#define DIALOGBOX_BLOCK_H
#include "GEOM_BlocksGUI.hxx"
#include "GEOMBase_Skeleton.h"
#include "DlgRef_2Sel_QTD.h"
#include "DlgRef_6Sel_QTD.h"
@ -37,7 +39,7 @@
// class : BlocksGUI_BlockDlg
// purpose :
//=================================================================================
class BlocksGUI_BlockDlg : public GEOMBase_Skeleton
class GEOM_BLOCKSGUI_EXPORT BlocksGUI_BlockDlg : public GEOMBase_Skeleton
{
Q_OBJECT

View File

@ -28,6 +28,8 @@
#ifndef DIALOGBOX_BLOCK_EXPLODE_H
#define DIALOGBOX_BLOCK_EXPLODE_H
#include "GEOM_BlocksGUI.hxx"
#include "GEOMBase_Skeleton.h"
class DlgRef_SpinBox;
@ -38,7 +40,7 @@ class QCheckBox;
// class : BlocksGUI_ExplodeDlg
// purpose :
//=================================================================================
class BlocksGUI_ExplodeDlg : public GEOMBase_Skeleton
class GEOM_BLOCKSGUI_EXPORT BlocksGUI_ExplodeDlg : public GEOMBase_Skeleton
{
Q_OBJECT

View File

@ -29,6 +29,8 @@
#ifndef DIALOGBOX_BlocksGUI_PropagateDlg_H
#define DIALOGBOX_BlocksGUI_PropagateDlg_H
#include "GEOM_BlocksGUI.hxx"
#include "GEOMBase_Skeleton.h"
@ -36,7 +38,7 @@
// class : BlocksGUI_PropagateDlg
// purpose :
//=================================================================================
class BlocksGUI_PropagateDlg : public GEOMBase_Skeleton
class GEOM_BLOCKSGUI_EXPORT BlocksGUI_PropagateDlg : public GEOMBase_Skeleton
{
Q_OBJECT

View File

@ -28,13 +28,15 @@
#ifndef DIALOGBOX_QUAD_FACE_H
#define DIALOGBOX_QUAD_FACE_H
#include "GEOM_BlocksGUI.hxx"
#include "GEOMBase_Skeleton.h"
//=================================================================================
// class : BlocksGUI_QuadFaceDlg
// purpose :
//=================================================================================
class BlocksGUI_QuadFaceDlg : public GEOMBase_Skeleton
class GEOM_BLOCKSGUI_EXPORT BlocksGUI_QuadFaceDlg : public GEOMBase_Skeleton
{
Q_OBJECT

View File

@ -28,6 +28,10 @@
#ifndef DIALOGBOX_BLOCK_MULTITRSF_H
#define DIALOGBOX_BLOCK_MULTITRSF_H
#include "GEOM_BlocksGUI.hxx"
#include "GEOM_BasicGUI.hxx"
#include "GEOMBase_Skeleton.h"
class DlgRef_SpinBox;
@ -36,7 +40,7 @@ class DlgRef_SpinBox;
// class : BlocksGUI_TrsfDlg
// purpose :
//=================================================================================
class BlocksGUI_TrsfDlg : public GEOMBase_Skeleton
class GEOM_BLOCKSGUI_EXPORT BlocksGUI_TrsfDlg : public GEOMBase_Skeleton
{
Q_OBJECT

View File

@ -0,0 +1,47 @@
// 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 : GEOM_BlocksGUI.hxx
// Author : Alexander A. BORODIN
// Module : GEOM
#ifndef _GEOM_BlocksGUI_HXX_
#define _GEOM_BlocksGUI_HXX_
#ifdef WNT
#if defined BLOCKSGUI_EXPORTS
#if defined WIN32
#define GEOM_BLOCKSGUI_EXPORT __declspec( dllexport )
#else
#define GEOM_BLOCKSGUI_EXPORT
#endif
#else
#if defined WIN32
#define GEOM_BLOCKSGUI_EXPORT __declspec( dllimport )
#else
#define GEOM_BLOCKSGUI_EXPORT
#endif
#endif
#else
#define GEOM_BASICGUI_EXPORT
#endif
#endif

View File

@ -52,7 +52,8 @@ LIB_MOC = \
BlocksGUI_BlockDlg.h \
BlocksGUI_ExplodeDlg.h \
BlocksGUI_PropagateDlg.h \
BlocksGUI_TrsfDlg.h
BlocksGUI_TrsfDlg.h \
GEOM_BlocksGUI.hxx
LIB_CLIENT_IDL = SALOME_Exception.idl SALOME_GenericObj.idl SALOME_Component.idl