BOOST_CPPFLAGS=@BOOST_CPPFLAGS@
BOOST_LIBS=@BOOST_LIBS@
CORBA_CXXFLAGS=@OMNIORB_CXXFLAGS@ @OMNIORB_INCLUDES@
+CORBA_LIBS=@OMNIORB_LIBS@
libSalomeGuiHelpers_la_CPPFLAGS = \
$(QT_CXXFLAGS) \
-I$(srcdir)/../OBJECT
libSalomeGuiHelpers_la_LDFLAGS = \
- $(KERNEL_LDFLAGS) -lSalomeKernelHelpers
- $(builddir)/../SalomeApp/libSalomeApp.la
+ $(KERNEL_LDFLAGS) -lSalomeKernelHelpers \
+ $(builddir)/../SalomeApp/libSalomeApp.la \
+ $(CORBA_LIBS)
#
# =======================================================
#ifndef DATAMODEL_H
#define DATAMODEL_H
+#include "TreeData.hxx"
+
#include <map>
#include "DataObject.hxx"
-class DataModel {
+class TREEDATA_EXPORT DataModel {
public:
DataModel();
#ifndef DATAOBJECT_H
#define DATAOBJECT_H
+#include "TreeData.hxx"
+
#include <map>
#include <string>
using namespace std;
-class DataObject {
+class TREEDATA_EXPORT DataObject {
public:
DataObject();
#ifndef _DATAPROCESSOR_H_
#define _DATAPROCESSOR_H_
+#include "TreeData.hxx"
+
#include "DataModel.hxx"
#include "DataObject.hxx"
#include <QStringList>
// =================================================================
//
-class DataProcessor {
+class TREEDATA_EXPORT DataProcessor {
public:
DataProcessor(DataModel * dataModel);
#ifndef _DOCKWIDGETS_H_
#define _DOCKWIDGETS_H_
+#include "TreeData.hxx"
+
// Qt includes
#include <QDockWidget>
#include <QTreeView>
// SALOME includes
#include <SalomeApp_Application.h>
-class DockWidgets {
+class TREEDATA_EXPORT DockWidgets {
public:
DockWidgets(SalomeApp_Application* salomeApp,
- bool tabify=false,
- const char * title="Data Model");
+ bool tabify=false,
+ const char * title="Data Model");
void tabify(bool tabify);
void show(bool isVisible);
# Generic source files
#
salomeinclude_HEADERS = \
+ TreeData.hxx \
DockWidgets.hxx \
TreeModel.hxx \
TreeItem.hxx \
--- /dev/null
+// Copyright (C) 2007-2011 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
+//
+
+#ifndef TREEDATA_HXX
+#define TREEDATA_HXX
+
+#ifdef WIN32
+# if defined SALOMETREEDATA_EXPORTS || defined SalomeTreeData_EXPORTS
+# define TREEDATA_EXPORT __declspec( dllexport )
+# else
+# define TREEDATA_EXPORT __declspec( dllimport )
+# endif
+#else
+# define TREEDATA_EXPORT
+#endif
+
+#endif //TREEDATA_HXX
\ No newline at end of file
#ifndef _TREEGUIMANAGER_H_
#define _TREEGUIMANAGER_H_
+#include "TreeData.hxx"
+
// SALOME includes
#include <SalomeApp_Application.h>
#include "TreeView.hxx"
#include "TreeObserver.hxx"
-class TreeGuiManager : public TreeObserver {
+class TREEDATA_EXPORT TreeGuiManager : public TreeObserver {
public:
TreeGuiManager(SalomeApp_Application * salomeApp, const char * title="Data Model");
#ifndef TREEITEM_H
#define TREEITEM_H
+#include "TreeData.hxx"
+
#include <QList>
#include <QVariant>
#include <QVector>
#include "DataObject.hxx"
#include "TreeModel.hxx"
-class TreeItem
+class TREEDATA_EXPORT TreeItem
{
public:
TreeItem(const QString &nameId, const QVector<QVariant> &columnValues, TreeItem *parent = 0);
#ifndef TREEMODEL_H
#define TREEMODEL_H
+#include "TreeData.hxx"
+
#include <QAbstractItemModel>
#include <QModelIndex>
#include <QVariant>
class TreeItem;
class TreeView;
-class TreeModel : public QAbstractItemModel
+class TREEDATA_EXPORT TreeModel : public QAbstractItemModel
{
Q_OBJECT
#ifndef _TREEOBSERVER_
#define _TREEOBSERVER_
+#include "TreeData.hxx"
+
#include <QObject>
#include "TreeView.hxx"
-class TreeObserver : public QObject {
+class TREEDATA_EXPORT TreeObserver : public QObject {
Q_OBJECT
#ifndef TREEVIEW_H
#define TREEVIEW_H
+#include "TreeData.hxx"
+
#include <QTreeView>
#include <QAction>
#include <QContextMenuEvent>
#include <QList>
-class TreeView : public QTreeView
+class TREEDATA_EXPORT TreeView : public QTreeView
{
Q_OBJECT