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
#ifndef EXTDATEPICKER_H
#define EXTDATEPICKER_H
+#include <kdeedu_extdate_export.h>
#include "extdatetime.h"
#include <QFrame>
*
* @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)
#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
*
*@author Michael Guitel, Jason Harris
*/
-class KDE_EXPORT ExtDate
+class EXTDATE_EXPORT ExtDate
{
public:
/**
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
};
*
*@author Michael Guitel, Jason Harris
*/
-class KDE_EXPORT ExtDateTime
+class EXTDATE_EXPORT ExtDateTime
{
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
};
*****************************************************************************/
#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
#ifndef EXTDATETIMEEDIT_H
#define EXTDATETIMEEDIT_H
+#include <kdeedu_extdate_export.h>
+
/**
*@class ExtDateEdit
*@short provides a spinbox widget for entering an extended date.
#include "extdatetime.h"
#include <kdemacros.h>
-class KDE_EXPORT ExtDateEdit : public QSpinBox {
+class EXTDATE_EXPORT ExtDateEdit : public QSpinBox {
Q_OBJECT
public:
*@author Jason Harris
*@version 1.0
*/
-class KDE_EXPORT ExtDateTimeEdit : public QFrame {
+class EXTDATE_EXPORT ExtDateTimeEdit : public QFrame {
Q_OBJECT
public:
#ifndef EXTDATEWIDGET_H
#define EXTDATEWIDGET_H
+#include <kdeedu_extdate_export.h>
+
#include "extdatetime.h"
/**
* @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 )
--- /dev/null
+/*
+ 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
--- /dev/null
+/*
+ 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
#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
* 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;
#ifndef KEDUVOCEXPRESSION_H
#define KEDUVOCEXPRESSION_H
+#include <kdeedu_core_export.h>
+
#define KV_MAX_GRADE 7
#define KV_MIN_GRADE 0
#include <QStringList>
#include <QDateTime>
-#include <kdemacros.h>
#include "keduvocgrammar.h"
#include "keduvocmultiplechoice.h"
translations
*/
-class KDE_EXPORT KEduVocExpression
+class EDUCORE_EXPORT KEduVocExpression
{
public:
#ifndef grammarmanager_included
#define grammarmanager_included
+#include <kdeedu_core_export.h>
+
#include <QString>
#include <QList>
#include <QStringList>
* It contains all available articles of the language as QString
*/
-class KEduVocArticle
+class EDUCORE_EXPORT KEduVocArticle
{
public:
};
-class KEduVocComparison
+class EDUCORE_EXPORT KEduVocComparison
{
public:
/**
* The conjugation of a verb
*/
-class KEduVocConjugation
+class EDUCORE_EXPORT KEduVocConjugation
{
public:
#ifndef KEDUVOCKVTMLREADER_H
#define KEDUVOCKVTMLREADER_H
+#include <kdeedu_core_export.h>
+
#include <QFile>
#include <QtXml/QDomDocument>
#include <QList>
/**
@author Eric Pignet
*/
-class KEduVocKvtmlReader : public QObject
+class EDUCORE_EXPORT KEduVocKvtmlReader : public QObject
{
public:
KEduVocKvtmlReader(QFile *file);
#ifndef KEDUVOCKVTMLWRITER_H
#define KEDUVOCKVTMLWRITER_H
+#include <kdeedu_core_export.h>
+
#include <QFile>
#include <QtXml/QDomDocument>
#include <QList>
/**
@author Eric Pignet
*/
-class KEduVocKvtmlWriter
+class EDUCORE_EXPORT KEduVocKvtmlWriter
{
public:
KEduVocKvtmlWriter(QFile *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:
#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);
#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);
#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);
#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);
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
+#include <kdeedu_core_export.h>
#include <QString>
* cards of this LeitnerBox
* @author Martin Pfeiffer <hubipete@gmx.net>
*/
-class LeitnerBox
+class EDUCORE_EXPORT LeitnerBox
{
public:
/**
//
//
+#include <kdeedu_core_export.h>
+
#include <QString>
#include <QStringList>
@author Martin Pfeiffer
*/
-class LeitnerSystem
+class EDUCORE_EXPORT LeitnerSystem
{
public:
/**Constructor without arguments*/
#ifndef LEITNERSYSTEMVIEW_H
#define LEITNERSYSTEMVIEW_H
+#include <kdeedu_core_export.h>
+
#include <QWidget>
#include <QPixmap>
#include <QMouseEvent>
* @author Martin Pfeiffer
*/
-class LeitnerSystemView : public QWidget
+class EDUCORE_EXPORT LeitnerSystemView : public QWidget
{
Q_OBJECT
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
**************************************************************************/
+#include <kdeedu_core_export.h>
+
#include "ui_prefleitnerbase.h"
class LeitnerSystemView;
* 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
--- /dev/null
+/*
+ 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
#include <QString>
-#include <kdemacros.h>
+#include <kdeedu_plot_export.h>
/**
* @short Axis for KPlotWidget
* @author Andreas Nicolai
* @version 1.0
*/
-class KDE_EXPORT KPlotAxis {
+class EDUPLOT_EXPORT KPlotAxis {
public:
/**
#include <QPointF>
#include <QString>
-#include <kdemacros.h>
+#include <kdeedu_plot_export.h>
/**
* @class KPlotObject
* @author Jason Harris
* @version 1.1
*/
-class KDE_EXPORT KPlotObject{
+class EDUPLOT_EXPORT KPlotObject{
public:
/**
* @enum PTYPE
#include <QHash>
#include <QList>
-#include <kdemacros.h>
+#include <kdeedu_plot_export.h>
class QPixmap;
class KPlotAxis;
*@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)
--- /dev/null
+/*
+ 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
* *
***************************************************************************/
+#include <kdeedu_ui_export.h>
#include <khtml_part.h>
#include <kdialogbase.h>
* This class stores all items to be displayed. It also
* has access-methods to the items
*/
-class Glossary
+class EDUUI_EXPORT Glossary
{
public:
/**
* a number of pictures or references associated to it.
* These are stored as QStringLists.
*/
-class GlossaryItem
+class EDUUI_EXPORT GlossaryItem
{
public:
GlossaryItem(){};
* @author Pino Toscano
* @author Carsten Niehaus
*/
-class GlossaryDialog : public KDialogBase
+class EDUUI_EXPORT GlossaryDialog : public KDialogBase
{
Q_OBJECT
#include <QVariant>
#include <QString>
+#include <kdeedu_science_export.h>
+
class ChemicalDataObjectPrivate;
/**
*
* @author Carsten Niehaus <cniehaus@kde.org>
*/
-class ChemicalDataObject
+class EDUSCIENCE_EXPORT ChemicalDataObject
{
public:
/**
#ifndef ELEMENT_H
#define ELEMENT_H
+#include <kdeedu_science_export.h>
+
#include <QList>
#include <QVariant>
* @short This class is the represention of a chemical element
* @author Carsten Niehaus
*/
-class Element
+class EDUSCIENCE_EXPORT Element
{
public:
Element();
#include <QList>
+#include <kdeedu_science_export.h>
+
#include <qxml.h>
class Element;
/**
* @author Carsten Niehaus <cniehaus@kde.org>
*/
-class ElementSaxParser : public QXmlDefaultHandler
+class EDUSCIENCE_EXPORT ElementSaxParser : public QXmlDefaultHandler
{
public:
/**
class ChemicalDataObject;
+#include <kdeedu_science_export.h>
+
#include <QString>
/**
*
* This class represents an Isotope with all its properties
*/
-class Isotope
+class EDUSCIENCE_EXPORT Isotope
{
public:
/**
#include <QList>
+#include <kdeedu_science_export.h>
+
#include <qxml.h>
class Isotope;
/**
* @author Carsten Niehaus <cniehaus@kde.org>
*/
-class IsotopeParser : public QXmlDefaultHandler
+class EDUSCIENCE_EXPORT IsotopeParser : public QXmlDefaultHandler
{
public:
/**
--- /dev/null
+/*
+ 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
#ifndef PARSER_H
#define PARSER_H
+#include <kdeedu_science_export.h>
+
#include <QString>
/**
*
* @author Inge Wallin
*/
-class Parser {
+class EDUSCIENCE_EXPORT Parser {
public:
/**
* Constructor
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
+#include <kdeedu_science_export.h>
+
#include <QList>
#include <QString>
*
* This class represents an spectrum with all its properties
*/
-class Spectrum
+class EDUSCIENCE_EXPORT Spectrum
{
public:
/**
* *
***************************************************************************/
+#include <kdeedu_science_export.h>
+
#include <QFile>
#include <qxml.h>
/**
* @author Carsten Niehaus <cniehaus@kde.org>
*/
-class SpectrumParser : public QXmlDefaultHandler
+class EDUSCIENCE_EXPORT SpectrumParser : public QXmlDefaultHandler
{
public:
/**
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
+#include <kdeedu_science_export.h>
+
#include <QPair>
#include <QStringList>
*
* @author Pino Toscano
*/
-class TempUnit
+class EDUSCIENCE_EXPORT TempUnit
{
public: