]> Git trees. - libqmvoc.git/commitdiff
Create a real system to handle the visibility stuff of modern compilers.
authorPino Toscano <pino@kde.org>
Mon, 8 May 2006 16:55:15 +0000 (16:55 +0000)
committerPino Toscano <pino@kde.org>
Mon, 8 May 2006 16:55:15 +0000 (16:55 +0000)
It's necessary also to avoid visibility troubles on win32.

Every module has its own kdeedu_xxx_export.h, and defines the right xxx_EXPORT macro to use in its classes.

CCMAIL: kde-edu@kde.org

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=538718

36 files changed:
extdate/extdatepicker.h
extdate/extdatetime.h
extdate/extdatetimeedit.h
extdate/extdatewidget.h
extdate/kdeedu_extdate_export.h [new file with mode: 0644]
kdeeducore/kdeedu_core_export.h [new file with mode: 0644]
kdeeducore/keduvocdocument.h
kdeeducore/keduvocexpression.h
kdeeducore/keduvocgrammar.h
kdeeducore/keduvockvtmlreader.h
kdeeducore/keduvockvtmlwriter.h
kdeeducore/keduvocmultiplechoice.h
kdeeducore/keduvocwqlreader.h
kdeeducore/keduvocwqlwriter.h
kdeeducore/keduvowqlreader.h
kdeeducore/keduvowqlwriter.h
kdeeducore/leitnerbox.h
kdeeducore/leitnersystem.h
kdeeducore/leitnersystemview.h
kdeeducore/prefleitner.h
kdeeduplot/kdeedu_plot_export.h [new file with mode: 0644]
kdeeduplot/kplotaxis.h
kdeeduplot/kplotobject.h
kdeeduplot/kplotwidget.h
kdeeduui/kdeedu_ui_export.h [new file with mode: 0644]
kdeeduui/kdeeduglossary.h
libscience/chemicaldataobject.h
libscience/element.h
libscience/elementparser.h
libscience/isotope.h
libscience/isotopeparser.h
libscience/kdeedu_science_export.h [new file with mode: 0644]
libscience/parser.h
libscience/spectrum.h
libscience/spectrumparser.h
libscience/tempunit.h

index 13a7dd4a4b5d01ae8192550d4d6a8b70ca13a659..d7d923f249024d646e02d1291626b227f1dbd45f 100644 (file)
@@ -22,6 +22,7 @@
 #ifndef EXTDATEPICKER_H
 #define EXTDATEPICKER_H
 
+#include <kdeedu_extdate_export.h>
 
 #include "extdatetime.h"
 #include <QFrame>
@@ -52,7 +53,7 @@ class ExtDateTable;
  *
  * @short A date selection widget.
  **/
-class KDE_EXPORT ExtDatePicker: public QFrame
+class EXTDATE_EXPORT ExtDatePicker: public QFrame
 {
   Q_OBJECT
 //  Q_PROPERTY( ExtDate date READ date WRITE setDate)
index 7945c7b8aabfa58c197280bff98bc2da7e163ce0..ffd2c9ba920fc9eee628d5a5e1801088d5313dfe 100644 (file)
 #ifndef EXTDATETIME_H
 #define EXTDATETIME_H
 
+#include <kdeedu_extdate_export.h>
+
 #include <limits.h>
 #include <qstring.h>
 #include <qnamespace.h>
 #include <qdatetime.h>
-#include <kdemacros.h>
 
 #define INVALID_DAY LONG_MIN
 
@@ -67,7 +68,7 @@ extern        void test2_unit(int y, int m, int d);
  *
  *@author Michael Guitel, Jason Harris
  */
-class KDE_EXPORT ExtDate
+class EXTDATE_EXPORT ExtDate
 {
        public:
        /**
@@ -420,10 +421,10 @@ private:
        friend class ExtDateTime;
 
 #ifndef QT_NO_DATASTREAM
-       friend KDE_EXPORT QDataStream &operator<<( QDataStream &, const ExtDate & );
-       friend KDE_EXPORT QDataStream &operator>>( QDataStream &, ExtDate & );
-       friend KDE_EXPORT QDataStream &operator<<( QDataStream &, const ExtDateTime & );
-       friend KDE_EXPORT QDataStream &operator>>( QDataStream &, ExtDateTime & );
+       friend EXTDATE_EXPORT QDataStream &operator<<( QDataStream &, const ExtDate & );
+       friend EXTDATE_EXPORT QDataStream &operator>>( QDataStream &, ExtDate & );
+       friend EXTDATE_EXPORT QDataStream &operator<<( QDataStream &, const ExtDateTime & );
+       friend EXTDATE_EXPORT QDataStream &operator>>( QDataStream &, ExtDateTime & );
 #endif
 };
 
@@ -442,7 +443,7 @@ private:
        *
        *@author Michael Guitel, Jason Harris
        */
-class KDE_EXPORT ExtDateTime
+class EXTDATE_EXPORT ExtDateTime
 {
 public:
        /**
@@ -656,8 +657,8 @@ public:
                ExtDate  d;
                QTime  t;
 #ifndef QT_NO_DATASTREAM
-       friend KDE_EXPORT QDataStream &operator<<( QDataStream &, const ExtDateTime &);
-       friend KDE_EXPORT QDataStream &operator>>( QDataStream &, ExtDateTime & );
+       friend EXTDATE_EXPORT QDataStream &operator<<( QDataStream &, const ExtDateTime &);
+       friend EXTDATE_EXPORT QDataStream &operator>>( QDataStream &, ExtDateTime & );
 #endif
 };
 
@@ -666,8 +667,8 @@ public:
  *****************************************************************************/
 
 #ifndef QT_NO_DATASTREAM
-KDE_EXPORT QDataStream &operator<<( QDataStream &, const ExtDate & );
-KDE_EXPORT QDataStream &operator>>( QDataStream &, ExtDate & );
+EXTDATE_EXPORT QDataStream &operator<<( QDataStream &, const ExtDate & );
+EXTDATE_EXPORT QDataStream &operator>>( QDataStream &, ExtDate & );
 #endif // QT_NO_DATASTREAM
 
 #endif // EXTDATE_H
index 847ad57c0dd74ed7eb97f4dfacc69ef63ed2dfaa..9fe389c8ade8426257381cc13eb2236c4f0be721 100644 (file)
@@ -17,6 +17,8 @@
 #ifndef EXTDATETIMEEDIT_H
 #define EXTDATETIMEEDIT_H
 
+#include <kdeedu_extdate_export.h>
+
 /**
        *@class ExtDateEdit
        *@short provides a spinbox widget for entering an extended date.
@@ -55,7 +57,7 @@
 #include "extdatetime.h"
 #include <kdemacros.h>
 
-class KDE_EXPORT ExtDateEdit : public QSpinBox {
+class EXTDATE_EXPORT ExtDateEdit : public QSpinBox {
        Q_OBJECT
 
        public:
@@ -247,7 +249,7 @@ class KDE_EXPORT ExtDateEdit : public QSpinBox {
        *@author Jason Harris
        *@version 1.0
        */
-class KDE_EXPORT ExtDateTimeEdit : public QFrame {
+class EXTDATE_EXPORT ExtDateTimeEdit : public QFrame {
        Q_OBJECT
 
        public:
index 8c2bb6b35f5b7433924a4d37491e4c172887e665..44f3632d130df79ab43b58c31bee2a3d68b3f673 100644 (file)
@@ -22,6 +22,8 @@
 #ifndef EXTDATEWIDGET_H
 #define EXTDATEWIDGET_H
 
+#include <kdeedu_extdate_export.h>
+
 #include "extdatetime.h"
 
 /**
@@ -32,7 +34,7 @@
 * @short A pushbutton to display or allow user selection of a date.
 * @version $Id$
 */
-class KDE_EXPORT ExtDateWidget : public QWidget
+class EXTDATE_EXPORT ExtDateWidget : public QWidget
 {
   Q_OBJECT
 //  Q_PROPERTY( ExtDate date READ date WRITE setDate )
diff --git a/extdate/kdeedu_extdate_export.h b/extdate/kdeedu_extdate_export.h
new file mode 100644 (file)
index 0000000..1619740
--- /dev/null
@@ -0,0 +1,30 @@
+/*
+    This file is part of libkdeedu.
+    Copyright (c) 2006 Pino Toscano <toscano.pino@tiscali.it>
+
+    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_EXTDATE_EXPORT_H
+#define KDEEDU_EXTDATE_EXPORT_H
+
+/* needed for KDE_EXPORT macros */
+#include <kdemacros.h>
+
+/* export statements for unix */
+#define EXTDATE_EXPORT KDE_EXPORT
+
+#endif
diff --git a/kdeeducore/kdeedu_core_export.h b/kdeeducore/kdeedu_core_export.h
new file mode 100644 (file)
index 0000000..a973758
--- /dev/null
@@ -0,0 +1,30 @@
+/*
+    This file is part of libkdeedu.
+    Copyright (c) 2006 Pino Toscano <toscano.pino@tiscali.it>
+
+    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_CORE_EXPORT_H
+#define KDEEDU_CORE_EXPORT_H
+
+/* needed for KDE_EXPORT macros */
+#include <kdemacros.h>
+
+/* export statements for unix */
+#define EDUCORE_EXPORT KDE_EXPORT
+
+#endif
index 4d30882bba626ef4bb646733e908b12cab4a9173..5435630824d77d6f380ea9be5319a013203325fa 100644 (file)
@@ -18,8 +18,9 @@
 #ifndef KEDUVOCDOCUMENT_H
 #define KEDUVOCDOCUMENT_H
 
+#include <kdeedu_core_export.h>
+
 #include <QString>
-#include <kdemacros.h>
 
 #define KVD_ZERO_TIME  934329599   // 1999-08-10 23:59:59, never change
 #define KVD_VERS_PREFIX " v"       // kvoctrain v0.1.0
@@ -251,7 +252,7 @@ class LeitnerSystem;
  * This class contains the expressions of your vocabulary
  * as well as other information about the vocabulary
  */
-class KDE_EXPORT KEduVocDocument : public QObject
+class EDUCORE_EXPORT KEduVocDocument : public QObject
 {
   Q_OBJECT
   friend class KEduVocKvtmlWriter;
index 600de329ab9e869bbaa6a90220e86e7b8a910cb6..eb063b66633321f879ec7e7272b87eb74f5d9baf 100644 (file)
@@ -19,6 +19,8 @@
 #ifndef KEDUVOCEXPRESSION_H
 #define KEDUVOCEXPRESSION_H
 
+#include <kdeedu_core_export.h>
+
 #define KV_MAX_GRADE       7
 #define KV_MIN_GRADE       0
 
@@ -51,7 +53,6 @@
 #include <QStringList>
 #include <QDateTime>
 
-#include <kdemacros.h>
 #include "keduvocgrammar.h"
 #include "keduvocmultiplechoice.h"
 
@@ -63,7 +64,7 @@ typedef unsigned short count_t;
   translations
   */
 
-class KDE_EXPORT KEduVocExpression
+class EDUCORE_EXPORT KEduVocExpression
 {
 public:
 
index 9c9763a42843ed25ce1a5935bf8cdd072fa49631..cd23ce7c21ad7735c7a3311455c330b3231f1bbe 100644 (file)
@@ -27,6 +27,8 @@
 #ifndef grammarmanager_included
 #define grammarmanager_included
 
+#include <kdeedu_core_export.h>
+
 #include <QString>
 #include <QList>
 #include <QStringList>
@@ -52,7 +54,7 @@
  * It contains all available articles of the language as QString
  */
 
-class KEduVocArticle
+class EDUCORE_EXPORT KEduVocArticle
 {
 
 public:
@@ -107,7 +109,7 @@ protected:
 };
 
 
-class KEduVocComparison
+class EDUCORE_EXPORT KEduVocComparison
 {
 
 public:
@@ -161,7 +163,7 @@ protected:
 /**
  * The conjugation of a verb
  */
-class KEduVocConjugation
+class EDUCORE_EXPORT KEduVocConjugation
 {
 
 public:
index 1b707e837c683429f5f98eba8dbe3bf8562b3930..ef964aaf6f9e90dd09077fa694df0e37a9e88e41 100644 (file)
@@ -19,6 +19,8 @@
 #ifndef KEDUVOCKVTMLREADER_H
 #define KEDUVOCKVTMLREADER_H
 
+#include <kdeedu_core_export.h>
+
 #include <QFile>
 #include <QtXml/QDomDocument>
 #include <QList>
@@ -69,7 +71,7 @@ class KEduVocDocument;
 /**
 @author Eric Pignet
 */
-class KEduVocKvtmlReader : public QObject
+class EDUCORE_EXPORT  KEduVocKvtmlReader : public QObject
 {
 public:
        KEduVocKvtmlReader(QFile *file);
index 46ceb7dd7910ce5f024b70f8de88720cdc8565e7..cc486362ca9f2681231257d1ba92c505cfcb7fd8 100644 (file)
@@ -19,6 +19,8 @@
 #ifndef KEDUVOCKVTMLWRITER_H
 #define KEDUVOCKVTMLWRITER_H
 
+#include <kdeedu_core_export.h>
+
 #include <QFile>
 #include <QtXml/QDomDocument>
 #include <QList>
@@ -65,7 +67,7 @@ class KEduVocDocument;
 /**
 @author Eric Pignet
 */
-class KEduVocKvtmlWriter
+class EDUCORE_EXPORT KEduVocKvtmlWriter
 {
 public:
   KEduVocKvtmlWriter(QFile *file);
index b59f4d08ae09833abde16fbe4433b1073848c9a4..7e5a29e8ba4bf6f727b92c788fafea6ebe52f1af 100644 (file)
 #ifndef MultipleChoice_included
 #define MultipleChoice_included
 
+#include <kdeedu_core_export.h>
+
 #include <QString>
 
 #define MAX_MULTIPLE_CHOICE  5  // select one out of x
 
-class KEduVocMultipleChoice
+class EDUCORE_EXPORT KEduVocMultipleChoice
 {
 
 public:
index 06829ec423a4b38e020796cd72bc8ab24e4a968e..55f5ff081b0295ff2a6c125d9d7107080a18fd2c 100644 (file)
 #ifndef KEDUVOCWQLREADER_H
 #define KEDUVOCWQLREADER_H
 
+#include <kdeedu_core_export.h>
+
 #include <QFile>
 
 #include "keduvocdocument.h"
 
 class KEduVocDocument;
 
-class KEduVocWqlReader : public QObject
+class EDUCORE_EXPORT KEduVocWqlReader : public QObject
 {
 public:
        KEduVocWqlReader(QFile *file);
index ddf2f294d54eb046572c05440d1ae9875247b134..30abc32fddf904393c5f930951cf6f5535b1b090 100644 (file)
 #ifndef KEDUVOCWQLWRITER_H
 #define KEDUVOCWQLWRITER_H
 
+#include <kdeedu_core_export.h>
+
 #include <QFile>
 #include <QFont>
 #include <QTextStream>
 
 class KEduVocDocument;
 
-class KEduVocWqlWriter
+class EDUCORE_EXPORT KEduVocWqlWriter
 {
 public:
   KEduVocWqlWriter(QFile *file);
index 06829ec423a4b38e020796cd72bc8ab24e4a968e..55f5ff081b0295ff2a6c125d9d7107080a18fd2c 100644 (file)
 #ifndef KEDUVOCWQLREADER_H
 #define KEDUVOCWQLREADER_H
 
+#include <kdeedu_core_export.h>
+
 #include <QFile>
 
 #include "keduvocdocument.h"
 
 class KEduVocDocument;
 
-class KEduVocWqlReader : public QObject
+class EDUCORE_EXPORT KEduVocWqlReader : public QObject
 {
 public:
        KEduVocWqlReader(QFile *file);
index ddf2f294d54eb046572c05440d1ae9875247b134..30abc32fddf904393c5f930951cf6f5535b1b090 100644 (file)
 #ifndef KEDUVOCWQLWRITER_H
 #define KEDUVOCWQLWRITER_H
 
+#include <kdeedu_core_export.h>
+
 #include <QFile>
 #include <QFont>
 #include <QTextStream>
 
 class KEduVocDocument;
 
-class KEduVocWqlWriter
+class EDUCORE_EXPORT KEduVocWqlWriter
 {
 public:
   KEduVocWqlWriter(QFile *file);
index f0629bcf6ea8237e391ac334cc37837b0f428690..f6607e9b5374ca278cc8885e7ef0874b65dc6be1 100644 (file)
@@ -20,6 +20,7 @@
  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
  ***************************************************************************/
 
+#include <kdeedu_core_export.h>
 
 #include <QString>
 
@@ -32,7 +33,7 @@
  * cards of this LeitnerBox
  * @author Martin Pfeiffer <hubipete@gmx.net>
  */
-class LeitnerBox
+class EDUCORE_EXPORT LeitnerBox
 {
 public:
        /**
index 0b670edbf45f3a575593d6d462fffa9785ad010d..1a7214b5e2a9dea0b463ec072d5143be77ef62b5 100644 (file)
@@ -13,6 +13,8 @@
 //
 //
 
+#include <kdeedu_core_export.h>
+
 #include <QString>
 #include <QStringList>
 
@@ -22,7 +24,7 @@
 @author Martin Pfeiffer
 */
 
-class LeitnerSystem
+class EDUCORE_EXPORT LeitnerSystem
 {
 public:
        /**Constructor without arguments*/
index 99ab626bc71fd1b54396efa61ef274105b2d7c47..b795d84cc7147bd269f3bdfc7e6892ba88ac8317 100644 (file)
@@ -12,6 +12,8 @@
 #ifndef LEITNERSYSTEMVIEW_H
 #define LEITNERSYSTEMVIEW_H
 
+#include <kdeedu_core_export.h>
+
 #include <QWidget>
 #include <QPixmap>
 #include <QMouseEvent>
@@ -26,7 +28,7 @@ class LeitnerSystem;
  * @author Martin Pfeiffer
  */
 
-class LeitnerSystemView : public QWidget
+class EDUCORE_EXPORT LeitnerSystemView : public QWidget
 {
        Q_OBJECT
                
index cb7569344effdfa8480c7f470b24524a2f3b00ef..7182c781d9f47bd2f6e0c0fbefe7d09c61d63527 100644 (file)
@@ -21,6 +21,8 @@
  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
  **************************************************************************/
 
+#include <kdeedu_core_export.h>
+
 #include "ui_prefleitnerbase.h"
 
 class LeitnerSystemView;
@@ -31,7 +33,7 @@ class LeitnerBox;
  * This class is a dialogue for configuring a LeitnerSystem
  * @author Martin Pfeiffer <hubipete@gmx.net>
  */
-class PrefLeitner : public QDialog, public Ui::PrefLeitnerBase
+class EDUCORE_EXPORT PrefLeitner : public QDialog, public Ui::PrefLeitnerBase
 {
        Q_OBJECT
 
diff --git a/kdeeduplot/kdeedu_plot_export.h b/kdeeduplot/kdeedu_plot_export.h
new file mode 100644 (file)
index 0000000..4871793
--- /dev/null
@@ -0,0 +1,30 @@
+/*
+    This file is part of libkdeedu.
+    Copyright (c) 2006 Pino Toscano <toscano.pino@tiscali.it>
+
+    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_PLOT_EXPORT_H
+#define KDEEDU_PLOT_EXPORT_H
+
+/* needed for KDE_EXPORT macros */
+#include <kdemacros.h>
+
+/* export statements for unix */
+#define EDUPLOT_EXPORT KDE_EXPORT
+
+#endif
index 41e173c2d56b5345e8652b7f6380fab99b3e6fe3..92d9212024d14ce65f9401636302ddd20bb7dccf 100644 (file)
@@ -20,7 +20,7 @@
 
 #include <QString>
 
-#include <kdemacros.h>
+#include <kdeedu_plot_export.h>
 
 /**
  * @short Axis for KPlotWidget
@@ -30,7 +30,7 @@
  * @author Andreas Nicolai
  * @version 1.0
  */
-class KDE_EXPORT KPlotAxis {
+class EDUPLOT_EXPORT KPlotAxis {
 public:
 
        /**
index 28e8ae5982bf26d7ca407b595675e31cde3e6e28..38c33510f3cc5aa1886ccd4a657175e0c886fb3e 100644 (file)
@@ -22,7 +22,7 @@
 #include <QPointF>
 #include <QString>
 
-#include <kdemacros.h>
+#include <kdeedu_plot_export.h>
 
 /**
  * @class KPlotObject
@@ -39,7 +39,7 @@
  * @author Jason Harris
  * @version 1.1
  */
-class KDE_EXPORT KPlotObject{
+class EDUPLOT_EXPORT KPlotObject{
 public:
        /**
         * @enum PTYPE
index 138bf7e8a976b9508f48cae01014899c6af6ee78..601ab2fed57c9abdc4c296f708b692483e76a628 100644 (file)
@@ -22,7 +22,7 @@
 #include <QHash>
 #include <QList>
 
-#include <kdemacros.h>
+#include <kdeedu_plot_export.h>
 
 class QPixmap;
 class KPlotAxis;
@@ -70,7 +70,7 @@ class KPlotObject;
  *@author Jason Harris
  *@version 1.1
  */
-class KDE_EXPORT KPlotWidget : public QFrame {
+class EDUPLOT_EXPORT KPlotWidget : public QFrame {
        Q_OBJECT
        Q_PROPERTY(int leftPadding READ leftPadding)
        Q_PROPERTY(int rightPadding READ rightPadding)
diff --git a/kdeeduui/kdeedu_ui_export.h b/kdeeduui/kdeedu_ui_export.h
new file mode 100644 (file)
index 0000000..5520071
--- /dev/null
@@ -0,0 +1,30 @@
+/*
+    This file is part of libkdeedu.
+    Copyright (c) 2006 Pino Toscano <toscano.pino@tiscali.it>
+
+    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_UI_EXPORT_H
+#define KDEEDU_UI_EXPORT_H
+
+/* needed for KDE_EXPORT macros */
+#include <kdemacros.h>
+
+/* export statements for unix */
+#define EDUUI_EXPORT KDE_EXPORT
+
+#endif
index 805ee63331dfa8b3897766f377ba163215e9b369..744a4c50b4fa1cc57d40a9071d674723dd7a1f8d 100644 (file)
@@ -15,6 +15,7 @@
  *                                                                         *
  ***************************************************************************/
 
+#include <kdeedu_ui_export.h>
 
 #include <khtml_part.h>
 #include <kdialogbase.h>
@@ -35,7 +36,7 @@ class GlossaryItem;
  * This class stores all items to be displayed. It also
  * has access-methods to the items
  */
-class Glossary
+class EDUUI_EXPORT Glossary
 {
        public:
                /**
@@ -176,7 +177,7 @@ class Glossary
  * a number of pictures or references associated to it.
  * These are stored as QStringLists.
  */
-class GlossaryItem
+class EDUUI_EXPORT GlossaryItem
 {
        public:
                GlossaryItem(){};
@@ -241,7 +242,7 @@ class GlossaryItem
  * @author Pino Toscano
  * @author Carsten Niehaus
  */
-class GlossaryDialog : public KDialogBase
+class EDUUI_EXPORT GlossaryDialog : public KDialogBase
 {
        Q_OBJECT
 
index b6fea72da8f8496e9c284e90bb1429abf709cd5a..5144f5a491b37b9a9420a43645dc460e99910b71 100644 (file)
@@ -23,6 +23,8 @@
 #include <QVariant>
 #include <QString>
 
+#include <kdeedu_science_export.h>
+
 class ChemicalDataObjectPrivate;
 
 /**
@@ -33,7 +35,7 @@ class ChemicalDataObjectPrivate;
  *
  * @author Carsten Niehaus <cniehaus@kde.org>
  */
-class ChemicalDataObject
+class EDUSCIENCE_EXPORT ChemicalDataObject
 {
        public:
                /**
index c3889ee91c3b5b62598e80ac923251788843d896..3e2cf7334f12be1008a35d2a3f7b1f30a46f2a7f 100644 (file)
@@ -21,6 +21,8 @@
 #ifndef ELEMENT_H
 #define ELEMENT_H
 
+#include <kdeedu_science_export.h>
+
 #include <QList>
 #include <QVariant>
 
@@ -36,7 +38,7 @@ class Isotope;
  * @short This class is the represention of a chemical element
  * @author Carsten Niehaus
 */
-class Element
+class EDUSCIENCE_EXPORT Element
 {
        public:
                Element();
index ccd65e2334c828bf49cb023d093f36bc6f64170f..a8b989e47ce6077ef0bdcdd3541e9efbc644c9b4 100644 (file)
@@ -15,6 +15,8 @@
 
 #include <QList>
 
+#include <kdeedu_science_export.h>
+
 #include <qxml.h>
 
 class Element;
@@ -22,7 +24,7 @@ class Element;
 /**
  * @author Carsten Niehaus <cniehaus@kde.org>
  */
-class ElementSaxParser : public QXmlDefaultHandler
+class EDUSCIENCE_EXPORT ElementSaxParser : public QXmlDefaultHandler
 {
        public:
                /**
index d3211bea481d0986a428569861b7e2c5b50ff701..228e40d35ba4c5d6fc10a598907c87b04de505eb 100644 (file)
@@ -22,6 +22,8 @@
 
 class ChemicalDataObject;
 
+#include <kdeedu_science_export.h>
+
 #include <QString>
 
 /**
@@ -29,7 +31,7 @@ class ChemicalDataObject;
  *
  * This class represents an Isotope with all its properties
  */
-class Isotope
+class EDUSCIENCE_EXPORT Isotope
 {
        public:
                /**
index 301b75a3b115a50aaae6baeda2c8768605bd5e23..06ff065c0e66118fe82982a0f43e350a46a84136 100644 (file)
@@ -15,6 +15,8 @@
 
 #include <QList>
 
+#include <kdeedu_science_export.h>
+
 #include <qxml.h>
 
 class Isotope;
@@ -22,7 +24,7 @@ class Isotope;
 /**
  * @author Carsten Niehaus <cniehaus@kde.org>
  */
-class IsotopeParser : public QXmlDefaultHandler
+class EDUSCIENCE_EXPORT IsotopeParser : public QXmlDefaultHandler
 {
        public:
                /**
diff --git a/libscience/kdeedu_science_export.h b/libscience/kdeedu_science_export.h
new file mode 100644 (file)
index 0000000..b4e56df
--- /dev/null
@@ -0,0 +1,30 @@
+/*
+    This file is part of libkdeedu.
+    Copyright (c) 2006 Pino Toscano <toscano.pino@tiscali.it>
+
+    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_SCIENCE_EXPORT_H
+#define KDEEDU_SCIENCE_EXPORT_H
+
+/* needed for KDE_EXPORT macros */
+#include <kdemacros.h>
+
+/* export statements for unix */
+#define EDUSCIENCE_EXPORT KDE_EXPORT
+
+#endif
index 5fa840a2299dd0d2d80879753006d33accfc7d44..e654231fdc622e6ef114e10b7aa170241741b741 100644 (file)
@@ -14,6 +14,8 @@
 #ifndef PARSER_H
 #define PARSER_H
 
+#include <kdeedu_science_export.h>
+
 #include <QString>
 
 /**
@@ -24,7 +26,7 @@
  *
  * @author Inge Wallin
  */
-class Parser {
+class EDUSCIENCE_EXPORT Parser {
 public:
        /**
         * Constructor
index 9edb92bd2d1e0b20532e2f135f0fa3c986ed68ff..4148f7df4a80c4f5c8d4879f23fdfd67795213bd 100644 (file)
@@ -21,6 +21,8 @@
  *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.             *
  ***************************************************************************/
 
+#include <kdeedu_science_export.h>
+
 #include <QList>
 #include <QString>
 
@@ -31,7 +33,7 @@ class Element;
  *
  * This class represents an spectrum with all its properties
  */
-class Spectrum
+class EDUSCIENCE_EXPORT Spectrum
 {
        public:
                /**
index ecee3f6097380e9c8cfb95c96796cf5b590f9a4a..a355f9836a11a646101aab0a267c401260a876fb 100644 (file)
@@ -13,6 +13,8 @@
  *                                                                         *
  ***************************************************************************/
 
+#include <kdeedu_science_export.h>
+
 #include <QFile>
 #include <qxml.h>
 
@@ -25,7 +27,7 @@ class Spectrum;
 /**
  * @author Carsten Niehaus <cniehaus@kde.org>
  */
-class SpectrumParser : public QXmlDefaultHandler
+class EDUSCIENCE_EXPORT SpectrumParser : public QXmlDefaultHandler
 {
        public:
                /**
index 45153d3819f0ebda25e93b965b544502f0b5ceb4..a049155efcb1d11007e861ed27cbc235b7698e33 100644 (file)
@@ -20,6 +20,8 @@
  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.          *
  ***************************************************************************/
 
+#include <kdeedu_science_export.h>
+
 #include <QPair>
 #include <QStringList>
 
@@ -32,7 +34,7 @@
  *
  * @author Pino Toscano
  */
-class TempUnit
+class EDUSCIENCE_EXPORT TempUnit
 {
        public: