kdchart_export.h

Go to the documentation of this file.
00001 #ifndef KDCHART_EXPORT_H
00002 #define KDCHART_EXPORT_H
00003 
00004 #include <qglobal.h>
00005 
00006 #if 0
00007 #include <koffice_export.h>
00008 #else
00009 
00010 #if defined(Q_OS_WIN32) && defined(KDCHART_DLL)
00011 #define DLL_EXPORT __declspec(dllexport)
00012 #define DLL_IMPORT __declspec(dllimport)
00013 #else
00014 #define DLL_EXPORT
00015 #define DLL_IMPORT
00016 #endif
00017 
00018 #if defined(KDCHART_DLL)
00019 #define KDCHART_EXPORT DLL_EXPORT
00020 #else
00021 #define KDCHART_EXPORT DLL_IMPORT
00022 #endif
00023 
00024 #endif
00025 
00026 #endif   // #if 1
00027 
00028 /*
00029    How to make a KD Chart DLL rather than linking statically:
00030 
00031    1. We have an  #include <kdchart_export.h>  statement in all
00032       of our public KD Chart header files
00033 
00034    2. We have the  KDCHART_EXPORT  macro added to all of our
00035       public classes.
00036 
00037       So e.g. the class header reads:
00038 
00039           class KDCHART_EXPORT KDChartWidget : public QWidget
00040           {
00041 
00042           }
00043 
00044 
00045    3. In order to create a DLL
00046       just add "CONFIG += dll" to the qmake command line or to the [KD Chart directory]/src/src.pro file
00047 */

Generated on Wed Jan 26 13:03:16 2011 for KMyMoney by  doxygen 1.5.6