FIND_PACKAGE(SalomeCAS)
# VTK
FIND_PACKAGE(SalomeVTK 6.0)
+FIND_PACKAGE(SalomePthread)
# Find ATOMGEN
# ===========
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-using namespace std;
#include "ATOMSOLV.hxx"
#include "ATOMSOLV_version.h"
#include "utilities.h"
#include <string>
+using namespace std;
+
ATOMSOLV::ATOMSOLV(CORBA::ORB_ptr orb,
PortableServer::POA_ptr poa,
#include <map>
-class ATOMSOLV:
+#if defined WIN32
+# if defined ATOMSOLV_EXPORTS || defined ATOMSOLVEngine_EXPORTS
+# define ATOMSOLV_EXPORT __declspec( dllexport )
+# else
+# define ATOMSOLV_EXPORT __declspec( dllimport )
+# endif
+#else
+# define ATOMSOLV_EXPORT
+#endif
+
+
+class ATOMSOLV_EXPORT ATOMSOLV:
public POA_ATOMSOLV_ORB::ATOMSOLV_Gen,
public Engines_Component_i
{
};
extern "C"
+ ATOMSOLV_EXPORT
PortableServer::ObjectId * ATOMSOLVEngine_factory(CORBA::ORB_ptr orb,
PortableServer::POA_ptr poa,
PortableServer::ObjectId * contId,
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-INCLUDE(UseQt4Ext)
-
# --- options ---
# additional include directories
INCLUDE_DIRECTORIES(
- ${QT_INCLUDES}
- ${CAS_INCLUDE_DIRS}
- ${KERNEL_INCLUDE_DIRS}
+ ${PTHREAD_INCLUDE_DIR}
${OMNIORB_INCLUDE_DIR}
+ ${KERNEL_INCLUDE_DIRS}
${ATOMGEN_INCLUDE_DIRS}
${PROJECT_BINARY_DIR}
${PROJECT_BINARY_DIR}/idl
)
+# additional preprocessor / compiler flags
+ADD_DEFINITIONS(
+ ${OMNIORB_DEFINITIONS}
+)
+
+
# libraries to link to
SET(_link_LIBRARIES
${ATOMGEN_SalomeIDLATOMGEN}
#ifndef _ATOMSOLVGUI_H_
#define _ATOMSOLVGUI_H_
+#include "ATOMSOLVGUI_ATOMSOLVGUI.hxx"
+
#include <SalomeApp_Module.h>
#include <SALOMEconfig.h>
class SalomeApp_Application;
-class ATOMSOLVGUI: public SalomeApp_Module
+class ATOMSOLVGUI_EXPORT ATOMSOLVGUI: public SalomeApp_Module
{
Q_OBJECT
--- /dev/null
+// 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 : ATOMSOLVGUI_ATOMSOLVGUI.hxx
+// Author : Roman NIKOLAEV, Open CASCADE S.A.S. (roman.nikolaev@opencascade.com)
+//
+#ifndef ATOMSOLVGUI_ATOMSOLVGUI_HXX
+#define ATOMSOLVGUI_ATOMSOLVGUI_HXX
+
+#if defined WIN32
+# if defined ATOMSOLVGUI_EXPORTS || defined ATOMSOLV_EXPORTS
+# define ATOMSOLVGUI_EXPORT __declspec( dllexport )
+# else
+# define ATOMSOLVGUI_EXPORT __declspec( dllimport )
+# endif
+#else
+# define ATOMSOLVGUI_EXPORT
+#endif
+
+#endif // ATOMSOLVGUI_ATOMSOLVGUI
#if !defined(ATOMSOLVGUI_DATAMODEL_H)
#define ATOMSOLVGUI_DATAMODEL_H
+#include "ATOMSOLVGUI_ATOMSOLVGUI.hxx"
+
#include <LightApp_DataModel.h>
class CAM_Module;
* Class : ATOMSOLVGUI_DataModel
* Description : Data Model of ATOMIC component
*/
-class ATOMSOLVGUI_DataModel : public LightApp_DataModel
+class ATOMSOLVGUI_EXPORT ATOMSOLVGUI_DataModel : public LightApp_DataModel
{
public:
ATOMSOLVGUI_DataModel ( CAM_Module* );
#if !defined(ATOMSOLVGUI_DATAOBJECT_H)
#define ATOMSOLVGUI_DATAOBJECT_H
+#include "ATOMSOLVGUI_ATOMSOLVGUI.hxx"
+
#include <LightApp_DataObject.h>
#include <qstring.h>
* If it is an Atom then myIndex field is >= 0
* For Molecule myIndex equals to -1.
*/
-class ATOMSOLVGUI_DataObject : public virtual LightApp_DataObject
+class ATOMSOLVGUI_EXPORT ATOMSOLVGUI_DataObject : public virtual LightApp_DataObject
{
public:
ATOMSOLVGUI_DataObject ( SUIT_DataObject*, int MoleculeIndex, int AtomIndex = -1 );
int myAtomIndex;
};
-class ATOMSOLVGUI_ModuleObject : public ATOMSOLVGUI_DataObject,
+class ATOMSOLVGUI_EXPORT ATOMSOLVGUI_ModuleObject : public ATOMSOLVGUI_DataObject,
public LightApp_ModuleObject
{
public:
#ifndef ATOMSOLVGUI_DISPLAYER_HEADER
#define ATOMSOLVGUI_DISPLAYER_HEADER
+#include "ATOMSOLVGUI_ATOMSOLVGUI.hxx"
+
#include <LightApp_Displayer.h>
#include <qstringlist.h>
class SALOME_Actor;
-class ATOMSOLVGUI_Displayer : public LightApp_Displayer
+class ATOMSOLVGUI_EXPORT ATOMSOLVGUI_Displayer : public LightApp_Displayer
{
public:
ATOMSOLVGUI_Displayer();
#ifndef ATOMSOLVGUI_SELECTION_HeaderFile
#define ATOMSOLVGUI_SELECTION_HeaderFile
+#include "ATOMSOLVGUI_ATOMSOLVGUI.hxx"
+
#include <LightApp_Selection.h>
-class ATOMSOLVGUI_Selection : public LightApp_Selection
+class ATOMSOLVGUI_EXPORT ATOMSOLVGUI_Selection : public LightApp_Selection
{
public:
ATOMSOLVGUI_Selection();
#ifndef TRANSPARENCYDLG_H
#define TRANSPARENCYDLG_H
+#include "ATOMSOLVGUI_ATOMSOLVGUI.hxx"
+
#include <qdialog.h>
#include <qstringlist.h>
// class : ATOMSOLVGUI_TransparencyDlg
// purpose : dialog box that allows to modify transparency of displayed objects
//=================================================================================
-class ATOMSOLVGUI_TransparencyDlg : public QDialog
+class ATOMSOLVGUI_EXPORT ATOMSOLVGUI_TransparencyDlg : public QDialog
{
Q_OBJECT
# --- options ---
# additional include directories
INCLUDE_DIRECTORIES(
+ ${PTHREAD_INCLUDE_DIR}
${CAS_INCLUDE_DIRS}
${KERNEL_INCLUDE_DIRS}
${GUI_INCLUDE_DIRS}
# additional preprocessor / compiler flags
ADD_DEFINITIONS(
${QT_DEFINITIONS}
- ${OMNIORB_DEFINITIONS}
${CAS_DEFINITIONS}
${OMNIORB_DEFINITIONS}
)