1
|
1 module qt.QGlobal;
|
|
2
|
|
3 public import qt.qtd.Str;
|
|
4
|
|
5 version (Tango)
|
|
6 {
|
|
7 import tango.io.Stdout;
|
|
8 void writeln(string s)
|
|
9 {
|
|
10 Stdout(s).newline;
|
|
11 }
|
|
12 }
|
|
13 else
|
|
14 import std.stdio;
|
|
15
|
|
16 template QT_BEGIN_NAMESPACE() {
|
|
17 }
|
|
18
|
|
19 template QT_END_NAMESPACE() {
|
|
20 }
|
|
21
|
|
22 template QT_BEGIN_HEADER() {
|
|
23 }
|
|
24
|
|
25 template QT_END_HEADER() {
|
|
26 }
|
|
27
|
|
28 mixin QT_BEGIN_HEADER;
|
|
29 mixin QT_BEGIN_NAMESPACE;
|
|
30
|
|
31 version(Windows)
|
|
32 {
|
|
33 export extern(C) void d_dummy() {}
|
|
34 extern (C) void __qtd_qtd_core_initCallBacks(void* toUtf8, void* dummy);
|
|
35 static this() {
|
|
36 __qtd_qtd_core_initCallBacks(&_d_toUtf8, &d_dummy);
|
|
37 }
|
|
38 }
|
|
39
|
|
40 char[] tr(char[] arg) {
|
|
41 return arg;
|
|
42 }
|
|
43
|
|
44 // TODO(katrina) get this from the C++ side
|
|
45 const char[] QT_VERSION_STR = "4.5.0";
|
|
46 /*
|
|
47 QT_VERSION is (major << 16) + (minor << 8) + patch.
|
|
48 //TODO(katrina) get this from the C++ side
|
|
49 */
|
|
50 const int QT_VERSION = 0x040403;
|
|
51 /*
|
|
52 can be used like #if (QT_VERSION >= QT_VERSION_CHECK(4, 4, 0))
|
|
53 */
|
|
54 bool QT_VERSION_CHECK( ushort major, ushort minor, ushort patch )
|
|
55 {
|
|
56 return cast(bool)((major<<16)|(minor<<8)|(patch));
|
|
57 }
|
|
58 //TODO(katrina) get this from the C++ side
|
|
59 const char[] QT_PACKAGEDATE_STR = "2008-09-27";
|
|
60 //TODO(katrina) get this from the C++ side
|
|
61 const char[] QT_PACKAGE_TAG = "gc9953de622c6a0f655322e0d9f5bd6dc2803b470";
|
|
62
|
|
63 /*
|
|
64 Size-dependent types (architechture-dependent byte order)
|
|
65
|
|
66 Make sure to update QMetaType when changing these typedefs
|
|
67 */
|
|
68
|
|
69 alias char qint8; /* 8 bit signed */
|
|
70 alias char quint8; /* 8 bit unsigned */
|
|
71 alias short qint16; /* 16 bit signed */
|
|
72 alias ushort quint16; /* 16 bit unsigned */
|
|
73 alias int qint32; /* 32 bit signed */
|
|
74 alias uint quint32; /* 32 bit unsigned */
|
|
75 alias long qint64; /* 64 bit signed */
|
|
76 alias ulong quint64; /* 64 bit unsigned */
|
|
77
|
39
|
78 version (X86)
|
|
79 {
|
|
80 alias quint32 quintptr;
|
|
81 alias qint32 qptrdiff;
|
|
82 }
|
|
83 else version (X86_64)
|
|
84 {
|
|
85 alias quint64 quintptr;
|
|
86 alias qint64 qptrdiff;
|
|
87 }
|
|
88
|
1
|
89 const byte QT_POINTER_SIZE = 8;
|
|
90
|
|
91 alias int QNoImplicitBoolCast;
|
|
92
|
|
93 alias double qreal;
|
|
94
|
|
95
|
|
96 /*
|
|
97 Utility macros and inline functions
|
|
98 TODO(katrina) see if we need to do anything to make these
|
|
99 able to be evaluated at compile time
|
|
100 */
|
|
101
|
|
102 T qAbs(T)(T t) { return t >= 0 ? t : -t; }
|
|
103
|
|
104 int qRound(qreal d)
|
|
105 { return d >= 0.0 ? cast(int)(d + 0.5) : cast(int)(d - cast(int)(d-1) + 0.5) + cast(int)(d-1); }
|
|
106
|
|
107 qint64 qRound64(qreal d)
|
|
108 { return d >= 0.0 ? cast(qint64)(d + 0.5) : cast(qint64)(d - cast(qint64)(d-1) + 0.5) + cast(qint64)(d-1); }
|
|
109
|
|
110 T qMin(T)(T a,T b) { if (a < b) return a; return b; }
|
|
111 T qMax(T)(T a, T b) { if (a < b) return b; return a; }
|
|
112 T qBound(T)(T min, T val,T max) { return qMax(min, qMin(max, val)); }
|
|
113
|
|
114 /*
|
|
115 Data stream functions are provided by many classes (defined in qdatastream.h)
|
|
116 */
|
|
117
|
|
118 //class QDataStream;
|
|
119
|
|
120 /*
|
|
121 System information
|
|
122 */
|
|
123
|
|
124 class QSysInfo {
|
|
125 public:
|
|
126 enum Sizes {
|
|
127 WordSize = ((void *).sizeof<<3)
|
|
128 };
|
|
129
|
|
130 enum Endian {
|
|
131 BigEndian,
|
|
132 LittleEndian,
|
|
133 ByteOrder = BigEndian
|
|
134 };
|
|
135 /* needed to bootstrap qmake */
|
|
136 static const int ByteOrder;
|
|
137
|
|
138 enum WinVersion {
|
|
139 WV_32s = 0x0001,
|
|
140 WV_95 = 0x0002,
|
|
141 WV_98 = 0x0003,
|
|
142 WV_Me = 0x0004,
|
|
143 WV_DOS_based= 0x000f,
|
|
144
|
|
145 WV_NT = 0x0010,
|
|
146 WV_2000 = 0x0020,
|
|
147 WV_XP = 0x0030,
|
|
148 WV_2003 = 0x0040,
|
|
149 WV_VISTA = 0x0080,
|
|
150 WV_NT_based = 0x00f0,
|
|
151
|
|
152 WV_CE = 0x0100,
|
|
153 WV_CENET = 0x0200,
|
|
154 WV_CE_5 = 0x0300,
|
|
155 WV_CE_6 = 0x0400,
|
|
156 WV_CE_based = 0x0f00
|
|
157 };
|
|
158 static const WinVersion WindowsVersion;
|
|
159 static WinVersion windowsVersion();
|
|
160
|
|
161 enum MacVersion {
|
|
162 MV_Unknown = 0x0000,
|
|
163
|
|
164 /* version */
|
|
165 MV_9 = 0x0001,
|
|
166 MV_10_0 = 0x0002,
|
|
167 MV_10_1 = 0x0003,
|
|
168 MV_10_2 = 0x0004,
|
|
169 MV_10_3 = 0x0005,
|
|
170 MV_10_4 = 0x0006,
|
|
171 MV_10_5 = 0x0007,
|
|
172
|
|
173 /* codenames */
|
|
174 MV_CHEETAH = MV_10_0,
|
|
175 MV_PUMA = MV_10_1,
|
|
176 MV_JAGUAR = MV_10_2,
|
|
177 MV_PANTHER = MV_10_3,
|
|
178 MV_TIGER = MV_10_4,
|
|
179 MV_LEOPARD = MV_10_5
|
|
180 };
|
|
181 static const MacVersion MacintoshVersion;
|
|
182 };
|
|
183
|
|
184 char[] qVersion();
|
|
185 bool qSharedBuild();
|
|
186
|
|
187 int qMacVersion() { return QSysInfo.MacintoshVersion; }
|
|
188
|
|
189 void qUnused(T)(T x) { cast(void) x; }
|
|
190 void Q_UNUSED(T)(T x) { qUnused(x); }
|
|
191
|
|
192 /*
|
|
193 Debugging and error handling
|
|
194 */
|
|
195
|
|
196 //class QString;
|
|
197 //char[] qPrintable(QString string) { string.toLocal8Bit().constData(); }
|
|
198 //TODO(katrina) These should probably actually call into the c++ functions
|
|
199 void qDebug( char[] str ) /* print debug message */
|
|
200 { writeln(str); }
|
|
201
|
|
202 extern (C) void Qt_qWarning( char * );
|
|
203
|
|
204 void qWarning(char[] str) /* print warning message */
|
|
205 { writeln(str); }
|
|
206
|
|
207 //QString qt_error_string(int errorCode = -1);
|
|
208 void qCritical(char[] str) /* print critical message */
|
|
209 { writeln(str); }
|
|
210
|
|
211 /*
|
|
212 Forward declarations only.
|
|
213
|
|
214 In order to use the qDebug() stream, you must #include<QDebug>
|
|
215 */
|
|
216 //class QDebug;
|
|
217 //class QNoDebug;
|
|
218 //QDebug qDebug();
|
|
219 //QDebug qWarning();
|
|
220 //QDebug qCritical();
|
|
221
|
|
222 void qt_noop() {}
|
|
223 //TODO(katrina) Implement these
|
|
224 void qt_assert(char[] assertion, char[] file, int line);
|
|
225
|
|
226 void qt_assert_x(char[] where, char[] what, char[] file, int line);
|
|
227
|
|
228 void qt_check_pointer(char[], int);
|
|
229
|
|
230 enum QtMsgType { QtDebugMsg, QtWarningMsg, QtCriticalMsg, QtFatalMsg, QtSystemMsg = QtCriticalMsg };
|
|
231
|
|
232 void qt_message_output(QtMsgType, char[] buf);
|
|
233 //class QtMsgHandler;
|
|
234 //QtMsgHandler qInstallMsgHandler(QtMsgHandler);
|
|
235
|
|
236 // forward declaration, since qatomic.h needs qglobal.h
|
|
237 class QBasicAtomicPointer(T);
|
|
238
|
|
239 // POD for Q_GLOBAL_STATIC
|
|
240 class QGlobalStatic(T)
|
|
241 {
|
|
242 public:
|
|
243 QBasicAtomicPointer!(T) pointer;
|
|
244 bool destroyed;
|
|
245 };
|
|
246
|
|
247 // Created as a function-local static to delete a QGlobalStatic<T>
|
|
248 class QGlobalStaticDeleter(T)
|
|
249 {
|
|
250 public:
|
|
251 QGlobalStatic!(T) globalStatic;
|
|
252 this(QGlobalStatic!(T) _globalStatic) {
|
|
253 globalStatic(_globalStatic);
|
|
254 }
|
|
255
|
|
256 ~this()
|
|
257 {
|
|
258 delete globalStatic.pointer;
|
|
259 globalStatic.pointer = 0;
|
|
260 globalStatic.destroyed = true;
|
|
261 }
|
|
262 };
|
|
263
|
|
264 class QBool
|
|
265 {
|
|
266 bool b;
|
|
267
|
|
268 public:
|
|
269 this(bool B) { b = B; }
|
|
270 // void *() const
|
|
271 // { return b ? static_cast<const void *>(this) : static_cast<const void *>(0); }
|
|
272 }
|
|
273
|
|
274 bool qFuzzyCompare(double p1, double p2)
|
|
275 {
|
|
276 return (qAbs(p1 - p2) <= 0.000000000001 * qMin(qAbs(p1), qAbs(p2)));
|
|
277 }
|
|
278
|
|
279 bool qFuzzyCompare(float p1, float p2)
|
|
280 {
|
|
281 return (qAbs(p1 - p2) <= 0.00001f * qMin(qAbs(p1), qAbs(p2)));
|
|
282 }
|
|
283
|
|
284 /*
|
|
285 This function tests a double for a null value. It doesn't
|
|
286 check whether the actual value is 0 or close to 0, but whether
|
|
287 it is binary 0.
|
|
288 */
|
|
289 bool qIsNull(double d)
|
|
290 {
|
|
291 union U {
|
|
292 double d;
|
|
293 quint64 u;
|
|
294 };
|
|
295 U val;
|
|
296 val.d = d;
|
|
297 return val.u == cast(quint64)(0);
|
|
298 }
|
|
299
|
|
300 /*
|
|
301 This function tests a float for a null value. It doesn't
|
|
302 check whether the actual value is 0 or close to 0, but whether
|
|
303 it is binary 0.
|
|
304 */
|
|
305 bool qIsNull(float f)
|
|
306 {
|
|
307 union U {
|
|
308 float f;
|
|
309 quint32 u;
|
|
310 };
|
|
311 U val;
|
|
312 val.f = f;
|
|
313 return val.u == 0u;
|
|
314 }
|
|
315
|
|
316 /*
|
|
317 Compilers which follow outdated template instantiation rules
|
|
318 require a class to have a comparison operator to exist when
|
|
319 a QList of this type is instantiated. It's not actually
|
|
320 used in the list, though. Hence the dummy implementation.
|
|
321 Just in case other code relies on it we better trigger a warning
|
|
322 mandating a real implementation.
|
|
323 */
|
|
324
|
|
325
|
|
326 /*
|
|
327 QTypeInfo - type trait functionality
|
|
328 qIsDetached - data sharing functionality
|
|
329 */
|
|
330
|
|
331 /*
|
|
332 The catch-all template.
|
|
333 */
|
|
334
|
|
335 bool qIsDetached(T)(T) { return true; }
|
|
336
|
|
337 class QTypeInfossss(T)
|
|
338 {
|
|
339 public:
|
|
340 enum {
|
|
341 isPointer = false,
|
|
342 isComplex = true,
|
|
343 isStatic = true,
|
|
344 isLarge = ((T).sizeof>(void*).sizeof),
|
|
345 isDummy = false
|
|
346 };
|
|
347 };
|
|
348
|
|
349 class QTypeInfo(T)
|
|
350 {
|
|
351 public:
|
|
352 enum {
|
|
353 isPointer = true,
|
|
354 isComplex = false,
|
|
355 isStatic = false,
|
|
356 isLarge = false,
|
|
357 isDummy = false
|
|
358 };
|
|
359 };
|
|
360
|
|
361
|
|
362 /*
|
|
363 Specialize a specific type with:
|
|
364
|
|
365 Q_DECLARE_TYPEINFO(type, flags);
|
|
366
|
|
367 where 'type' is the name of the type to specialize and 'flags' is
|
|
368 logically-OR'ed combination of the flags below.
|
|
369 */
|
|
370 enum { /* TYPEINFO flags */
|
|
371 Q_COMPLEX_TYPE = 0,
|
|
372 Q_PRIMITIVE_TYPE = 0x1,
|
|
373 Q_STATIC_TYPE = 0,
|
|
374 Q_MOVABLE_TYPE = 0x2,
|
|
375 Q_DUMMY_TYPE = 0x4
|
|
376 };
|
|
377
|
|
378 /*
|
|
379 Specialize a shared type with:
|
|
380
|
|
381 Q_DECLARE_SHARED(type);
|
|
382
|
|
383 where 'type' is the name of the type to specialize. NOTE: shared
|
|
384 types must declare a 'bool isDetached(void) const;' member for this
|
|
385 to work.
|
|
386 */
|
|
387 void qSwap_helper(T)(ref T value1, ref T value2, T*)
|
|
388 {
|
|
389 T t = value1;
|
|
390 value1 = value2;
|
|
391 value2 = t;
|
|
392 }
|
|
393 bool qIsDetached(T)(ref T t) { return t.isDetached(); }
|
|
394 void qSwap_helper(T)(ref T value1, ref T value2, T*)
|
|
395 {
|
|
396 const T.DataPtr t = value1.data_ptr();
|
|
397 value1.data_ptr() = value2.data_ptr();
|
|
398 value2.data_ptr() = t;
|
|
399 }
|
|
400 void qSwap(T)(ref T value1, ref T value2)
|
|
401 {
|
|
402 const T.DataPtr t = value1.data_ptr();
|
|
403 value1.data_ptr() = value2.data_ptr();
|
|
404 value2.data_ptr() = t;
|
|
405 }
|
|
406
|
|
407 /*
|
|
408 QTypeInfo primitive specializations
|
|
409 TODO(katrina) Find out what we need to do here
|
|
410 */
|
|
411 /*
|
|
412 Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE);
|
|
413 Q_DECLARE_TYPEINFO(char, Q_PRIMITIVE_TYPE);
|
|
414 Q_DECLARE_TYPEINFO(signed char, Q_PRIMITIVE_TYPE);
|
|
415 Q_DECLARE_TYPEINFO(uchar, Q_PRIMITIVE_TYPE);
|
|
416 Q_DECLARE_TYPEINFO(short, Q_PRIMITIVE_TYPE);
|
|
417 Q_DECLARE_TYPEINFO(ushort, Q_PRIMITIVE_TYPE);
|
|
418 Q_DECLARE_TYPEINFO(int, Q_PRIMITIVE_TYPE);
|
|
419 Q_DECLARE_TYPEINFO(uint, Q_PRIMITIVE_TYPE);
|
|
420 Q_DECLARE_TYPEINFO(long, Q_PRIMITIVE_TYPE);
|
|
421 Q_DECLARE_TYPEINFO(ulong, Q_PRIMITIVE_TYPE);
|
|
422 Q_DECLARE_TYPEINFO(qint64, Q_PRIMITIVE_TYPE);
|
|
423 Q_DECLARE_TYPEINFO(quint64, Q_PRIMITIVE_TYPE);
|
|
424 Q_DECLARE_TYPEINFO(float, Q_PRIMITIVE_TYPE);
|
|
425 Q_DECLARE_TYPEINFO(double, Q_PRIMITIVE_TYPE);
|
|
426 #ifndef Q_OS_DARWIN
|
|
427 Q_DECLARE_TYPEINFO(long double, Q_PRIMITIVE_TYPE);
|
|
428 #endif
|
|
429 */
|
|
430 /*
|
|
431 These functions make it possible to use standard C++ functions with
|
|
432 a similar name from Qt header files (especially template classes).
|
|
433 TODO(katrina) Implement these
|
|
434 */
|
|
435 void * qMalloc(size_t size);
|
|
436 void qFree(void * ptr);
|
|
437 void * qRealloc(void * ptr, size_t size);
|
|
438 void * qMemCopy(void * dest, void * src, size_t n);
|
|
439 void * qMemSet(void * dest, int c, size_t n);
|
|
440
|
|
441 struct QFlags(Enum)
|
|
442 {
|
|
443 private:
|
|
444 alias void **Zero;
|
|
445 int i;
|
|
446
|
|
447 public:
|
|
448 alias Enum enum_type;
|
|
449
|
|
450 public static QFlags!(Enum) opCall(Enum)(QFlags f) {
|
|
451 QFlags!(Enum) res;
|
|
452 res.i = f.i;
|
|
453 return res;
|
|
454 }
|
|
455
|
|
456 public static QFlags opCall(Enum)(Enum f) {
|
|
457 QFlags!(Enum) res;
|
|
458 res.i = f;
|
|
459 return res;
|
|
460 }
|
|
461
|
|
462 public static QFlags opCall(Enum)(int f) {
|
|
463 QFlags!(Enum) res;
|
|
464 res.i = cast(Enum) f;
|
|
465 return res;
|
|
466 }
|
|
467
|
|
468 // this(Zero = 0) : i(0) {}
|
|
469 // this(QFlag f) : i(f) {}
|
|
470
|
|
471 // QFlags!(Enum) opAssign(QFlags f) { i = f.i; return *this; }
|
|
472 QFlags!(Enum) opAssign(int f) { i = f; return *this; }
|
|
473 QFlags!(Enum) opAndAssign(int mask) { i &= mask; return *this; }
|
|
474 QFlags!(Enum) opAndAssign(uint mask) { i &= mask; return *this; }
|
|
475 QFlags!(Enum) opOrAssign(QFlags f) { i |= f.i; return *this; }
|
|
476 QFlags!(Enum) opOrAssign(Enum f) { i |= f; return *this; }
|
|
477 QFlags!(Enum) opXorAssign(QFlags f) { i ^= f.i; return *this; }
|
|
478 QFlags!(Enum) opXorAssign(Enum f) { i ^= f; return *this; }
|
|
479
|
|
480 int toInt() { return i; }
|
|
481
|
|
482 QFlags!(Enum) opOr(QFlags f) { QFlags g; g.i = i | f.i; return g; }
|
|
483 QFlags!(Enum) opOr(Enum f) { QFlags g; g.i = i | f; return g; }
|
|
484 QFlags!(Enum) opXor(QFlags f) { QFlags g; g.i = i ^ f.i; return g; }
|
|
485 QFlags!(Enum) opXor(Enum f) { QFlags g; g.i = i ^ f; return g; }
|
|
486 QFlags!(Enum) opAnd(int mask) { QFlags g; g.i = i & mask; return g; }
|
|
487 QFlags!(Enum) opAnd(uint mask) { QFlags g; g.i = i & mask; return g; }
|
|
488 QFlags!(Enum) opAnd(Enum f) { QFlags g; g.i = i & f; return g; }
|
|
489 QFlags!(Enum) opCom() { QFlags g; g.i = ~i; return g; }
|
|
490
|
|
491 // bool operator!() { return !i; }
|
|
492
|
|
493 // bool testFlag(Enum f) { return i & f; }
|
|
494 }
|
|
495
|
|
496 /* TODO typesafety
|
|
497 #define Q_DECLARE_FLAGS(Flags, Enum)\
|
|
498 typedef QFlags<Enum> Flags;
|
|
499 #define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags) \
|
|
500 QFlags<Flags::enum_type> operator|(Flags::enum_type f1, Flags::enum_type f2) \
|
|
501 { return QFlags<Flags::enum_type>(f1) | f2; } \
|
|
502 QFlags<Flags::enum_type> operator|(Flags::enum_type f1, QFlags<Flags::enum_type> f2) \
|
|
503 { return f2 | f1; }
|
|
504 */
|
|
505
|
|
506 char[] QT_TR_NOOP(char[] x) { return x; }
|
|
507 char[] QT_TRANSLATE_NOOP(char[] s, char[] x) { return x; }
|
|
508 char[] QT_TRANSLATE_NOOP3(char[] s, char[] x, char[] comment) { return x; }
|
|
509
|
|
510 //class QByteArray;
|
|
511 //QByteArray qgetenv(char[] varName);
|
|
512 //bool qputenv(char[] varName, QByteArray value);
|
|
513
|
|
514 int qIntCast(double f) { return cast(int)(f); }
|
|
515 int qIntCast(float f) { return cast(int)(f); }
|
|
516
|
|
517 /*
|
|
518 Reentrant versions of basic rand() functions for random number generation
|
|
519 */
|
|
520 void qsrand(uint seed);
|
|
521 int qrand();
|
|
522
|
|
523
|
|
524 /*
|
|
525 This gives us the possibility to check which modules the user can
|
|
526 use. These are purely compile time checks and will generate no code.
|
|
527 */
|
|
528
|
|
529 /* Qt modules */
|
|
530
|
|
531 const ushort QT_MODULE_CORE = 0x0001;
|
|
532 const ushort QT_MODULE_GUI = 0x0002;
|
|
533 const ushort QT_MODULE_NETWORK = 0x0004;
|
|
534 const ushort QT_MODULE_OPENGL = 0x0008;
|
|
535 const ushort QT_MODULE_SQL = 0x0010;
|
|
536 const ushort QT_MODULE_XML = 0x0020;
|
|
537 const ushort QT_MODULE_QT3SUPPORTLIGHT = 0x0040;
|
|
538 const ushort QT_MODULE_QT3SUPPORT = 0x0080;
|
|
539 const ushort QT_MODULE_SVG = 0x0100;
|
|
540 const ushort QT_MODULE_ACTIVEQT = 0x0200;
|
|
541 const ushort QT_MODULE_GRAPHICSVIEW = 0x0400;
|
|
542 const ushort QT_MODULE_SCRIPT = 0x0800;
|
|
543 const ushort QT_MODULE_XMLPATTERNS = 0x1000;
|
|
544 const ushort QT_MODULE_HELP = 0x2000;
|
|
545 const ushort QT_MODULE_TEST = 0x4000;
|
|
546 const ushort QT_MODULE_DBUS = 0x8000;
|
|
547
|
|
548 /* Qt editions */
|
|
549
|
|
550 const ushort QT_EDITION_CONSOLE = (QT_MODULE_CORE
|
|
551 | QT_MODULE_NETWORK
|
|
552 | QT_MODULE_SQL
|
|
553 | QT_MODULE_SCRIPT
|
|
554 | QT_MODULE_XML
|
|
555 | QT_MODULE_XMLPATTERNS
|
|
556 | QT_MODULE_TEST
|
|
557 | QT_MODULE_DBUS);
|
|
558 const ushort QT_EDITION_DESKTOPLIGHT = (QT_MODULE_CORE
|
|
559 | QT_MODULE_GUI
|
|
560 | QT_MODULE_QT3SUPPORTLIGHT
|
|
561 | QT_MODULE_TEST
|
|
562 | QT_MODULE_DBUS);
|
|
563 const ushort QT_EDITION_OPENSOURCE = (QT_MODULE_CORE
|
|
564 | QT_MODULE_GUI
|
|
565 | QT_MODULE_NETWORK
|
|
566 | QT_MODULE_OPENGL
|
|
567 | QT_MODULE_SQL
|
|
568 | QT_MODULE_XML
|
|
569 | QT_MODULE_XMLPATTERNS
|
|
570 | QT_MODULE_SCRIPT
|
|
571 | QT_MODULE_QT3SUPPORTLIGHT
|
|
572 | QT_MODULE_QT3SUPPORT
|
|
573 | QT_MODULE_SVG
|
|
574 | QT_MODULE_GRAPHICSVIEW
|
|
575 | QT_MODULE_HELP
|
|
576 | QT_MODULE_TEST
|
|
577 | QT_MODULE_DBUS);
|
|
578 const ushort QT_EDITION_DESKTOP = (QT_EDITION_OPENSOURCE
|
|
579 | QT_MODULE_ACTIVEQT);
|
|
580 const ushort QT_EDITION_UNIVERSAL = QT_EDITION_DESKTOP;
|
|
581 const ushort QT_EDITION_ACADEMIC = QT_EDITION_DESKTOP;
|
|
582 const ushort QT_EDITION_EDUCATIONAL = QT_EDITION_DESKTOP;
|
|
583 const ushort QT_EDITION_EVALUATION = QT_EDITION_DESKTOP;
|
|
584
|
|
585 mixin QT_END_NAMESPACE;
|
|
586 mixin QT_END_HEADER;
|