// Module : GEOM
// $Header$
-using namespace std;
#include "BasicGUI.h"
#include "GeometryGUI.h"
#include "BasicGUI_WorkingPlaneDlg.h" // Method WORKING PLANE
#include "BasicGUI_MarkerDlg.h" // Method REPAIR
+using namespace std;
+
BasicGUI* BasicGUI::myGUIObject = 0;
//=======================================================================
#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 :
#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 :
//#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
#include "DlgRef_1Sel_QTD.h"
#include "BasicGUI.h"
-
+#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"
//=================================================================================
//#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 :
#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
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
{
Q_OBJECT
#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
// Module : GEOM
// $Header$
-using namespace std;
#include "BasicGUI_PointDlg.h"
#include "SUIT_Session.h"
#include <BRep_Tool.hxx>
#include <qapplication.h>
-
+using namespace std;
//=================================================================================
// class : BasicGUI_PointDlg()
// purpose : Constructs a BasicGUI_PointDlg which is a child of 'parent', with the
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 :
// Module : GEOM
// $Header$
-using namespace std;
#include "BasicGUI_VectorDlg.h"
#include "SUIT_Desktop.h"
#include "utilities.h"
+using namespace std;
+
//=================================================================================
// class : BasicGUI_VectorDlg()
// purpose : Constructs a BasicGUI_VectorDlg which is a child of 'parent', with the
#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 :
// Author : Lucien PIGNOLONI
// Module : GEOM
-using namespace std;
#include "BasicGUI_WorkingPlaneDlg.h"
#include "GEOMBase.h"
#include <qcheckbox.h>
#include <qlabel.h>
+using namespace std;
+
//=================================================================================
// class : BasicGUI_WorkingPlaneDlg()
// purpose : Constructs a BasicGUI_WorkingPlaneDlg which is a child of 'parent', with the
#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_WorkingPlaneDlg : public GEOMBase_Skeleton
+class BASICGUI_WNT_EXPORT BasicGUI_WorkingPlaneDlg : public GEOMBase_Skeleton
{
Q_OBJECT
public:
BasicGUI_WorkingPlaneDlg( GeometryGUI* theGeometryGUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~BasicGUI_WorkingPlaneDlg();
-
virtual void closeEvent( QCloseEvent* e );
private:
#include "GEOMGUI.h"
#include "GEOMBase.h"
-#ifdef WNT
-#include <SALOME_WNT.hxx>
+//#ifdef WNT
+//#include <SALOME_WNT.hxx>
+//#else
+//#define SALOME_WNT_EXPORT
+//#endif
+#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
+#define DISPLAYGUI_WNT_EXPORT __declspec( dllexport )
#else
-#define SALOME_WNT_EXPORT
+#define DISPLAYGUI_WNT_EXPORT
#endif
//=================================================================================
// class : GEOMBase_Display
// QT Includes
#include <qstring.h>
+//#if defined WNT
+//#include <SALOME_WNT.hxx>
+//#else
+//#define SALOME_WNT_EXPORT
+//#endif
+
+#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
+#define GEOMBASE_WNT_EXPORT __declspec( dllexport )
+#else
+#define GEOMBASE_WNT_EXPORT
+#endif
class GEOM_Actor;
class SALOME_ListIO;
// class : GEOMBase
// purpose :
//=================================================================================
-class GEOMBase
+class GEOMBASE_WNT_EXPORT GEOMBase
{
public :
GEOMBase();
#include <qstring.h>
#include <list>
-
+//#if defined WNT
+//#include <SALOME_WNT.hxx>
+//#else
+//#define SALOME_WNT_EXPORT
+//#endif
+#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
+#define GEOMBASE_WNT_EXPORT __declspec( dllexport )
+#else
+#define GEOMBASE_WNT_EXPORT
+#endif
typedef std::list<GEOM::GEOM_Object_ptr> ObjectList;
class SalomeApp_Study;
// performing common operations (display/erase, selection activation,
// publication in a study, transaction management)
//================================================================
-class GEOMBase_Helper
+class GEOMBASE_WNT_EXPORT GEOMBase_Helper
{
public:
GEOMBase_Helper( SUIT_Desktop* );
#include <qpushbutton.h>
#include <qradiobutton.h>
#include <qbuttongroup.h>
+//#if defined WNT
+//#include <SALOME_WNT.hxx>
+//#else
+//#define SALOME_WNT_EXPORT
+//#endif
+#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
+#define GEOMBASE_WNT_EXPORT __declspec( dllexport )
+#else
+#define GEOMBASE_WNT_EXPORT
+#endif
-class GEOMBase_Skeleton : public DlgRef_Skeleton_QTD, public GEOMBase_Helper
+class GEOMBASE_WNT_EXPORT GEOMBase_Skeleton : public DlgRef_Skeleton_QTD, public GEOMBase_Helper
{
Q_OBJECT
public:
GEOMBase_Skeleton(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~GEOMBase_Skeleton();
+// int getConstructorId() const; // returns id of a selected "constructor" radio button or '-1' in case of error
private :
void Init();
#include "SUIT_Operation.h"
#include <SALOMEconfig.h>
+#include <Standard_Macro.hxx>
#include CORBA_CLIENT_HEADER(GEOM_Gen)
-class GEOM_Operation : public SUIT_Operation
+
+class Standard_EXPORT GEOM_Operation : public SUIT_Operation
{
public:
GEOM_Operation( SUIT_Application*, GEOM::GEOM_IOperations_ptr );
#include <Standard_Stream.hxx>
+#include <Standard_Stream.hxx>
+
#include <strstream>
#include "GEOM_Client.hxx"
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif
+#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
+#define GEOMCLIENT_WNT_EXPORT __declspec( dllexport )
+#else
+#define GEOMCLIENT_WNT_EXPORT
+#endif
//=====================================================================
// GEOM_Client : class definition
//=====================================================================
-class GEOM_Client {
+class GEOMCLIENT_WNT_EXPORT GEOM_Client {
public:
}
// Methods PUBLIC
//
- Standard_EXPORT GEOM_Client();
- Standard_EXPORT GEOM_Client(Engines::Container_ptr client);
- Standard_EXPORT Standard_Integer Find( const TCollection_AsciiString& IOR, TopoDS_Shape& S ) ;
- Standard_EXPORT Standard_Integer Find( const TopoDS_Shape& S, TCollection_AsciiString& IOR ) ;
- Standard_EXPORT void Bind( const TCollection_AsciiString& IOR, const TopoDS_Shape& S ) ;
- Standard_EXPORT TopoDS_Shape GetShape( GEOM::GEOM_Gen_ptr geom, GEOM::GEOM_Object_ptr aShape );
- Standard_EXPORT void RemoveShapeFromBuffer( const TCollection_AsciiString& IOR ) ;
- Standard_EXPORT void ClearClientBuffer() ;
- Standard_EXPORT unsigned int BufferLength() ;
+ //Standard_EXPORT
+ GEOM_Client();
+ //Standard_EXPORT
+ GEOM_Client(Engines::Container_ptr client);
+ //Standard_EXPORT
+ Standard_Integer Find( const TCollection_AsciiString& IOR, TopoDS_Shape& S ) ;
+ //Standard_EXPORT
+ Standard_Integer Find( const TopoDS_Shape& S, TCollection_AsciiString& IOR ) ;
+ //Standard_EXPORT
+ void Bind( const TCollection_AsciiString& IOR, const TopoDS_Shape& S ) ;
+ //Standard_EXPORT
+ TopoDS_Shape GetShape( GEOM::GEOM_Gen_ptr geom, GEOM::GEOM_Object_ptr aShape );
+ //Standard_EXPORT
+ void RemoveShapeFromBuffer( const TCollection_AsciiString& IOR ) ;
+ //Standard_EXPORT
+ void ClearClientBuffer() ;
+ //Standard_EXPORT
+ unsigned int BufferLength() ;
TopoDS_Shape Load( GEOM::GEOM_Gen_ptr geom, GEOM::GEOM_Object_ptr aShape);
private:
class QKeyEvent;
class GeometryGUI;
+//#ifdef WNT
+//#include <SALOME_WNT.hxx>
+//#else
+//#define SALOME_WNT_EXPORT
+//#endif
+#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
+#define GEOMGUI_WNT_EXPORT __declspec( dllexport )
+#else
+#define GEOMGUI_WNT_EXPORT
+#endif
//=================================================================================
// class : GEOMGUI
// purpose : Base class for all geometry GUI subclasses
//=================================================================================
-class GEOMGUI : public QObject
+class GEOMGUI_WNT_EXPORT GEOMGUI : public QObject
{
public :
// Constructor
class SalomeApp_Study;
class SUIT_SelectionFilter;
//class SALOME_Selection;
-
-#ifdef WNT
-#include <SALOME_WNT.hxx>
+//#ifdef WNT
+//#include <SALOME_WNT.hxx>
+//#else
+//#define SALOME_WNT_EXPORT
+//#endif
+#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
+#define GEOMGUI_WNT_EXPORT __declspec( dllexport )
#else
-#define SALOME_WNT_EXPORT
+#define GEOMGUI_WNT_EXPORT
#endif
-class SALOME_WNT_EXPORT GEOM_Displayer : public SALOME_Displayer
+class GEOMGUI_WNT_EXPORT GEOM_Displayer : public SALOME_Displayer
{
public:
#include <vtkCamera.h>
#include <vtkRenderer.h>
+
extern "C" {
Standard_EXPORT CAM_Module* createModule() {
return new GeometryGUI();
}
}
+
+
GEOM::GEOM_Gen_var GeometryGUI::myComponentGeom = GEOM::GEOM_Gen::_nil();
+GEOM::GEOM_Gen_var GeometryGUI::GetGeomGen() { return GeometryGUI::myComponentGeom; }
+
bool GeometryGUI::InitGeomGen()
{
GeometryGUI aGG;
#define SALOME_WNT_EXPORT
#endif
+//#if defined WNT
+//#include <SALOME_WNT.hxx>
+//#else
+//#define SALOME_WNT_EXPORT
+//#endif
+
+#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
+#define GEOMGUI_WNT_EXPORT __declspec( dllexport )
+#else
+#define GEOMGUI_WNT_EXPORT
+#endif
+
typedef QMap<QString, GEOMGUI*> GUIMap;
class QDialog;
class SalomeApp_VTKSelector;
class SUIT_ViewManager;
-
//=================================================================================
// class : GeometryGUI
// purpose :
//=================================================================================
-class SALOME_WNT_EXPORT GeometryGUI : public SalomeApp_Module
+class GEOMGUI_WNT_EXPORT GeometryGUI : public SalomeApp_Module
{
Q_OBJECT;
static bool InitGeomGen(); //BugID IPAL9186: SRN: To be called by Python scripts
- static GEOM::GEOM_Gen_var GetGeomGen() { return myComponentGeom; }
+ static GEOM::GEOM_Gen_var GetGeomGen();// { return GeometryGUI::myComponentGeom; }
static CORBA::Object_var ClientSObjectToObject (_PTR(SObject) theSObject);
static SALOMEDS::Study_var ClientStudyToStudy (_PTR(Study) theStudy);
const bool isExpandAll = false, const bool isOCC = false,
const int parentId = -1 );
-private:
- static GEOM::GEOM_Gen_var myComponentGeom; // GEOM engine
-
+public:
+ static GEOM::GEOM_Gen_var myComponentGeom; // GEOM engine!!!
+private:
GUIMap myGUIMap; // GUI libraries map
QDialog* myActiveDialogBox; // active dialog box
GEOM_Client myShapeReader; // geom shape reader