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