Fix compilation problems on Win32 Platform:

- export classes
This commit is contained in:
abd 2008-10-07 13:23:26 +00:00
parent 00a9b6bc08
commit bd7c31d320
8 changed files with 93 additions and 109 deletions

View File

@ -10,6 +10,8 @@
#ifndef DLGREF_1SEL5SPIN1CHECK_QTD_H #ifndef DLGREF_1SEL5SPIN1CHECK_QTD_H
#define DLGREF_1SEL5SPIN1CHECK_QTD_H #define DLGREF_1SEL5SPIN1CHECK_QTD_H
#include "GEOM_DlgRef.hxx"
#include <qvariant.h> #include <qvariant.h>
#include <qwidget.h> #include <qwidget.h>
@ -24,7 +26,7 @@ class QSpinBox;
class QCheckBox; class QCheckBox;
class QLineEdit; class QLineEdit;
class DlgRef_1Sel5Spin1Check_QTD : public QWidget class GEOM_DLGREF_EXPORT DlgRef_1Sel5Spin1Check_QTD : public QWidget
{ {
Q_OBJECT Q_OBJECT

View File

@ -10,6 +10,8 @@
#ifndef DLGREF_2SEL2LIST_QTD_H #ifndef DLGREF_2SEL2LIST_QTD_H
#define DLGREF_2SEL2LIST_QTD_H #define DLGREF_2SEL2LIST_QTD_H
#include "GEOM_DlgRef.hxx"
#include <qvariant.h> #include <qvariant.h>
#include <qwidget.h> #include <qwidget.h>
@ -23,7 +25,7 @@ class QComboBox;
class QLabel; class QLabel;
class QPushButton; class QPushButton;
class DlgRef_2Sel2List_QTD : public QWidget class GEOM_DLGREF_EXPORT DlgRef_2Sel2List_QTD : public QWidget
{ {
Q_OBJECT Q_OBJECT

View File

@ -1,41 +1,41 @@
// File : DlgRef_2Sel2Spin.cxx // File : DlgRef_2Sel2Spin.cxx
// Author : Dmitry MATVEITCHEV // Author : Dmitry MATVEITCHEV
// Module : GEOM // Module : GEOM
// $Header: // $Header:
#include "DlgRef_2Sel3Spin2Rb.h" #include "DlgRef_2Sel3Spin2Rb.h"
#include <iostream.h> #include <iostream>
#include <qlayout.h> #include <qlayout.h>
#include <qspinbox.h> #include <qspinbox.h>
#include <qgroupbox.h> #include <qgroupbox.h>
#include <qradiobutton.h> #include <qradiobutton.h>
/* /*
* Constructs a DlgRef_2Sel3Spin2Rb which is a child of 'parent', with the * Constructs a DlgRef_2Sel3Spin2Rb which is a child of 'parent', with the
* name 'name' and widget flags set to 'f' * name 'name' and widget flags set to 'f'
*/ */
DlgRef_2Sel3Spin2Rb::DlgRef_2Sel3Spin2Rb(QWidget* parent, const char* name, WFlags fl) DlgRef_2Sel3Spin2Rb::DlgRef_2Sel3Spin2Rb(QWidget* parent, const char* name, WFlags fl)
:DlgRef_2Sel3Spin2Rb_QTD(parent, name, fl) :DlgRef_2Sel3Spin2Rb_QTD(parent, name, fl)
{ {
SpinBox1->close(TRUE); SpinBox1->close(TRUE);
SpinBox2->close(TRUE); SpinBox2->close(TRUE);
SpinBox3->close(TRUE); SpinBox3->close(TRUE);
RadioButton1->setChecked(true); RadioButton1->setChecked(true);
SpinBox_DX = new DlgRef_SpinBox(GroupBox1, "SpinBox_DX"); SpinBox_DX = new DlgRef_SpinBox(GroupBox1, "SpinBox_DX");
Layout2->addMultiCellWidget(SpinBox_DX, 0, 0, 2, 4); Layout2->addMultiCellWidget(SpinBox_DX, 0, 0, 2, 4);
SpinBox_DY = new DlgRef_SpinBox(GroupBox1, "SpinBox_DY"); SpinBox_DY = new DlgRef_SpinBox(GroupBox1, "SpinBox_DY");
Layout2->addWidget(SpinBox_DY, 1, 2); Layout2->addWidget(SpinBox_DY, 1, 2);
SpinBox_DZ = new DlgRef_SpinBox(GroupBox1, "SpinBox_DZ"); SpinBox_DZ = new DlgRef_SpinBox(GroupBox1, "SpinBox_DZ");
Layout2->addWidget(SpinBox_DZ, 1, 4); Layout2->addWidget(SpinBox_DZ, 1, 4);
SpinBox_DY->setEnabled(false); SpinBox_DY->setEnabled(false);
SpinBox_DZ->setEnabled(false); SpinBox_DZ->setEnabled(false);
} }
/* /*
* Destroys the object and frees any allocated resources * Destroys the object and frees any allocated resources
*/ */
DlgRef_2Sel3Spin2Rb::~DlgRef_2Sel3Spin2Rb() DlgRef_2Sel3Spin2Rb::~DlgRef_2Sel3Spin2Rb()
{ {
// no need to delete child widgets, Qt does it all for us // no need to delete child widgets, Qt does it all for us
} }

View File

@ -1,34 +1,27 @@
// File : DlgRef_2Sel3Spin2Rb.h // File : DlgRef_2Sel3Spin2Rb.h
// Author : Dmitry MATVEITCHEV // Author : Dmitry MATVEITCHEV
// Module : GEOM // Module : GEOM
// $Header: // $Header:
#ifndef DLGREF_2SEL3SPIN2RB_H #ifndef DLGREF_2SEL3SPIN2RB_H
#define DLGREF_2SEL3SPIN2RB_H #define DLGREF_2SEL3SPIN2RB_H
#include "DlgRef_2Sel3Spin2Rb_QTD.h" #include "GEOM_DlgRef.hxx"
#include "DlgRef_SpinBox.h"
//#if defined WNT #include "DlgRef_2Sel3Spin2Rb_QTD.h"
//#include <SALOME_WNT.hxx> #include "DlgRef_SpinBox.h"
//#else
//#define SALOME_WNT_EXPORT class GEOM_DLGREF_EXPORT DlgRef_2Sel3Spin2Rb : public DlgRef_2Sel3Spin2Rb_QTD
//#endif {
#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS Q_OBJECT
#define DLGREF_WNT_EXPORT __declspec( dllexport )
#else public:
#define DLGREF_WNT_EXPORT DlgRef_2Sel3Spin2Rb(QWidget* parent = 0, const char* name = 0, WFlags fl = 0);
#endif ~DlgRef_2Sel3Spin2Rb();
class DLGREF_WNT_EXPORT DlgRef_2Sel3Spin2Rb : public DlgRef_2Sel3Spin2Rb_QTD
{ DlgRef_SpinBox* SpinBox_DX;
Q_OBJECT DlgRef_SpinBox* SpinBox_DY;
DlgRef_SpinBox* SpinBox_DZ;
public: };
DlgRef_2Sel3Spin2Rb(QWidget* parent = 0, const char* name = 0, WFlags fl = 0);
~DlgRef_2Sel3Spin2Rb(); #endif // DLGREF_2SEL3SPIN2RB_H
DlgRef_SpinBox* SpinBox_DX;
DlgRef_SpinBox* SpinBox_DY;
DlgRef_SpinBox* SpinBox_DZ;
};
#endif // DLGREF_2SEL3SPIN2RB_H

View File

@ -10,6 +10,8 @@
#ifndef DLGREF_3SEL3SPIN2CHECK_QTD_H #ifndef DLGREF_3SEL3SPIN2CHECK_QTD_H
#define DLGREF_3SEL3SPIN2CHECK_QTD_H #define DLGREF_3SEL3SPIN2CHECK_QTD_H
#include "GEOM_DlgRef.hxx"
#include <qvariant.h> #include <qvariant.h>
#include <qwidget.h> #include <qwidget.h>
@ -24,7 +26,7 @@ class QLineEdit;
class QPushButton; class QPushButton;
class QCheckBox; class QCheckBox;
class DlgRef_3Sel3Spin2Check_QTD : public QWidget class GEOM_DLGREF_EXPORT DlgRef_3Sel3Spin2Check_QTD : public QWidget
{ {
Q_OBJECT Q_OBJECT

View File

@ -22,6 +22,7 @@
#ifndef _GEOMImpl_IPIPEBINORMAL_HXX_ #ifndef _GEOMImpl_IPIPEBINORMAL_HXX_
#define _GEOMImpl_IPIPEBINORMAL_HXX_ #define _GEOMImpl_IPIPEBINORMAL_HXX_
#include "GEOM_GEOMImpl.hxx"
#include "GEOM_Function.hxx" #include "GEOM_Function.hxx"
#ifndef _GEOMImpl_IPIPE_HXX_ #ifndef _GEOMImpl_IPIPE_HXX_
@ -32,7 +33,7 @@
#define PIPE_ARG_PATH 2 #define PIPE_ARG_PATH 2
#define PIPE_ARG_VEC 3 #define PIPE_ARG_VEC 3
class GEOMImpl_IPipeBiNormal : public GEOMImpl_IPipe class GEOMIMPL_EXPORT GEOMImpl_IPipeBiNormal : public GEOMImpl_IPipe
{ {
public: public:

View File

@ -26,22 +26,14 @@
#ifndef _GEOM_GEOMImpl_HXX_ #ifndef _GEOM_GEOMImpl_HXX_
#define _GEOM_GEOMImpl_HXX_ #define _GEOM_GEOMImpl_HXX_
#ifdef WNT #ifdef WIN32
#if defined GEOMIMPL_EXPORTS # ifdef GEOMIMPL_EXPORTS
#if defined WIN32 # define GEOMIMPL_EXPORT __declspec( dllexport )
#define GEOMIMPL_EXPORT __declspec( dllexport ) # else
#else # define GEOMIMPL_EXPORT __declspec( dllimport )
#define GEOMIMPL_EXPORT # endif
#endif
#else
#if defined WIN32
#define GEOMIMPL_EXPORT __declspec( dllimport )
#else
#define GEOMIMPL_EXPORT
#endif
#endif
#else #else
#define GEOMIMPL_EXPORT # define GEOMIMPL_EXPORT
#endif #endif
#endif #endif

View File

@ -26,22 +26,14 @@
#ifndef _GEOM_OBJECT_defs_HXX_ #ifndef _GEOM_OBJECT_defs_HXX_
#define _GEOM_OBJECT_defs_HXX_ #define _GEOM_OBJECT_defs_HXX_
#ifdef WNT #ifdef WIN32
#if defined OBJECT_EXPORTS # ifdef GEOM_OBJECT_EXPORTS
#if defined WIN32 # define GEOM_OBJECT_EXPORT __declspec( dllexport )
#define GEOM_OBJECT_EXPORT __declspec( dllexport ) # else
#else # define GEOM_OBJECT_EXPORT __declspec( dllimport )
#define GEOM_OBJECT_EXPORT # endif
#endif
#else
#if defined WIN32
#define GEOM_OBJECT_EXPORT __declspec( dllimport )
#else
#define GEOM_OBJECT_EXPORT
#endif
#endif
#else #else
#define GEOM_OBJECT_EXPORT # define GEOM_OBJECT_EXPORT
#endif #endif
#endif #endif