From 17c03c5d5f1f9e51ce71047b50a1dba72c22a021 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Sat, 6 Jan 2007 14:56:30 +0000 Subject: [PATCH] export the classes needed in kalzium svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=620539 --- libscience/compoundviewer/kalziumglwidget.h | 4 +- .../libkdeedu_compoundviewer_export.h | 42 +++++++++++++++++++ libscience/compoundviewer/openbabel2wrapper.h | 4 +- 3 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 libscience/compoundviewer/libkdeedu_compoundviewer_export.h diff --git a/libscience/compoundviewer/kalziumglwidget.h b/libscience/compoundviewer/kalziumglwidget.h index cdc5255..39c54d9 100644 --- a/libscience/compoundviewer/kalziumglwidget.h +++ b/libscience/compoundviewer/kalziumglwidget.h @@ -14,6 +14,8 @@ #ifndef KALZIUMGLWIDGET_H #define KALZIUMGLWIDGET_H +#include + #include "kalziumglhelperclasses.h" #include @@ -27,7 +29,7 @@ using namespace KalziumGLHelpers; * * @author Benoit Jacob */ -class KalziumGLWidget : public QGLWidget +class COMPOUNDVIEWER_EXPORT KalziumGLWidget : public QGLWidget { Q_OBJECT diff --git a/libscience/compoundviewer/libkdeedu_compoundviewer_export.h b/libscience/compoundviewer/libkdeedu_compoundviewer_export.h new file mode 100644 index 0000000..d3ebe64 --- /dev/null +++ b/libscience/compoundviewer/libkdeedu_compoundviewer_export.h @@ -0,0 +1,42 @@ +/* + This file is part of libkdeedu. + Copyright (c) 2007 Pino Toscano + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + 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 + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef KDEEDU_COMPOUNDVIEWER_EXPORT_H +#define KDEEDU_COMPOUNDVIEWER_EXPORT_H + +/* needed for KDE_EXPORT macros */ +#include + +#if defined Q_OS_WIN + +#ifndef COMPOUNDVIEWER_EXPORT +# ifdef MAKE_COMPOUNDVIEWER_LIB +# define COMPOUNDVIEWER_EXPORT KDE_EXPORT +# else +# define COMPOUNDVIEWER_EXPORT KDE_IMPORT +# endif +#endif + +#else +/* export statements for unix */ +#define COMPOUNDVIEWER_EXPORT KDE_EXPORT +#endif + +#endif diff --git a/libscience/compoundviewer/openbabel2wrapper.h b/libscience/compoundviewer/openbabel2wrapper.h index 8f46ddd..6166452 100644 --- a/libscience/compoundviewer/openbabel2wrapper.h +++ b/libscience/compoundviewer/openbabel2wrapper.h @@ -18,12 +18,14 @@ #include #include +#include + #include /** * @author Carsten Niehaus */ -class OpenBabel2Wrapper +class COMPOUNDVIEWER_EXPORT OpenBabel2Wrapper { public: /** -- 2.47.3