Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

qwt_global.h

00001 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- ***************************** 00002 * Qwt Widget Library 00003 * Copyright (C) 1997 Josef Wilgen 00004 * Copyright (C) 2002 Uwe Rathmann 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the Qwt License, Version 1.0 00008 *****************************************************************************/ 00009 00010 // vim: expandtab 00011 00012 #ifndef QWT_GLOBAL_H 00013 #define QWT_GLOBAL_H 00014 00015 #include <qglobal.h> 00016 #if QT_VERSION < 400 00017 #include <qmodules.h> 00018 #endif 00019 00020 #define QWT_VERSION 0x040200 00021 #define QWT_VERSION_STR "4.2.0" 00022 00023 // 00024 // Create Qwt DLL if QWT_DLL is defined (Windows only) 00025 // 00026 00027 #if defined(Q_WS_WIN) 00028 00029 #if defined(_MSC_VER) /* MSVC Compiler */ 00030 /* template-class specialization 'identifier' is already instantiated */ 00031 #pragma warning(disable: 4660) 00032 #endif 00033 00034 #if defined(QWT_NODLL) 00035 #undef QWT_MAKEDLL 00036 #undef QWT_DLL 00037 #undef QWT_TEMPLATEDLL 00038 #endif 00039 00040 #ifdef QWT_DLL 00041 #if defined(QWT_MAKEDLL) /* create a Qwt DLL library */ 00042 #undef QWT_DLL 00043 #define QWT_EXPORT __declspec(dllexport) 00044 #define QWT_TEMPLATEDLL 00045 #endif 00046 #endif 00047 00048 #if defined(QWT_DLL) /* use a Qwt DLL library */ 00049 #define QWT_EXPORT __declspec(dllimport) 00050 #define QWT_TEMPLATEDLL 00051 #endif 00052 00053 #else // ! Q_WS_WIN 00054 #undef QWT_MAKEDLL /* ignore these for other platforms */ 00055 #undef QWT_DLL 00056 #undef QWT_TEMPLATEDLL 00057 #endif 00058 00059 #ifndef QWT_EXPORT 00060 #define QWT_EXPORT 00061 #endif 00062 00063 #if QT_VERSION < 300 00064 // Use old QArray instead of QMemArray 00065 #define QWT_NO_MEMARRAY 1 00066 #endif 00067 00068 #if defined(Q_WS_X11) 00069 #if (QT_VERSION >= 300) && (QT_VERSION < 0x040000) 00070 00071 // Raster operations with texts donīt work together with antialiasing. 00072 // On X11 it doesnīt work with Xft at all, even if antialiasing 00073 // is disabled. QWT_BROKEN_RASTEROP_FONT disables font antialiasing 00074 // whenever raster operations are set. All other texts are not affected. 00075 // We hope that TrollTech will have added a similar workaround 00076 // to Qt >= 4.x. 00077 00078 #ifndef QT_NO_XFTFREETYPE 00079 #define QWT_BROKEN_RASTEROP_FONT 1 00080 #endif 00081 00082 #endif 00083 #endif 00084 00085 // #define QWT_NO_COMPAT 1 // disable withdrawn functionality 00086 00087 #endif // QWT_GLOBAL_H

Generated on Tue Nov 16 21:12:20 2004 for Qwt User's Guide by doxygen 1.3.8