Salome HOME
ATOMIC win32 building.
authorrnv <rnv@opencascade.com>
Thu, 19 Sep 2013 11:32:13 +0000 (11:32 +0000)
committerrnv <rnv@opencascade.com>
Thu, 19 Sep 2013 11:32:13 +0000 (11:32 +0000)
16 files changed:
src/ATOMICGUI/ATOMICGUI.cxx
src/ATOMICGUI/ATOMICGUI.h
src/ATOMICGUI/ATOMICGUI_ATOMICGUI.hxx [new file with mode: 0755]
src/ATOMICGUI/ATOMICGUI_AddAtomDlg.h
src/ATOMICGUI/ATOMICGUI_AddAtomOp.h
src/ATOMICGUI/ATOMICGUI_CreateMolOp.h
src/ATOMICGUI/ATOMICGUI_Data.cxx
src/ATOMICGUI/ATOMICGUI_Data.h
src/ATOMICGUI/ATOMICGUI_DataModel.h
src/ATOMICGUI/ATOMICGUI_DataObject.h
src/ATOMICGUI/ATOMICGUI_DeleteOp.h
src/ATOMICGUI/ATOMICGUI_ImportExportOp.h
src/ATOMICGUI/ATOMICGUI_Operation.h
src/ATOMICGUI/ATOMICGUI_RenameOp.h
src/ATOMICGUI/ATOMICGUI_Selection.h
src/ATOMICGUI/CMakeLists.txt

index cd11663ecd96aa2bb57d3ba02543a78ef400bf65..7954310671398a6b4e5611a87b49ec57cfb875a3 100644 (file)
@@ -17,8 +17,6 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-using namespace std;
-
 #include "ATOMICGUI.h"
 
 #include "ATOMICGUI_DataModel.h"
@@ -42,6 +40,8 @@ using namespace std;
 
 #include <qaction.h>
 
+using namespace std;
+
 /*! Constructor */
 ATOMICGUI::ATOMICGUI()
 : LightApp_Module( "ATOMICGUI" )
index 6379101d5a29b666bba45acf07c149583bad1068..ea26cfa879173003b9d3d83916213d481f32fff4 100644 (file)
 #if !defined(ATOMICGUI_H)
 #define ATOMICGUI_H
 
+#include "ATOMICGUI_ATOMICGUI.hxx"
+
 #include <LightApp_Module.h>
 
 /*!
  * Class       : ATOMICGUI
  * Description : GUI module class for ATOMIC component
  */
-class ATOMICGUI: public LightApp_Module
+class ATOMICGUI_EXPORT ATOMICGUI: public LightApp_Module
 {
   Q_OBJECT
   enum { agCreateMol,  
diff --git a/src/ATOMICGUI/ATOMICGUI_ATOMICGUI.hxx b/src/ATOMICGUI/ATOMICGUI_ATOMICGUI.hxx
new file mode 100755 (executable)
index 0000000..227f89c
--- /dev/null
@@ -0,0 +1,39 @@
+// Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
+//
+// Copyright (C) 2003-2007  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.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+
+// File   : ATOMICGUI_ATOMICGUI.hxx
+// Author : Roman NIKOLAEV, Open CASCADE S.A.S. (roman.nikolaev@opencascade.com)
+//
+#ifndef ATOMICGUI_ATOMICGUI_HXX
+#define ATOMICGUI_ATOMICGUI_HXX
+
+#if defined WIN32
+#  if defined ATOMICGUI_EXPORTS || defined ATOMIC_EXPORTS
+#    define ATOMICGUI_EXPORT __declspec( dllexport )
+#  else
+#    define ATOMICGUI_EXPORT __declspec( dllimport )
+#  endif
+#else
+#  define ATOMICGUI_EXPORT
+#endif
+
+#endif // ATOMICGUI_ATOMICGUI_HXX
index 104a1e3bab498abf35b94d5a7e673ebed9b92d08..6b756c50fca08ebfdae360fb49d8d4c2f3546b8b 100644 (file)
@@ -20,6 +20,8 @@
 #if !defined(ATOMICGUI_ATOMDLG_H)
 #define ATOMICGUI_ATOMDLG_H
 
+#include "ATOMICGUI_ATOMICGUI.hxx"
+
 #include <LightApp_Dialog.h>
 
 class QtxDoubleSpinBox;
@@ -29,7 +31,7 @@ class QLineEdit;
  * Class       : ATOMICGUI_AddAtomDlg
  * Description : Dialog for Atom creation
  */
-class ATOMICGUI_AddAtomDlg : public LightApp_Dialog
+class ATOMICGUI_EXPORT ATOMICGUI_AddAtomDlg : public LightApp_Dialog
 {
   Q_OBJECT
 
index a1c3edfab41035b8fea1278d6510334eac5c4d40..72b8b4b8249c5624471c1178da5492b98ec88484 100644 (file)
@@ -22,6 +22,8 @@
 
 #include "ATOMICGUI_Operation.h"
 
+#include "ATOMICGUI_ATOMICGUI.hxx"
+
 class ATOMICGUI_AddAtomDlg;
 
 /*!
@@ -29,7 +31,7 @@ class ATOMICGUI_AddAtomDlg;
  * Description : Operation class for Atom creation
  *               Uses ATOMICGUI_AddAtomDlg class
  */
-class ATOMICGUI_AddAtomOp : public ATOMICGUI_Operation
+class ATOMICGUI_EXPORT ATOMICGUI_AddAtomOp : public ATOMICGUI_Operation
 {
   Q_OBJECT 
 
index 32bb4ed3c99b47fa7c8f47543ded6712d189544c..a63363c05f0c64d9e2f8f62d395aa92092db25a1 100644 (file)
 #ifndef ATOMICGUI_CREATECONF_OP_H
 #define ATOMICGUI_CREATECONF_OP_H
 
+#include "ATOMICGUI_ATOMICGUI.hxx"
+
 #include "ATOMICGUI_Operation.h"
 
 /*!
  * Class       : ATOMICGUI_AddAtomOp
  * Description : Operation class for Molecule creation
  */
-class ATOMICGUI_CreateMolOp : public ATOMICGUI_Operation
+class ATOMICGUI_EXPORT ATOMICGUI_CreateMolOp : public ATOMICGUI_Operation
 {
   Q_OBJECT 
 
index a5fd61cb18f8048fd87726f7887a058c5c0307ae..812ece4bd1d73afddc698846059c2ef91b3e6e9d 100644 (file)
@@ -64,14 +64,14 @@ void ATOMICGUI_AtomicMolecule::addAtom( const QString& atom,
 /*! Removes an atom from molecule by index */
 void ATOMICGUI_AtomicMolecule::deleteAtom( const int index )
 {
-  if ( index >= 0 and index < myAtoms.count() )
+  if ( index >= 0 && index < myAtoms.count() )
     myAtoms.removeAt( index );
 }
 
 /*! Gets an atom id by index */
 int ATOMICGUI_AtomicMolecule::atomId( const int index ) const
 {
-  if ( index >= 0 and index < myAtoms.count() )
+  if ( index >= 0 && index < myAtoms.count() )
     return myAtoms[ index ].id();
   return 0;
 }
@@ -80,7 +80,7 @@ int ATOMICGUI_AtomicMolecule::atomId( const int index ) const
 QString ATOMICGUI_AtomicMolecule::atomName( const int index ) const
 {
   QString n;
-  if ( index >= 0 and index < myAtoms.count() )
+  if ( index >= 0 && index < myAtoms.count() )
     n = myAtoms[ index ].name();
   return n;
 }
@@ -88,7 +88,7 @@ QString ATOMICGUI_AtomicMolecule::atomName( const int index ) const
 /*! Gets an atom x coordinate by index */
 double ATOMICGUI_AtomicMolecule::atomX( const int index ) const
 {
-  if ( index >= 0 and index < myAtoms.count() )
+  if ( index >= 0 && index < myAtoms.count() )
     return myAtoms[ index ].x();
   return 0;
 }
@@ -96,7 +96,7 @@ double ATOMICGUI_AtomicMolecule::atomX( const int index ) const
 /*!  Gets an atom y coordinate by index */
 double ATOMICGUI_AtomicMolecule::atomY( const int index ) const
 {
-  if ( index >= 0 and index < myAtoms.count() )
+  if ( index >= 0 && index < myAtoms.count() )
     return myAtoms[ index ].y();
   return 0;
 }
@@ -104,7 +104,7 @@ double ATOMICGUI_AtomicMolecule::atomY( const int index ) const
 /*! Gets an atom z coordinate by index */
 double ATOMICGUI_AtomicMolecule::atomZ( const int index ) const
 {
-  if ( index >= 0 and index < myAtoms.count() )
+  if ( index >= 0 && index < myAtoms.count() )
     return myAtoms[ index ].z();
   return 0;
 }
@@ -114,6 +114,6 @@ void ATOMICGUI_AtomicMolecule::setName( const QString& name, const int index )
 {
   if ( index < 0 )
     myName = name;
-  else if ( index >= 0 and index < myAtoms.count() )
+  else if ( index >= 0 && index < myAtoms.count() )
     myAtoms[ index ].myName = name;
 }
index 5cd89e5d2e57d91a74a1b177a154bd734cf09b8c..c10621d59a67a5d541387b567ec7b92c8014bce2 100644 (file)
@@ -20,6 +20,8 @@
 #if !defined(ATOMICGUI_DATA_H)
 #define ATOMICGUI_DATA_H
 
+#include "ATOMICGUI_ATOMICGUI.hxx"
+
 #include <qlist.h>
 #include <qstring.h>
 
@@ -27,7 +29,7 @@
  * Class       : ATOMICGUI_AtomicMolecule, ATOMICGUI_AtomicMolecule::Atom
  * Description : Core classes for data of ATOMIC component
  */
-class ATOMICGUI_AtomicMolecule
+class ATOMICGUI_EXPORT ATOMICGUI_AtomicMolecule
 {
 private:
 
index 406a628cdef87d7b9e4e1f40fdbf814e61416cb9..998fb248c8570c9e27cc3e914effd3ab85834790 100644 (file)
@@ -20,6 +20,8 @@
 #if !defined(ATOMICGUI_DATAMODEL_H)
 #define ATOMICGUI_DATAMODEL_H
 
+#include "ATOMICGUI_ATOMICGUI.hxx"
+
 #include "ATOMICGUI_Data.h"
 #include <LightApp_DataModel.h>
 #include <qlist.h>
@@ -33,7 +35,7 @@ class ATOMICGUI_DataObject;
  * Class       : ATOMICGUI_DataModel
  * Description : Data Model of ATOMIC component
  */
-class ATOMICGUI_DataModel : public LightApp_DataModel
+class ATOMICGUI_EXPORT ATOMICGUI_DataModel : public LightApp_DataModel
 {
   Q_OBJECT
 
index 0f53903ee7b9b3b9ed5ca2d38b48b9e6d6034de7..4abe4d53e90f6a978afd32ca0f376de097056033 100644 (file)
@@ -20,6 +20,8 @@
 #if !defined(ATOMICGUI_DATAOBJECT_H)
 #define ATOMICGUI_DATAOBJECT_H
 
+#include "ATOMICGUI_ATOMICGUI.hxx"
+
 #include <LightApp_DataObject.h>
 
 #include <qstring.h>
@@ -33,7 +35,7 @@ class ATOMICGUI_AtomicMolecule;
  *               If it is an Atom then myIndex field is >= 0
  *               For Molecule myIndex equals to -1.
  */
-class ATOMICGUI_DataObject : public virtual LightApp_DataObject
+class ATOMICGUI_EXPORT ATOMICGUI_DataObject : public virtual LightApp_DataObject
 {
 public:
   ATOMICGUI_DataObject ( SUIT_DataObject*, ATOMICGUI_AtomicMolecule* = 0, int = -1 );
@@ -56,7 +58,7 @@ private:
   int                        myIndex;
 };
 
-class ATOMICGUI_ModuleObject : public ATOMICGUI_DataObject,
+class ATOMICGUI_EXPORT ATOMICGUI_ModuleObject : public ATOMICGUI_DataObject,
                                public LightApp_ModuleObject
 {
 public:
index 7b82f6d1e5045714663c9820bf03d1c232c12631..4aa66edb86cfb67586b8fced5f36c3bd12a28330 100644 (file)
 #ifndef ATOMICGUI_DELETEOP_OP_H
 #define ATOMICGUI_DELETEOP_OP_H
 
+#include "ATOMICGUI_ATOMICGUI.hxx"
+
 #include "ATOMICGUI_Operation.h"
 
 /*!
  * Class       : ATOMICGUI_DeleteOp
  * Description : Operation for objects removal in ATOMIC component
  */
-class ATOMICGUI_DeleteOp : public ATOMICGUI_Operation
+class ATOMICGUI_EXPORT ATOMICGUI_DeleteOp : public ATOMICGUI_Operation
 {
   Q_OBJECT 
 
index 12b9aac9a36fa38006ac0ffb0f7fecdfb8cd682d..d390f107690bc936173629595b7303363d5641fd 100644 (file)
 
 #include "ATOMICGUI_Operation.h"
 
+#include "ATOMICGUI_ATOMICGUI.hxx"
+
 /*!
  * Class       : ATOMICGUI_ImportExportOp
  * Description : Operation for Import and Export of data structure to/from
  *               an external file in XML format in ATOMIC component
  */
-class ATOMICGUI_ImportExportOp : public ATOMICGUI_Operation
+class ATOMICGUI_EXPORT ATOMICGUI_ImportExportOp : public ATOMICGUI_Operation
 {
   Q_OBJECT 
 
index 206f93e6e39224c577d3cb5f49428dc9502199de..33557f2b5d251b9d33d644d015ecdf7d8338dec2 100644 (file)
@@ -20,6 +20,8 @@
 #ifndef ATOMICGUI_OPERATION_H
 #define ATOMICGUI_OPERATION_H
 
+#include "ATOMICGUI_ATOMICGUI.hxx"
+
 #include <LightApp_Operation.h>
 
 class ATOMICGUI_DataModel;
@@ -29,7 +31,7 @@ class ATOMICGUI;
  * Class       : ATOMICGUI_AddAtomDlg
  * Description : Base Operation class for ATOMIC component
  */
-class ATOMICGUI_Operation : public LightApp_Operation
+class ATOMICGUI_EXPORT ATOMICGUI_Operation : public LightApp_Operation
 {
   Q_OBJECT 
 
index c960de9aa5cdcc1ca69bfe1bfcde8acb000c18d3..ba139a6bca442c3b0ff4caf54b57b2ab90f60f34 100644 (file)
 #ifndef ATOMICGUI_RENAME_OP_H
 #define ATOMICGUI_RENAME_OP_H
 
+#include "ATOMICGUI_ATOMICGUI.hxx"
+
 #include "ATOMICGUI_Operation.h"
 
 /*!
  * Class       : ATOMICGUI_DeleteOp
  * Description : Operation for objects rename in ATOMIC component
  */
-class ATOMICGUI_RenameOp : public ATOMICGUI_Operation
+class ATOMICGUI_EXPORT ATOMICGUI_RenameOp : public ATOMICGUI_Operation
 {
   Q_OBJECT 
 
index 25c3a7699bf79a2db00a46ae559e286b3c0febcc..7dd8cce8d37d9e91c47e1d2a63c190b02bdfa829 100644 (file)
@@ -20,6 +20,8 @@
 #if !defined(ATOMICGUI_SELECTION_H)
 #define ATOMICGUI_SELECTION_H
 
+#include "ATOMICGUI_ATOMICGUI.hxx"
+
 #include <QtxPopupMgr.h>
 #include <LightApp_Selection.h>
 
@@ -30,7 +32,7 @@ class LightApp_SelectionMgr;
  * Description : Selection class for ATOMIC component.  
  *               Computation of object parameters for popup manager.
  */
-class ATOMICGUI_Selection : public LightApp_Selection
+class ATOMICGUI_EXPORT ATOMICGUI_Selection : public LightApp_Selection
 {
 public:
   ATOMICGUI_Selection ();
index 22c061cd8e43de538dade567f5fcd175d95a6a95..53b2e32db3faf4ef8efc9267644d60e4219e2601 100644 (file)
@@ -60,6 +60,7 @@ SET(_other_HEADERS
   ATOMICGUI_Data.h
   ATOMICGUI_DataObject.h
   ATOMICGUI_Selection.h
+  ATOMICGUI_ATOMICGUI.hxx
 )
 
 # header files / to install
@@ -83,7 +84,7 @@ SET(_other_SOURCES
   ATOMICGUI_CreateMolOp.cxx
   ATOMICGUI_RenameOp.cxx
   ATOMICGUI_DeleteOp.cxx
-  ATOMICGUI_ImportExportOp.cxx
+  ATOMICGUI_ImportExportOp.cxx  
 )
 
 # sources / to compile