kchart

kdchart_export.h
1#ifndef KDCHART_EXPORT_H
2#define KDCHART_EXPORT_H
3
4#include <tqglobal.h>
5
6#if 1
7#include <koffice_export.h>
8#else
9
10#if defined(Q_OS_WIN32) && defined(KDCHART_DLL)
11#define DLL_EXPORT __declspec(dllexport)
12#define DLL_IMPORT __declspec(dllimport)
13#else
14#define DLL_EXPORT
15#define DLL_IMPORT
16#endif
17
18#if defined(KDCHART_DLL)
19#define KDCHART_EXPORT DLL_EXPORT
20#else
21#define KDCHART_EXPORT DLL_IMPORT
22#endif
23
24#endif
25
26#endif // #if 1
27
28/*
29 How to make a KD Chart DLL rather than linking statically:
30
31 1. We have an #include <kdchart_export.h> statement in all
32 of our public KD Chart header files
33
34 2. We have the KDCHART_EXPORT macro added to all of our
35 public classes.
36
37 So e.g. the class header reads:
38
39 class KDCHART_EXPORT KDChartWidget : public TQWidget
40 {
41
42 }
43
44
45 3. In order to create a DLL
46 just add "CONFIG += dll" to the qmake command line or to the [KD Chart directory]/src/src.pro file
47*/