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