source: trunk/doc/html/qnamespace-h.html@ 190

Last change on this file since 190 was 190, checked in by rudi, 14 years ago

reference documentation added

File size: 24.2 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/include/qnamespace.h:1 -->
3<html>
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
6<title>qnamespace.h Include File</title>
7<style type="text/css"><!--
8fn { margin-left: 1cm; text-indent: -1cm; }
9a:link { color: #004faf; text-decoration: none }
10a:visited { color: #672967; text-decoration: none }
11body { background: #ffffff; color: black; }
12--></style>
13</head>
14<body>
15
16<table border="0" cellpadding="0" cellspacing="0" width="100%">
17<tr bgcolor="#E5E5E5">
18<td valign=center>
19 <a href="index.html">
20<font color="#004faf">Home</font></a>
21 | <a href="classes.html">
22<font color="#004faf">All&nbsp;Classes</font></a>
23 | <a href="mainclasses.html">
24<font color="#004faf">Main&nbsp;Classes</font></a>
25 | <a href="annotated.html">
26<font color="#004faf">Annotated</font></a>
27 | <a href="groups.html">
28<font color="#004faf">Grouped&nbsp;Classes</font></a>
29 | <a href="functions.html">
30<font color="#004faf">Functions</font></a>
31</td>
32<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>qnamespace.h</h1>
33
34<p>This is the verbatim text of the qnamespace.h include file. It is provided only for illustration; the copyright remains with Trolltech.
35<hr>
36<pre>
37/****************************************************************************
38** $Id: qnamespace-h.html 2051 2007-02-21 10:04:20Z chehrlic $
39**
40** Definition of Qt namespace (as class for compiler compatibility)
41**
42** Created : 980927
43**
44** Copyright (C) 1992-2007 Trolltech ASA. All rights reserved.
45**
46** This file is part of the kernel module of the Qt GUI Toolkit.
47**
48** This file may be distributed under the terms of the Q Public License
49** as defined by Trolltech ASA of Norway and appearing in the file
50** LICENSE.QPL included in the packaging of this file.
51**
52** This file may be distributed and/or modified under the terms of the
53** GNU General Public License version 2 as published by the Free Software
54** Foundation and appearing in the file LICENSE.GPL included in the
55** packaging of this file.
56**
57** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
58** licenses may use this file in accordance with the Qt Commercial License
59** Agreement provided with the Software.
60**
61** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
62** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
63**
64** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
65** information about Qt Commercial License Agreements.
66** See http://www.trolltech.com/qpl/ for QPL licensing information.
67** See http://www.trolltech.com/gpl/ for GPL licensing information.
68**
69** Contact info@trolltech.com if any conditions of this licensing are
70** not clear to you.
71**
72**********************************************************************/
73
74#ifndef QNAMESPACE_H
75#define QNAMESPACE_H
76
77#ifndef QT_H
78#include "qglobal.h"
79#endif // QT_H
80
81
82class QColor;
83class QCursor;
84
85
86class Q_EXPORT Qt {
87public:
88 QT_STATIC_CONST QColor &amp; color0;
89 QT_STATIC_CONST QColor &amp; color1;
90 QT_STATIC_CONST QColor &amp; black;
91 QT_STATIC_CONST QColor &amp; white;
92 QT_STATIC_CONST QColor &amp; darkGray;
93 QT_STATIC_CONST QColor &amp; gray;
94 QT_STATIC_CONST QColor &amp; lightGray;
95 QT_STATIC_CONST QColor &amp; red;
96 QT_STATIC_CONST QColor &amp; green;
97 QT_STATIC_CONST QColor &amp; blue;
98 QT_STATIC_CONST QColor &amp; cyan;
99 QT_STATIC_CONST QColor &amp; magenta;
100 QT_STATIC_CONST QColor &amp; yellow;
101 QT_STATIC_CONST QColor &amp; darkRed;
102 QT_STATIC_CONST QColor &amp; darkGreen;
103 QT_STATIC_CONST QColor &amp; darkBlue;
104 QT_STATIC_CONST QColor &amp; darkCyan;
105 QT_STATIC_CONST QColor &amp; darkMagenta;
106 QT_STATIC_CONST QColor &amp; darkYellow;
107
108 // documented in qevent.cpp
109 enum ButtonState { // mouse/keyboard state values
110 NoButton = 0x0000,
111 LeftButton = 0x0001,
112 RightButton = 0x0002,
113 MidButton = 0x0004,
114 MouseButtonMask = 0x0007,
115 ShiftButton = 0x0100,
116 ControlButton = 0x0200,
117 AltButton = 0x0400,
118 MetaButton = 0x0800,
119 KeyButtonMask = 0x0f00,
120 Keypad = 0x4000
121 };
122
123 // documented in qobject.cpp
124 // ideally would start at 1, as in QSizePolicy, but that breaks other things
125 enum Orientation {
126 Horizontal = 0,
127 Vertical
128 };
129
130 // documented in qlistview.cpp
131 enum SortOrder {
132 Ascending,
133 Descending
134 };
135
136 // Text formatting flags for QPainter::drawText and QLabel
137 // the following four enums can be combined to one integer which
138 // is passed as textflag to drawText and qt_format_text.
139
140 // documented in qpainter.cpp
141 enum AlignmentFlags {
142 AlignAuto = 0x0000, // text alignment
143 AlignLeft = 0x0001,
144 AlignRight = 0x0002,
145 AlignHCenter = 0x0004,
146 AlignJustify = 0x0008,
147 AlignHorizontal_Mask = AlignLeft | AlignRight | AlignHCenter | AlignJustify,
148 AlignTop = 0x0010,
149 AlignBottom = 0x0020,
150 AlignVCenter = 0x0040,
151 AlignVertical_Mask = AlignTop | AlignBottom | AlignVCenter,
152 AlignCenter = AlignVCenter | AlignHCenter
153 };
154
155 // documented in qpainter.cpp
156 enum TextFlags {
157 SingleLine = 0x0080, // misc. flags
158 DontClip = 0x0100,
159 ExpandTabs = 0x0200,
160 ShowPrefix = 0x0400,
161 WordBreak = 0x0800,
162 BreakAnywhere = 0x1000,
163#ifndef Q_QDOC
164 DontPrint = 0x2000,
165 Underline = 0x01000000,
166 Overline = 0x02000000,
167 StrikeOut = 0x04000000,
168 IncludeTrailingSpaces = 0x08000000,
169#endif
170 NoAccel = 0x4000
171 };
172
173 // Widget flags; documented in qwidget.cpp
174 typedef uint WState;
175
176 // QWidget state flags (internal, barely documented in qwidget.cpp)
177 enum WidgetState {
178 WState_Created = 0x00000001,
179 WState_Disabled = 0x00000002,
180 WState_Visible = 0x00000004,
181 WState_ForceHide = 0x00000008,
182 WState_OwnCursor = 0x00000010,
183 WState_MouseTracking = 0x00000020,
184 WState_CompressKeys = 0x00000040,
185 WState_BlockUpdates = 0x00000080,
186 WState_InPaintEvent = 0x00000100,
187 WState_Reparented = 0x00000200,
188 WState_ConfigPending = 0x00000400,
189 WState_Resized = 0x00000800,
190 WState_AutoMask = 0x00001000,
191 WState_Polished = 0x00002000,
192 WState_DND = 0x00004000,
193 WState_Reserved0 = 0x00008000,
194 WState_FullScreen = 0x00010000,
195 WState_OwnSizePolicy = 0x00020000,
196 WState_CreatedHidden = 0x00040000,
197 WState_Maximized = 0x00080000,
198 WState_Minimized = 0x00100000,
199 WState_ForceDisabled = 0x00200000,
200 WState_Exposed = 0x00400000,
201 WState_HasMouse = 0x00800000
202 };
203
204 // Widget flags2; documented in qwidget.cpp
205 typedef uint WFlags;
206
207 // documented in qwidget.cpp
208 enum WidgetFlags {
209 WType_TopLevel = 0x00000001, // widget type flags
210 WType_Dialog = 0x00000002,
211 WType_Popup = 0x00000004,
212 WType_Desktop = 0x00000008,
213 WType_Mask = 0x0000000f,
214
215 WStyle_Customize = 0x00000010, // window style flags
216 WStyle_NormalBorder = 0x00000020,
217 WStyle_DialogBorder = 0x00000040, // MS-Windows only
218 WStyle_NoBorder = 0x00002000,
219 WStyle_Title = 0x00000080,
220 WStyle_SysMenu = 0x00000100,
221 WStyle_Minimize = 0x00000200,
222 WStyle_Maximize = 0x00000400,
223 WStyle_MinMax = WStyle_Minimize | WStyle_Maximize,
224 WStyle_Tool = 0x00000800,
225 WStyle_StaysOnTop = 0x00001000,
226 WStyle_ContextHelp = 0x00004000,
227 WStyle_Reserved = 0x00008000,
228 WStyle_Mask = 0x0000fff0,
229
230 WDestructiveClose = 0x00010000, // misc flags
231 WPaintDesktop = 0x00020000,
232 WPaintUnclipped = 0x00040000,
233 WPaintClever = 0x00080000,
234 WResizeNoErase = 0x00100000, // OBSOLETE
235 WMouseNoMask = 0x00200000,
236 WStaticContents = 0x00400000,
237 WRepaintNoErase = 0x00800000, // OBSOLETE
238#if defined(Q_WS_X11)
239 WX11BypassWM = 0x01000000,
240 WWinOwnDC = 0x00000000,
241 WMacNoSheet = 0x00000000,
242 WMacDrawer = 0x00000000,
243#elif defined(Q_WS_MAC)
244 WX11BypassWM = 0x00000000,
245 WWinOwnDC = 0x00000000,
246 WMacNoSheet = 0x01000000,
247 WMacDrawer = 0x20000000,
248#else
249 WX11BypassWM = 0x00000000,
250 WWinOwnDC = 0x01000000,
251 WMacNoSheet = 0x00000000,
252 WMacDrawer = 0x00000000,
253#endif
254 WGroupLeader = 0x02000000,
255 WShowModal = 0x04000000,
256 WNoMousePropagation = 0x08000000,
257 WSubWindow = 0x10000000,
258#if defined(Q_WS_X11)
259 WStyle_Splash = 0x20000000,
260#else
261 WStyle_Splash = WStyle_NoBorder | WMacNoSheet | WStyle_Tool | WWinOwnDC,
262#endif
263 WNoAutoErase = WRepaintNoErase | WResizeNoErase
264#ifndef QT_NO_COMPAT
265 ,
266 WNorthWestGravity = WStaticContents,
267 WType_Modal = WType_Dialog | WShowModal,
268 WStyle_Dialog = WType_Dialog,
269 WStyle_NoBorderEx = WStyle_NoBorder
270#endif
271 };
272
273 enum WindowState {
274 WindowNoState = 0x00000000,
275 WindowMinimized = 0x00000001,
276 WindowMaximized = 0x00000002,
277 WindowFullScreen = 0x00000004,
278 WindowActive = 0x00000008
279 };
280
281
282 // Image conversion flags. The unusual ordering is caused by
283 // compatibility and default requirements.
284 // Documented in qimage.cpp
285
286 enum ImageConversionFlags {
287 ColorMode_Mask = 0x00000003,
288 AutoColor = 0x00000000,
289 ColorOnly = 0x00000003,
290 MonoOnly = 0x00000002,
291 // Reserved = 0x00000001,
292
293 AlphaDither_Mask = 0x0000000c,
294 ThresholdAlphaDither = 0x00000000,
295 OrderedAlphaDither = 0x00000004,
296 DiffuseAlphaDither = 0x00000008,
297 NoAlpha = 0x0000000c, // Not supported
298
299 Dither_Mask = 0x00000030,
300 DiffuseDither = 0x00000000,
301 OrderedDither = 0x00000010,
302 ThresholdDither = 0x00000020,
303 // ReservedDither= 0x00000030,
304
305 DitherMode_Mask = 0x000000c0,
306 AutoDither = 0x00000000,
307 PreferDither = 0x00000040,
308 AvoidDither = 0x00000080
309 };
310
311 // documented in qpainter.cpp
312 enum BGMode { // background mode
313 TransparentMode,
314 OpaqueMode
315 };
316
317#ifndef QT_NO_COMPAT
318 // documented in qpainter.cpp
319 enum PaintUnit { // paint unit
320 PixelUnit,
321 LoMetricUnit, // OBSOLETE
322 HiMetricUnit, // OBSOLETE
323 LoEnglishUnit, // OBSOLETE
324 HiEnglishUnit, // OBSOLETE
325 TwipsUnit // OBSOLETE
326 };
327#endif
328
329 // documented in qstyle.cpp
330#ifdef QT_NO_COMPAT
331 enum GUIStyle {
332 WindowsStyle = 1, // ### Qt 4.0: either remove the obsolete enums or clean up compat vs.
333 MotifStyle = 4 // ### QT_NO_COMPAT by reordering or combination into one enum.
334 };
335#else
336 enum GUIStyle {
337 MacStyle, // OBSOLETE
338 WindowsStyle,
339 Win3Style, // OBSOLETE
340 PMStyle, // OBSOLETE
341 MotifStyle
342 };
343#endif
344
345 // documented in qkeysequence.cpp
346 enum SequenceMatch {
347 NoMatch,
348 PartialMatch,
349 Identical
350 };
351
352 // documented in qevent.cpp
353 enum Modifier { // accelerator modifiers
354 META = 0x00100000,
355 SHIFT = 0x00200000,
356 CTRL = 0x00400000,
357 ALT = 0x00800000,
358 MODIFIER_MASK = 0x00f00000,
359 UNICODE_ACCEL = 0x10000000,
360
361 ASCII_ACCEL = UNICODE_ACCEL // 1.x compat
362 };
363
364 // documented in qevent.cpp
365 enum Key {
366 Key_Escape = 0x1000, // misc keys
367 Key_Tab = 0x1001,
368 Key_Backtab = 0x1002, Key_BackTab = Key_Backtab,
369 Key_Backspace = 0x1003, Key_BackSpace = Key_Backspace,
370 Key_Return = 0x1004,
371 Key_Enter = 0x1005,
372 Key_Insert = 0x1006,
373 Key_Delete = 0x1007,
374 Key_Pause = 0x1008,
375 Key_Print = 0x1009,
376 Key_SysReq = 0x100a,
377 Key_Clear = 0x100b,
378 Key_Home = 0x1010, // cursor movement
379 Key_End = 0x1011,
380 Key_Left = 0x1012,
381 Key_Up = 0x1013,
382 Key_Right = 0x1014,
383 Key_Down = 0x1015,
384 Key_Prior = 0x1016, Key_PageUp = Key_Prior,
385 Key_Next = 0x1017, Key_PageDown = Key_Next,
386 Key_Shift = 0x1020, // modifiers
387 Key_Control = 0x1021,
388 Key_Meta = 0x1022,
389 Key_Alt = 0x1023,
390 Key_CapsLock = 0x1024,
391 Key_NumLock = 0x1025,
392 Key_ScrollLock = 0x1026,
393 Key_F1 = 0x1030, // function keys
394 Key_F2 = 0x1031,
395 Key_F3 = 0x1032,
396 Key_F4 = 0x1033,
397 Key_F5 = 0x1034,
398 Key_F6 = 0x1035,
399 Key_F7 = 0x1036,
400 Key_F8 = 0x1037,
401 Key_F9 = 0x1038,
402 Key_F10 = 0x1039,
403 Key_F11 = 0x103a,
404 Key_F12 = 0x103b,
405 Key_F13 = 0x103c,
406 Key_F14 = 0x103d,
407 Key_F15 = 0x103e,
408 Key_F16 = 0x103f,
409 Key_F17 = 0x1040,
410 Key_F18 = 0x1041,
411 Key_F19 = 0x1042,
412 Key_F20 = 0x1043,
413 Key_F21 = 0x1044,
414 Key_F22 = 0x1045,
415 Key_F23 = 0x1046,
416 Key_F24 = 0x1047,
417 Key_F25 = 0x1048, // F25 .. F35 only on X11
418 Key_F26 = 0x1049,
419 Key_F27 = 0x104a,
420 Key_F28 = 0x104b,
421 Key_F29 = 0x104c,
422 Key_F30 = 0x104d,
423 Key_F31 = 0x104e,
424 Key_F32 = 0x104f,
425 Key_F33 = 0x1050,
426 Key_F34 = 0x1051,
427 Key_F35 = 0x1052,
428 Key_Super_L = 0x1053, // extra keys
429 Key_Super_R = 0x1054,
430 Key_Menu = 0x1055,
431 Key_Hyper_L = 0x1056,
432 Key_Hyper_R = 0x1057,
433 Key_Help = 0x1058,
434 Key_Direction_L = 0x1059,
435 Key_Direction_R = 0x1060,
436 Key_Space = 0x20, // 7 bit printable ASCII
437 Key_Any = Key_Space,
438 Key_Exclam = 0x21,
439 Key_QuoteDbl = 0x22,
440 Key_NumberSign = 0x23,
441 Key_Dollar = 0x24,
442 Key_Percent = 0x25,
443 Key_Ampersand = 0x26,
444 Key_Apostrophe = 0x27,
445 Key_ParenLeft = 0x28,
446 Key_ParenRight = 0x29,
447 Key_Asterisk = 0x2a,
448 Key_Plus = 0x2b,
449 Key_Comma = 0x2c,
450 Key_Minus = 0x2d,
451 Key_Period = 0x2e,
452 Key_Slash = 0x2f,
453 Key_0 = 0x30,
454 Key_1 = 0x31,
455 Key_2 = 0x32,
456 Key_3 = 0x33,
457 Key_4 = 0x34,
458 Key_5 = 0x35,
459 Key_6 = 0x36,
460 Key_7 = 0x37,
461 Key_8 = 0x38,
462 Key_9 = 0x39,
463 Key_Colon = 0x3a,
464 Key_Semicolon = 0x3b,
465 Key_Less = 0x3c,
466 Key_Equal = 0x3d,
467 Key_Greater = 0x3e,
468 Key_Question = 0x3f,
469 Key_At = 0x40,
470 Key_A = 0x41,
471 Key_B = 0x42,
472 Key_C = 0x43,
473 Key_D = 0x44,
474 Key_E = 0x45,
475 Key_F = 0x46,
476 Key_G = 0x47,
477 Key_H = 0x48,
478 Key_I = 0x49,
479 Key_J = 0x4a,
480 Key_K = 0x4b,
481 Key_L = 0x4c,
482 Key_M = 0x4d,
483 Key_N = 0x4e,
484 Key_O = 0x4f,
485 Key_P = 0x50,
486 Key_Q = 0x51,
487 Key_R = 0x52,
488 Key_S = 0x53,
489 Key_T = 0x54,
490 Key_U = 0x55,
491 Key_V = 0x56,
492 Key_W = 0x57,
493 Key_X = 0x58,
494 Key_Y = 0x59,
495 Key_Z = 0x5a,
496 Key_BracketLeft = 0x5b,
497 Key_Backslash = 0x5c,
498 Key_BracketRight = 0x5d,
499 Key_AsciiCircum = 0x5e,
500 Key_Underscore = 0x5f,
501 Key_QuoteLeft = 0x60,
502 Key_BraceLeft = 0x7b,
503 Key_Bar = 0x7c,
504 Key_BraceRight = 0x7d,
505 Key_AsciiTilde = 0x7e,
506
507 // Latin 1 codes adapted from X: keysymdef.h,v 1.21 94/08/28 16:17:06
508
509 Key_nobreakspace = 0x0a0,
510 Key_exclamdown = 0x0a1,
511 Key_cent = 0x0a2,
512 Key_sterling = 0x0a3,
513 Key_currency = 0x0a4,
514 Key_yen = 0x0a5,
515 Key_brokenbar = 0x0a6,
516 Key_section = 0x0a7,
517 Key_diaeresis = 0x0a8,
518 Key_copyright = 0x0a9,
519 Key_ordfeminine = 0x0aa,
520 Key_guillemotleft = 0x0ab, // left angle quotation mark
521 Key_notsign = 0x0ac,
522 Key_hyphen = 0x0ad,
523 Key_registered = 0x0ae,
524 Key_macron = 0x0af,
525 Key_degree = 0x0b0,
526 Key_plusminus = 0x0b1,
527 Key_twosuperior = 0x0b2,
528 Key_threesuperior = 0x0b3,
529 Key_acute = 0x0b4,
530 Key_mu = 0x0b5,
531 Key_paragraph = 0x0b6,
532 Key_periodcentered = 0x0b7,
533 Key_cedilla = 0x0b8,
534 Key_onesuperior = 0x0b9,
535 Key_masculine = 0x0ba,
536 Key_guillemotright = 0x0bb, // right angle quotation mark
537 Key_onequarter = 0x0bc,
538 Key_onehalf = 0x0bd,
539 Key_threequarters = 0x0be,
540 Key_questiondown = 0x0bf,
541 Key_Agrave = 0x0c0,
542 Key_Aacute = 0x0c1,
543 Key_Acircumflex = 0x0c2,
544 Key_Atilde = 0x0c3,
545 Key_Adiaeresis = 0x0c4,
546 Key_Aring = 0x0c5,
547 Key_AE = 0x0c6,
548 Key_Ccedilla = 0x0c7,
549 Key_Egrave = 0x0c8,
550 Key_Eacute = 0x0c9,
551 Key_Ecircumflex = 0x0ca,
552 Key_Ediaeresis = 0x0cb,
553 Key_Igrave = 0x0cc,
554 Key_Iacute = 0x0cd,
555 Key_Icircumflex = 0x0ce,
556 Key_Idiaeresis = 0x0cf,
557 Key_ETH = 0x0d0,
558 Key_Ntilde = 0x0d1,
559 Key_Ograve = 0x0d2,
560 Key_Oacute = 0x0d3,
561 Key_Ocircumflex = 0x0d4,
562 Key_Otilde = 0x0d5,
563 Key_Odiaeresis = 0x0d6,
564 Key_multiply = 0x0d7,
565 Key_Ooblique = 0x0d8,
566 Key_Ugrave = 0x0d9,
567 Key_Uacute = 0x0da,
568 Key_Ucircumflex = 0x0db,
569 Key_Udiaeresis = 0x0dc,
570 Key_Yacute = 0x0dd,
571 Key_THORN = 0x0de,
572 Key_ssharp = 0x0df,
573 Key_agrave = 0x0e0,
574 Key_aacute = 0x0e1,
575 Key_acircumflex = 0x0e2,
576 Key_atilde = 0x0e3,
577 Key_adiaeresis = 0x0e4,
578 Key_aring = 0x0e5,
579 Key_ae = 0x0e6,
580 Key_ccedilla = 0x0e7,
581 Key_egrave = 0x0e8,
582 Key_eacute = 0x0e9,
583 Key_ecircumflex = 0x0ea,
584 Key_ediaeresis = 0x0eb,
585 Key_igrave = 0x0ec,
586 Key_iacute = 0x0ed,
587 Key_icircumflex = 0x0ee,
588 Key_idiaeresis = 0x0ef,
589 Key_eth = 0x0f0,
590 Key_ntilde = 0x0f1,
591 Key_ograve = 0x0f2,
592 Key_oacute = 0x0f3,
593 Key_ocircumflex = 0x0f4,
594 Key_otilde = 0x0f5,
595 Key_odiaeresis = 0x0f6,
596 Key_division = 0x0f7,
597 Key_oslash = 0x0f8,
598 Key_ugrave = 0x0f9,
599 Key_uacute = 0x0fa,
600 Key_ucircumflex = 0x0fb,
601 Key_udiaeresis = 0x0fc,
602 Key_yacute = 0x0fd,
603 Key_thorn = 0x0fe,
604 Key_ydiaeresis = 0x0ff,
605
606 // multimedia/internet keys - ignored by default - see QKeyEvent c'tor
607
608 Key_Back = 0x1061,
609 Key_Forward = 0x1062,
610 Key_Stop = 0x1063,
611 Key_Refresh = 0x1064,
612
613 Key_VolumeDown = 0x1070,
614 Key_VolumeMute = 0x1071,
615 Key_VolumeUp = 0x1072,
616 Key_BassBoost = 0x1073,
617 Key_BassUp = 0x1074,
618 Key_BassDown = 0x1075,
619 Key_TrebleUp = 0x1076,
620 Key_TrebleDown = 0x1077,
621
622 Key_MediaPlay = 0x1080,
623 Key_MediaStop = 0x1081,
624 Key_MediaPrev = 0x1082,
625 Key_MediaNext = 0x1083,
626 Key_MediaRecord = 0x1084,
627
628 Key_HomePage = 0x1090,
629 Key_Favorites = 0x1091,
630 Key_Search = 0x1092,
631 Key_Standby = 0x1093,
632 Key_OpenUrl = 0x1094,
633
634 Key_LaunchMail = 0x10a0,
635 Key_LaunchMedia = 0x10a1,
636 Key_Launch0 = 0x10a2,
637 Key_Launch1 = 0x10a3,
638 Key_Launch2 = 0x10a4,
639 Key_Launch3 = 0x10a5,
640 Key_Launch4 = 0x10a6,
641 Key_Launch5 = 0x10a7,
642 Key_Launch6 = 0x10a8,
643 Key_Launch7 = 0x10a9,
644 Key_Launch8 = 0x10aa,
645 Key_Launch9 = 0x10ab,
646 Key_LaunchA = 0x10ac,
647 Key_LaunchB = 0x10ad,
648 Key_LaunchC = 0x10ae,
649 Key_LaunchD = 0x10af,
650 Key_LaunchE = 0x10b0,
651 Key_LaunchF = 0x10b1,
652
653 Key_MediaLast = 0x1fff,
654
655 Key_unknown = 0xffff
656 };
657
658 // documented in qcommonstyle.cpp
659 enum ArrowType {
660 UpArrow,
661 DownArrow,
662 LeftArrow,
663 RightArrow
664 };
665
666 // documented in qpainter.cpp
667 enum RasterOp { // raster op mode
668 CopyROP,
669 OrROP,
670 XorROP,
671 NotAndROP, EraseROP=NotAndROP,
672 NotCopyROP,
673 NotOrROP,
674 NotXorROP,
675 AndROP, NotEraseROP=AndROP,
676 NotROP,
677 ClearROP,
678 SetROP,
679 NopROP,
680 AndNotROP,
681 OrNotROP,
682 NandROP,
683 NorROP, LastROP=NorROP
684 };
685
686 // documented in qpainter.cpp
687 enum PenStyle { // pen style
688 NoPen,
689 SolidLine,
690 DashLine,
691 DotLine,
692 DashDotLine,
693 DashDotDotLine,
694 MPenStyle = 0x0f
695 };
696
697 // documented in qpainter.cpp
698 enum PenCapStyle { // line endcap style
699 FlatCap = 0x00,
700 SquareCap = 0x10,
701 RoundCap = 0x20,
702 MPenCapStyle = 0x30
703 };
704
705 // documented in qpainter.cpp
706 enum PenJoinStyle { // line join style
707 MiterJoin = 0x00,
708 BevelJoin = 0x40,
709 RoundJoin = 0x80,
710 MPenJoinStyle = 0xc0
711 };
712
713 // documented in qpainter.cpp
714 enum BrushStyle { // brush style
715 NoBrush,
716 SolidPattern,
717 Dense1Pattern,
718 Dense2Pattern,
719 Dense3Pattern,
720 Dense4Pattern,
721 Dense5Pattern,
722 Dense6Pattern,
723 Dense7Pattern,
724 HorPattern,
725 VerPattern,
726 CrossPattern,
727 BDiagPattern,
728 FDiagPattern,
729 DiagCrossPattern,
730 CustomPattern=24
731 };
732
733 // documented in qapplication_mac.cpp
734 enum MacintoshVersion {
735 //Unknown
736 MV_Unknown = 0x0000,
737
738 //Version numbers
739 MV_9 = 0x0001,
740 MV_10_DOT_0 = 0x0002,
741 MV_10_DOT_1 = 0x0003,
742 MV_10_DOT_2 = 0x0004,
743 MV_10_DOT_3 = 0x0005,
744 MV_10_DOT_4 = 0x0006,
745
746 //Code names
747 MV_CHEETAH = MV_10_DOT_0,
748 MV_PUMA = MV_10_DOT_1,
749 MV_JAGUAR = MV_10_DOT_2,
750 MV_PANTHER = MV_10_DOT_3,
751 MV_TIGER = MV_10_DOT_4
752 };
753
754 // documented in qapplication_win.cpp
755 enum WindowsVersion {
756 WV_32s = 0x0001,
757 WV_95 = 0x0002,
758 WV_98 = 0x0003,
759 WV_Me = 0x0004,
760 WV_DOS_based = 0x000f,
761
762 WV_NT = 0x0010,
763 WV_2000 = 0x0020,
764 WV_XP = 0x0030,
765 WV_2003 = 0x0040,
766 WV_VISTA = 0x0080,
767 WV_NT_based = 0x00f0,
768
769 WV_CE = 0x0100,
770 WV_CENET = 0x0200,
771 WV_CE_based = 0x0f00
772 };
773
774 // documented in qstyle.cpp
775 enum UIEffect {
776 UI_General,
777 UI_AnimateMenu,
778 UI_FadeMenu,
779 UI_AnimateCombo,
780 UI_AnimateTooltip,
781 UI_FadeTooltip,
782 UI_AnimateToolBox
783 };
784
785 // documented in qcursor.cpp
786 enum CursorShape {
787 ArrowCursor,
788 UpArrowCursor,
789 CrossCursor,
790 WaitCursor,
791 IbeamCursor,
792 SizeVerCursor,
793 SizeHorCursor,
794 SizeBDiagCursor,
795 SizeFDiagCursor,
796 SizeAllCursor,
797 BlankCursor,
798 SplitVCursor,
799 SplitHCursor,
800 PointingHandCursor,
801 ForbiddenCursor,
802 WhatsThisCursor,
803 BusyCursor,
804 LastCursor = BusyCursor,
805 BitmapCursor = 24
806 };
807
808 // Global cursors
809
810 QT_STATIC_CONST QCursor &amp; arrowCursor; // standard arrow cursor
811 QT_STATIC_CONST QCursor &amp; upArrowCursor; // upwards arrow
812 QT_STATIC_CONST QCursor &amp; crossCursor; // crosshair
813 QT_STATIC_CONST QCursor &amp; waitCursor; // hourglass/watch
814 QT_STATIC_CONST QCursor &amp; ibeamCursor; // ibeam/text entry
815 QT_STATIC_CONST QCursor &amp; sizeVerCursor; // vertical resize
816 QT_STATIC_CONST QCursor &amp; sizeHorCursor; // horizontal resize
817 QT_STATIC_CONST QCursor &amp; sizeBDiagCursor; // diagonal resize (/)
818 QT_STATIC_CONST QCursor &amp; sizeFDiagCursor; // diagonal resize (\)
819 QT_STATIC_CONST QCursor &amp; sizeAllCursor; // all directions resize
820 QT_STATIC_CONST QCursor &amp; blankCursor; // blank/invisible cursor
821 QT_STATIC_CONST QCursor &amp; splitVCursor; // vertical bar with left-right
822 // arrows
823 QT_STATIC_CONST QCursor &amp; splitHCursor; // horizontal bar with up-down
824 // arrows
825 QT_STATIC_CONST QCursor &amp; pointingHandCursor; // pointing hand
826 QT_STATIC_CONST QCursor &amp; forbiddenCursor; // forbidden cursor (slashed circle)
827 QT_STATIC_CONST QCursor &amp; whatsThisCursor; // arrow with a question mark
828 QT_STATIC_CONST QCursor &amp; busyCursor; // arrow with hourglass
829
830
831 enum TextFormat {
832 PlainText,
833 RichText,
834 AutoText,
835 LogText
836 };
837
838 // Documented in qtextedit.cpp
839 enum AnchorAttribute {
840 AnchorName,
841 AnchorHref
842 };
843
844 // Documented in qmainwindow.cpp
845 enum Dock {
846 DockUnmanaged,
847 DockTornOff,
848 DockTop,
849 DockBottom,
850 DockRight,
851 DockLeft,
852 DockMinimized
853#ifndef QT_NO_COMPAT
854 ,
855 Unmanaged = DockUnmanaged,
856 TornOff = DockTornOff,
857 Top = DockTop,
858 Bottom = DockBottom,
859 Right = DockRight,
860 Left = DockLeft,
861 Minimized = DockMinimized
862#endif
863 };
864 // compatibility
865 typedef Dock ToolBarDock;
866
867 // documented in qdatetime.cpp
868 enum DateFormat {
869 TextDate, // default Qt
870 ISODate, // ISO 8601
871 LocalDate // locale dependent
872 };
873
874 // documented in qdatetime.cpp
875 enum TimeSpec {
876 LocalTime,
877 UTC
878 };
879
880 // documented in qwidget.cpp
881 enum BackgroundMode {
882 FixedColor,
883 FixedPixmap,
884 NoBackground,
885 PaletteForeground,
886 PaletteButton,
887 PaletteLight,
888 PaletteMidlight,
889 PaletteDark,
890 PaletteMid,
891 PaletteText,
892 PaletteBrightText,
893 PaletteBase,
894 PaletteBackground,
895 PaletteShadow,
896 PaletteHighlight,
897 PaletteHighlightedText,
898 PaletteButtonText,
899 PaletteLink,
900 PaletteLinkVisited,
901 X11ParentRelative
902 };
903
904 typedef uint ComparisonFlags;
905
906 // Documented in qstring.cpp
907 enum StringComparisonMode {
908 CaseSensitive = 0x00001, // 0 0001
909 BeginsWith = 0x00002, // 0 0010
910 EndsWith = 0x00004, // 0 0100
911 Contains = 0x00008, // 0 1000
912 ExactMatch = 0x00010 // 1 0000
913 };
914
915 // Documented in qtabwidget.cpp
916 enum Corner {
917 TopLeft = 0x00000,
918 TopRight = 0x00001,
919 BottomLeft = 0x00002,
920 BottomRight = 0x00003
921 };
922
923 // "handle" type for system objects. Documented as \internal in
924 // qapplication.cpp
925#if defined(Q_WS_MAC)
926 typedef void * HANDLE;
927#elif defined(Q_WS_WIN)
928 typedef void *HANDLE;
929#elif defined(Q_WS_X11)
930 typedef unsigned long HANDLE;
931#elif defined(Q_WS_QWS)
932 typedef void * HANDLE;
933#endif
934};
935
936
937class Q_EXPORT QInternal {
938public:
939 enum PaintDeviceFlags {
940 UndefinedDevice = 0x00,
941 Widget = 0x01,
942 Pixmap = 0x02,
943 Printer = 0x03,
944 Picture = 0x04,
945 System = 0x05,
946 DeviceTypeMask = 0x0f,
947 ExternalDevice = 0x10,
948 // used to emulate some of the behaviour different between Qt2 and Qt3 (mainly for printing)
949 CompatibilityMode = 0x20
950 };
951};
952
953#endif // QNAMESPACE_H
954</pre>
955<!-- eof -->
956<p><address><hr><div align=center>
957<table width=100% cellspacing=0 border=0><tr>
958<td>Copyright &copy; 2007
959<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
960<td align=right><div align=right>Qt 3.3.8</div>
961</table></div></address></body>
962</html>
Note: See TracBrowser for help on using the repository browser.