File: qwt__global_8h-source.html

package info (click to toggle)
libqwt 4.2.0-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 9,832 kB
  • ctags: 5,512
  • sloc: cpp: 22,973; ansic: 244; makefile: 64
file content (99 lines) | stat: -rw-r--r-- 7,498 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Qwt User&apos;s Guide: qwt_global.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.8 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
<h1>qwt_global.h</h1><pre class="fragment"><div>00001 <span class="comment">/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************</span>
00002 <span class="comment"> * Qwt Widget Library</span>
00003 <span class="comment"> * Copyright (C) 1997   Josef Wilgen</span>
00004 <span class="comment"> * Copyright (C) 2002   Uwe Rathmann</span>
00005 <span class="comment"> * </span>
00006 <span class="comment"> * This library is free software; you can redistribute it and/or</span>
00007 <span class="comment"> * modify it under the terms of the Qwt License, Version 1.0</span>
00008 <span class="comment"> *****************************************************************************/</span>
00009 
00010 <span class="comment">// vim: expandtab</span>
00011 
00012 <span class="preprocessor">#ifndef QWT_GLOBAL_H</span>
00013 <span class="preprocessor"></span><span class="preprocessor">#define QWT_GLOBAL_H</span>
00014 <span class="preprocessor"></span>
00015 <span class="preprocessor">#include &lt;qglobal.h&gt;</span>
00016 <span class="preprocessor">#if QT_VERSION &lt; 400</span>
00017 <span class="preprocessor"></span><span class="preprocessor">#include &lt;qmodules.h&gt;</span>
00018 <span class="preprocessor">#endif</span>
00019 <span class="preprocessor"></span>
00020 <span class="preprocessor">#define QWT_VERSION       0x040200</span>
00021 <span class="preprocessor"></span><span class="preprocessor">#define QWT_VERSION_STR   "4.2.0"</span>
00022 <span class="preprocessor"></span>
00023 <span class="comment">//</span>
00024 <span class="comment">// Create Qwt DLL if QWT_DLL is defined (Windows only)</span>
00025 <span class="comment">//</span>
00026 
00027 <span class="preprocessor">#if defined(Q_WS_WIN)</span>
00028 <span class="preprocessor"></span>
00029 <span class="preprocessor">#if defined(_MSC_VER) </span><span class="comment">/* MSVC Compiler */</span>
00030 <span class="comment">/* template-class specialization 'identifier' is already instantiated */</span>
00031 <span class="preprocessor">#pragma warning(disable: 4660)</span>
00032 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00033 <span class="preprocessor"></span>
00034 <span class="preprocessor">#if defined(QWT_NODLL)</span>
00035 <span class="preprocessor"></span><span class="preprocessor">#undef QWT_MAKEDLL</span>
00036 <span class="preprocessor"></span><span class="preprocessor">#undef QWT_DLL</span>
00037 <span class="preprocessor"></span><span class="preprocessor">#undef QWT_TEMPLATEDLL</span>
00038 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00039 <span class="preprocessor"></span>
00040 <span class="preprocessor">#ifdef QWT_DLL</span>
00041 <span class="preprocessor"></span><span class="preprocessor">#if defined(QWT_MAKEDLL)     </span><span class="comment">/* create a Qwt DLL library */</span>
00042 <span class="preprocessor">#undef QWT_DLL</span>
00043 <span class="preprocessor"></span><span class="preprocessor">#define QWT_EXPORT  __declspec(dllexport)</span>
00044 <span class="preprocessor"></span><span class="preprocessor">#define QWT_TEMPLATEDLL</span>
00045 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00046 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00047 <span class="preprocessor"></span>
00048 <span class="preprocessor">#if defined(QWT_DLL)     </span><span class="comment">/* use a Qwt DLL library */</span>
00049 <span class="preprocessor">#define QWT_EXPORT  __declspec(dllimport)</span>
00050 <span class="preprocessor"></span><span class="preprocessor">#define QWT_TEMPLATEDLL</span>
00051 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00052 <span class="preprocessor"></span>
00053 <span class="preprocessor">#else // ! Q_WS_WIN</span>
00054 <span class="preprocessor"></span><span class="preprocessor">#undef QWT_MAKEDLL       </span><span class="comment">/* ignore these for other platforms */</span>
00055 <span class="preprocessor">#undef QWT_DLL</span>
00056 <span class="preprocessor"></span><span class="preprocessor">#undef QWT_TEMPLATEDLL</span>
00057 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00058 <span class="preprocessor"></span>
00059 <span class="preprocessor">#ifndef QWT_EXPORT</span>
00060 <span class="preprocessor"></span><span class="preprocessor">#define QWT_EXPORT</span>
00061 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00062 <span class="preprocessor"></span>
00063 <span class="preprocessor">#if QT_VERSION &lt; 300</span>
00064 <span class="preprocessor"></span><span class="comment">// Use old QArray instead of QMemArray</span>
00065 <span class="preprocessor">#define QWT_NO_MEMARRAY 1</span>
00066 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00067 <span class="preprocessor"></span>
00068 <span class="preprocessor">#if defined(Q_WS_X11) </span>
00069 <span class="preprocessor"></span><span class="preprocessor">#if (QT_VERSION &gt;= 300) &amp;&amp; (QT_VERSION &lt; 0x040000)</span>
00070 <span class="preprocessor"></span>
00071 <span class="comment">// Raster operations with texts dont work together with antialiasing.</span>
00072 <span class="comment">// On X11 it doesnt work with Xft at all, even if antialiasing</span>
00073 <span class="comment">// is disabled. QWT_BROKEN_RASTEROP_FONT disables font antialiasing</span>
00074 <span class="comment">// whenever raster operations are set. All other texts are not affected.</span>
00075 <span class="comment">// We hope that TrollTech will have added a similar workaround </span>
00076 <span class="comment">// to Qt &gt;= 4.x. </span>
00077 
00078 <span class="preprocessor">#ifndef QT_NO_XFTFREETYPE</span>
00079 <span class="preprocessor"></span><span class="preprocessor">#define QWT_BROKEN_RASTEROP_FONT 1</span>
00080 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00081 <span class="preprocessor"></span>
00082 <span class="preprocessor">#endif</span>
00083 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00084 <span class="preprocessor"></span>
00085 <span class="comment">// #define QWT_NO_COMPAT 1 // disable withdrawn functionality</span>
00086 
00087 <span class="preprocessor">#endif // QWT_GLOBAL_H</span>
</div></pre><hr size="1"><address style="align: right;"><small>Generated on Tue Nov 16 21:12:20 2004 for Qwt User's Guide by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.8 </small></address>
</body>
</html>