8f427b2 by axis at 2009-04-24 1
/****************************************************************************
2
**
ac5c099 by Jason McDonald at 2011-01-10 3
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
04e3b30 by Jason McDonald at 2009-09-09 4
** All rights reserved.
858c70f by Jason McDonald at 2009-06-16 5
** Contact: Nokia Corporation (qt-info@nokia.com)
8f427b2 by axis at 2009-04-24 6
**
7
** This file is part of the QtCore module of the Qt Toolkit.
8
**
9
** $QT_BEGIN_LICENSE:LGPL$
10
** GNU Lesser General Public License Usage
8e6e571 by Jyri Tahtela at 2011-05-13 11
** This file may be used under the terms of the GNU Lesser General Public
12
** License version 2.1 as published by the Free Software Foundation and
13
** appearing in the file LICENSE.LGPL included in the packaging of this
14
** file. Please review the following information to ensure the GNU Lesser
15
** General Public License version 2.1 requirements will be met:
16
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
8f427b2 by axis at 2009-04-24 17
**
04e3b30 by Jason McDonald at 2009-09-09 18
** In addition, as a special exception, Nokia gives you certain additional
8e6e571 by Jyri Tahtela at 2011-05-13 19
** rights. These rights are described in the Nokia Qt LGPL Exception
04e3b30 by Jason McDonald at 2009-09-09 20
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
8f427b2 by axis at 2009-04-24 21
**
8e6e571 by Jyri Tahtela at 2011-05-13 22
** GNU General Public License Usage
23
** Alternatively, this file may be used under the terms of the GNU General
24
** Public License version 3.0 as published by the Free Software Foundation
25
** and appearing in the file LICENSE.GPL included in the packaging of this
26
** file. Please review the following information to ensure the GNU General
27
** Public License version 3.0 requirements will be met:
28
** http://www.gnu.org/copyleft/gpl.html.
309db73 by Jason McDonald at 2009-08-31 29
**
8e6e571 by Jyri Tahtela at 2011-05-13 30
** Other Usage
31
** Alternatively, this file may be used in accordance with the terms and
32
** conditions contained in a signed written agreement between you and Nokia.
309db73 by Jason McDonald at 2009-08-31 33
**
34
**
35
**
36
**
8f427b2 by axis at 2009-04-24 37
**
38
** $QT_END_LICENSE$
39
**
40
****************************************************************************/
41
42
#ifndef QNAMESPACE_H
43
#define QNAMESPACE_H
44
45
#include <QtCore/qglobal.h>
46
47
QT_BEGIN_HEADER
48
49
QT_BEGIN_NAMESPACE
50
51
QT_MODULE(Core)
52
53
#ifndef Q_MOC_RUN
54
namespace
55
#else
56
class Q_CORE_EXPORT
57
#endif
58
Qt {
59
60
#if defined(Q_MOC_RUN)
61
    Q_OBJECT
62
#endif
63
64
#if (defined(Q_MOC_RUN) || defined(QT_JAMBI_RUN))
65
    // NOTE: Generally, do not add Q_ENUMS if a corresponding Q_FLAGS exists.
66
    Q_ENUMS(ScrollBarPolicy FocusPolicy ContextMenuPolicy)
67
    Q_ENUMS(ArrowType ToolButtonStyle PenStyle PenCapStyle PenJoinStyle BrushStyle)
68
    Q_ENUMS(FillRule MaskMode BGMode ClipOperation SizeMode)
69
    Q_ENUMS(BackgroundMode) // Qt3
0f29023 by Friedemann Kleint at 2009-10-08 70
    Q_ENUMS(Axis Corner LayoutDirection SizeHint Orientation DropAction)
71
    Q_FLAGS(Alignment Orientations DropActions)
8f427b2 by axis at 2009-04-24 72
    Q_FLAGS(DockWidgetAreas ToolBarAreas)
73
    Q_ENUMS(DockWidgetArea ToolBarArea)
74
    Q_ENUMS(TextFormat)
75
    Q_ENUMS(TextElideMode)
76
    Q_ENUMS(DateFormat TimeSpec DayOfWeek)
77
    Q_ENUMS(CursorShape GlobalColor)
78
    Q_ENUMS(AspectRatioMode TransformationMode)
79
    Q_FLAGS(ImageConversionFlags)
80
    Q_ENUMS(Key ShortcutContext)
81
    Q_ENUMS(TextInteractionFlag)
82
    Q_FLAGS(TextInteractionFlags)
83
    Q_ENUMS(ItemSelectionMode)
84
    Q_FLAGS(ItemFlags)
85
    Q_ENUMS(CheckState)
86
    Q_ENUMS(SortOrder CaseSensitivity)
87
    Q_FLAGS(MatchFlags)
88
    Q_FLAGS(KeyboardModifiers MouseButtons)
89
    Q_ENUMS(WindowType WindowState WindowModality WidgetAttribute ApplicationAttribute)
454e18b by Friedemann Kleint at 2009-08-21 90
    Q_ENUMS(InputMethodHint)
91
    Q_FLAGS(WindowFlags WindowStates InputMethodHints)
8f427b2 by axis at 2009-04-24 92
    Q_ENUMS(ConnectionType)
1e42dc7 by Denis Dzyubenko at 2010-07-23 93
#ifndef QT_NO_GESTURES
94
    Q_ENUMS(GestureState)
740e1f8 by Zeno Albisser at 2010-09-14 95
    Q_ENUMS(GestureType)
1e42dc7 by Denis Dzyubenko at 2010-07-23 96
#endif
8f427b2 by axis at 2009-04-24 97
#endif // (defined(Q_MOC_RUN) || defined(QT_JAMBI_RUN))
98
99
#if defined(Q_MOC_RUN)
100
public:
101
#endif
102
103
    enum GlobalColor {
104
        color0,
105
        color1,
106
        black,
107
        white,
108
        darkGray,
109
        gray,
110
        lightGray,
111
        red,
112
        green,
113
        blue,
114
        cyan,
115
        magenta,
116
        yellow,
117
        darkRed,
118
        darkGreen,
119
        darkBlue,
120
        darkCyan,
121
        darkMagenta,
122
        darkYellow,
123
        transparent
124
    };
125
126
    enum KeyboardModifier {
127
        NoModifier           = 0x00000000,
128
        ShiftModifier        = 0x02000000,
129
        ControlModifier      = 0x04000000,
130
        AltModifier          = 0x08000000,
131
        MetaModifier         = 0x10000000,
132
        KeypadModifier       = 0x20000000,
133
        GroupSwitchModifier  = 0x40000000,
134
        // Do not extend the mask to include 0x01000000
135
        KeyboardModifierMask = 0xfe000000
136
    };
137
    Q_DECLARE_FLAGS(KeyboardModifiers, KeyboardModifier)
138
139
    //shorter names for shortcuts
140
    enum Modifier {
141
        META          = Qt::MetaModifier,
142
        SHIFT         = Qt::ShiftModifier,
143
        CTRL          = Qt::ControlModifier,
144
        ALT           = Qt::AltModifier,
145
        MODIFIER_MASK = KeyboardModifierMask,
146
        UNICODE_ACCEL = 0x00000000
147
    };
148
149
    enum MouseButton {
150
        NoButton         = 0x00000000,
151
        LeftButton       = 0x00000001,
152
        RightButton      = 0x00000002,
897ecf7 by Martin Jones at 2010-03-22 153
        MidButton        = 0x00000004, // ### Qt 5: remove me
154
        MiddleButton     = MidButton,
8f427b2 by axis at 2009-04-24 155
        XButton1         = 0x00000008,
156
        XButton2         = 0x00000010,
157
        MouseButtonMask  = 0x000000ff
158
    };
159
    Q_DECLARE_FLAGS(MouseButtons, MouseButton)
160
161
#ifdef QT3_SUPPORT
162
    enum ButtonState_enum {
163
        ShiftButton     = Qt::ShiftModifier,
164
        ControlButton   = Qt::ControlModifier,
165
        AltButton       = Qt::AltModifier,
166
        MetaButton      = Qt::MetaModifier,
167
        Keypad          = Qt::KeypadModifier,
168
        KeyButtonMask   = Qt::KeyboardModifierMask
169
    };
170
    typedef int ButtonState;
171
#endif
172
173
    enum Orientation {
174
        Horizontal = 0x1,
175
        Vertical = 0x2
176
    };
177
178
    Q_DECLARE_FLAGS(Orientations, Orientation)
179
180
    enum FocusPolicy {
181
        NoFocus = 0,
182
        TabFocus = 0x1,
183
        ClickFocus = 0x2,
184
        StrongFocus = TabFocus | ClickFocus | 0x8,
185
        WheelFocus = StrongFocus | 0x4
186
    };
187
188
    enum SortOrder {
189
        AscendingOrder,
190
        DescendingOrder
191
#if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
192
        ,Ascending = AscendingOrder,
193
        Descending = DescendingOrder
194
#endif
195
    };
196
65e0d7c by Marius Bugge Monsen at 2009-04-29 197
    enum TileRule {
fb85af4 by Trond Kjernåsen at 2009-10-02 198
        StretchTile,
199
        RepeatTile,
200
        RoundTile
65e0d7c by Marius Bugge Monsen at 2009-04-29 201
    };
202
8f427b2 by axis at 2009-04-24 203
    // Text formatting flags for QPainter::drawText and QLabel.
204
    // The following two enums can be combined to one integer which
205
    // is passed as 'flags' to drawText and qt_format_text.
206
207
    enum AlignmentFlag {
208
        AlignLeft = 0x0001,
209
        AlignLeading = AlignLeft,
210
        AlignRight = 0x0002,
211
        AlignTrailing = AlignRight,
212
        AlignHCenter = 0x0004,
213
        AlignJustify = 0x0008,
214
        AlignAbsolute = 0x0010,
215
        AlignHorizontal_Mask = AlignLeft | AlignRight | AlignHCenter | AlignJustify | AlignAbsolute,
216
217
        AlignTop = 0x0020,
218
        AlignBottom = 0x0040,
219
        AlignVCenter = 0x0080,
220
        AlignVertical_Mask = AlignTop | AlignBottom | AlignVCenter,
221
222
        AlignCenter = AlignVCenter | AlignHCenter
223
#if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
224
        , AlignAuto = AlignLeft
225
#endif
226
    };
227
228
    Q_DECLARE_FLAGS(Alignment, AlignmentFlag)
229
230
    enum TextFlag {
231
        TextSingleLine = 0x0100,
232
        TextDontClip = 0x0200,
233
        TextExpandTabs = 0x0400,
234
        TextShowMnemonic = 0x0800,
235
        TextWordWrap = 0x1000,
236
        TextWrapAnywhere = 0x2000,
237
        TextDontPrint = 0x4000,
238
        TextIncludeTrailingSpaces = 0x08000000,
239
        TextHideMnemonic = 0x8000,
240
        TextJustificationForced = 0x10000,
241
        TextForceLeftToRight = 0x20000,
c225767 by Olivier Goffart at 2009-08-11 242
        TextForceRightToLeft = 0x40000,
032fb3d by Jocelyn Turcotte at 2010-05-31 243
        TextLongestVariant = 0x80000,
244
        TextBypassShaping = 0x100000
8f427b2 by axis at 2009-04-24 245
246
#if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
247
        ,SingleLine = TextSingleLine,
248
        DontClip = TextDontClip,
249
        ExpandTabs = TextExpandTabs,
250
        ShowPrefix = TextShowMnemonic,
251
        WordBreak = TextWordWrap,
252
        BreakAnywhere = TextWrapAnywhere,
253
        DontPrint = TextDontPrint,
254
        IncludeTrailingSpaces = TextIncludeTrailingSpaces,
255
        NoAccel = TextHideMnemonic
256
#endif
257
    };
258
#ifdef QT3_SUPPORT
259
    typedef TextFlag TextFlags;
260
#endif
261
262
    enum TextElideMode {
263
        ElideLeft,
264
        ElideRight,
265
        ElideMiddle,
266
        ElideNone
267
    };
268
269
    enum WindowType {
270
        Widget = 0x00000000,
271
        Window = 0x00000001,
272
        Dialog = 0x00000002 | Window,
273
        Sheet = 0x00000004 | Window,
274
        Drawer = 0x00000006 | Window,
275
        Popup = 0x00000008 | Window,
276
        Tool = 0x0000000a | Window,
277
        ToolTip = 0x0000000c | Window,
278
        SplashScreen = 0x0000000e | Window,
279
        Desktop = 0x00000010 | Window,
280
        SubWindow =  0x00000012,
281
282
        WindowType_Mask = 0x000000ff,
283
        MSWindowsFixedSizeDialogHint = 0x00000100,
284
        MSWindowsOwnDC = 0x00000200,
285
        X11BypassWindowManagerHint = 0x00000400,
286
        FramelessWindowHint = 0x00000800,
287
        WindowTitleHint = 0x00001000,
288
        WindowSystemMenuHint = 0x00002000,
289
        WindowMinimizeButtonHint = 0x00004000,
290
        WindowMaximizeButtonHint = 0x00008000,
291
        WindowMinMaxButtonsHint = WindowMinimizeButtonHint | WindowMaximizeButtonHint,
292
        WindowContextHelpButtonHint = 0x00010000,
293
        WindowShadeButtonHint = 0x00020000,
294
        WindowStaysOnTopHint = 0x00040000,
295
        // reserved for Qt3Support:
296
        // WMouseNoMask = 0x00080000,
297
        // WDestructiveClose = 0x00100000,
298
        // WStaticContents = 0x00200000,
299
        // WGroupLeader = 0x00400000,
300
        // WShowModal = 0x00800000,
301
        // WNoMousePropagation = 0x01000000,
302
        CustomizeWindowHint = 0x02000000,
303
        WindowStaysOnBottomHint = 0x04000000,
304
        WindowCloseButtonHint = 0x08000000,
305
        MacWindowToolBarButtonHint = 0x10000000,
c1c3003 by Thomas Hartmann at 2009-04-07 306
        BypassGraphicsProxyWidget = 0x20000000,
307
        WindowOkButtonHint = 0x00080000,
1d8b860 by Janne Anttila at 2010-03-01 308
        WindowCancelButtonHint = 0x00100000,
309
        WindowSoftkeysVisibleHint = 0x40000000,
310
        WindowSoftkeysRespondHint = 0x80000000
8f427b2 by axis at 2009-04-24 311
312
#ifdef QT3_SUPPORT
313
        ,
314
        WMouseNoMask = 0x00080000,
315
        WDestructiveClose = 0x00100000,
316
        WStaticContents = 0x00200000,
317
        WGroupLeader = 0x00400000,
318
        WShowModal = 0x00800000,
319
        WNoMousePropagation = 0x01000000,
320
321
        WType_TopLevel = Window,
322
        WType_Dialog = Dialog,
323
        WType_Popup = Popup,
324
        WType_Desktop = Desktop,
325
        WType_Mask = WindowType_Mask,
326
327
        WStyle_Customize = 0,
328
        WStyle_NormalBorder = 0,
329
        WStyle_DialogBorder = MSWindowsFixedSizeDialogHint,
330
        WStyle_NoBorder = FramelessWindowHint,
331
        WStyle_Title = WindowTitleHint,
332
        WStyle_SysMenu = WindowSystemMenuHint,
333
        WStyle_Minimize = WindowMinimizeButtonHint,
334
        WStyle_Maximize = WindowMaximizeButtonHint,
335
        WStyle_MinMax = WStyle_Minimize | WStyle_Maximize,
336
        WStyle_Tool = Tool,
337
        WStyle_StaysOnTop = WindowStaysOnTopHint,
338
        WStyle_ContextHelp = WindowContextHelpButtonHint,
339
340
        // misc flags
341
        WPaintDesktop = 0,
342
        WPaintClever = 0,
343
344
        WX11BypassWM            = X11BypassWindowManagerHint,
345
        WWinOwnDC               = MSWindowsOwnDC,
346
        WMacSheet               = Sheet,
347
        WMacDrawer              = Drawer,
348
349
        WStyle_Splash           = SplashScreen,
350
351
        WNoAutoErase           = 0,
352
        WRepaintNoErase        = 0,
353
        WNorthWestGravity      = WStaticContents,
354
        WType_Modal            = Dialog | WShowModal,
355
        WStyle_Dialog          = Dialog,
356
        WStyle_NoBorderEx      = FramelessWindowHint,
357
        WResizeNoErase = 0,
358
        WMacNoSheet = 0
359
#endif
360
361
    };
362
363
    Q_DECLARE_FLAGS(WindowFlags, WindowType)
364
365
    enum WindowState {
366
        WindowNoState    = 0x00000000,
367
        WindowMinimized  = 0x00000001,
368
        WindowMaximized  = 0x00000002,
369
        WindowFullScreen = 0x00000004,
370
        WindowActive     = 0x00000008
371
    };
372
373
    Q_DECLARE_FLAGS(WindowStates, WindowState)
374
375
    enum WidgetAttribute {
376
        WA_Disabled = 0,
377
        WA_UnderMouse = 1,
378
        WA_MouseTracking = 2,
379
        WA_ContentsPropagated = 3, // ## deprecated
380
        WA_OpaquePaintEvent = 4,
381
        WA_NoBackground = WA_OpaquePaintEvent, // ## deprecated
382
        WA_StaticContents = 5,
383
        WA_LaidOut = 7,
384
        WA_PaintOnScreen = 8,
385
        WA_NoSystemBackground = 9,
386
        WA_UpdatesDisabled = 10,
387
        WA_Mapped = 11,
388
        WA_MacNoClickThrough = 12, // Mac only
389
        WA_PaintOutsidePaintEvent = 13,
390
        WA_InputMethodEnabled = 14,
391
        WA_WState_Visible = 15,
392
        WA_WState_Hidden = 16,
393
394
        WA_ForceDisabled = 32,
395
        WA_KeyCompression = 33,
396
        WA_PendingMoveEvent = 34,
397
        WA_PendingResizeEvent = 35,
398
        WA_SetPalette = 36,
399
        WA_SetFont = 37,
400
        WA_SetCursor = 38,
401
        WA_NoChildEventsFromChildren = 39,
402
        WA_WindowModified = 41,
403
        WA_Resized = 42,
404
        WA_Moved = 43,
405
        WA_PendingUpdate = 44,
406
        WA_InvalidSize = 45,
407
        WA_MacBrushedMetal = 46, // Mac only
408
        WA_MacMetalStyle = WA_MacBrushedMetal, // obsolete
409
        WA_CustomWhatsThis = 47,
410
        WA_LayoutOnEntireRect = 48,
411
        WA_OutsideWSRange = 49,
412
        WA_GrabbedShortcut = 50,
413
        WA_TransparentForMouseEvents = 51,
414
        WA_PaintUnclipped = 52,
415
        WA_SetWindowIcon = 53,
416
        WA_NoMouseReplay = 54,
417
        WA_DeleteOnClose = 55,
418
        WA_RightToLeft = 56,
419
        WA_SetLayoutDirection = 57,
420
        WA_NoChildEventsForParent = 58,
421
        WA_ForceUpdatesDisabled = 59,
422
423
        WA_WState_Created = 60,
424
        WA_WState_CompressKeys = 61,
425
        WA_WState_InPaintEvent = 62,
426
        WA_WState_Reparented = 63,
427
        WA_WState_ConfigPending = 64,
428
        WA_WState_Polished = 66,
429
        WA_WState_DND = 67, // ## deprecated
430
        WA_WState_OwnSizePolicy = 68,
431
        WA_WState_ExplicitShowHide = 69,
432
433
        WA_ShowModal = 70, // ## deprecated
434
        WA_MouseNoMask = 71,
435
        WA_GroupLeader = 72, // ## deprecated
436
        WA_NoMousePropagation = 73, // ## for now, might go away.
437
        WA_Hover = 74,
438
        WA_InputMethodTransparent = 75, // Don't reset IM when user clicks on this (for virtual keyboards on embedded)
439
        WA_QuitOnClose = 76,
440
441
        WA_KeyboardFocusChange = 77,
442
443
        WA_AcceptDrops = 78,
444
        WA_DropSiteRegistered = 79, // internal
445
        WA_ForceAcceptDrops = WA_DropSiteRegistered, // ## deprecated
446
447
        WA_WindowPropagation = 80,
448
449
        WA_NoX11EventCompression = 81,
450
        WA_TintedBackground = 82,
451
        WA_X11OpenGLOverlay = 83,
452
        WA_AlwaysShowToolTips = 84,
453
        WA_MacOpaqueSizeGrip = 85,
454
        WA_SetStyle = 86,
455
456
        WA_SetLocale = 87,
457
        WA_MacShowFocusRect = 88,
458
459
        WA_MacNormalSize = 89,  // Mac only
460
        WA_MacSmallSize = 90,   // Mac only
461
        WA_MacMiniSize = 91,    // Mac only
462
463
        WA_LayoutUsesWidgetRect = 92,
464
        WA_StyledBackground = 93, // internal
465
        WA_MSWindowsUseDirect3D = 94, // Win only
466
        WA_CanHostQMdiSubWindowTitleBar = 95, // Internal
467
468
        WA_MacAlwaysShowToolWindow = 96, // Mac only
469
470
        WA_StyleSheet = 97, // internal
471
472
        WA_ShowWithoutActivating = 98,
473
474
        WA_X11BypassTransientForHint = 99,
475
476
        WA_NativeWindow = 100,
477
        WA_DontCreateNativeAncestors = 101,
478
479
        WA_MacVariableSize = 102,    // Mac only
480
481
        WA_DontShowOnScreen = 103,
482
483
        // window types from http://standards.freedesktop.org/wm-spec/
484
        WA_X11NetWmWindowTypeDesktop = 104,
485
        WA_X11NetWmWindowTypeDock = 105,
486
        WA_X11NetWmWindowTypeToolBar = 106,
487
        WA_X11NetWmWindowTypeMenu = 107,
488
        WA_X11NetWmWindowTypeUtility = 108,
489
        WA_X11NetWmWindowTypeSplash = 109,
490
        WA_X11NetWmWindowTypeDialog = 110,
491
        WA_X11NetWmWindowTypeDropDownMenu = 111,
492
        WA_X11NetWmWindowTypePopupMenu = 112,
493
        WA_X11NetWmWindowTypeToolTip = 113,
494
        WA_X11NetWmWindowTypeNotification = 114,
495
        WA_X11NetWmWindowTypeCombo = 115,
496
        WA_X11NetWmWindowTypeDND = 116,
497
498
        WA_MacFrameworkScaled  = 117,
499
500
        WA_SetWindowModality = 118,
501
        WA_WState_WindowOpacitySet = 119, // internal
502
        WA_TranslucentBackground = 120,
503
07696ec by Bradley T. Hughes at 2009-03-24 504
        WA_AcceptTouchEvents = 121,
1c6c353 by Bradley T. Hughes at 2009-06-11 505
        WA_WState_AcceptedTouchBeginEvent = 122,
3ead3df by Richard Moe Gustavsen at 2009-06-22 506
        WA_TouchPadAcceptSingleTouchEvents = 123,
07696ec by Bradley T. Hughes at 2009-03-24 507
2a8d204 by Janne Anttila at 2010-02-03 508
        WA_MergeSoftkeys =  124,
509
        WA_MergeSoftkeysRecursively =  125,
510
48dc16b by Robert Griebl at 2010-03-03 511
#if 0 // these values are reserved for Maemo5 - do not re-use them
512
        WA_Maemo5NonComposited = 126,
513
        WA_Maemo5StackedWindow = 127,
e0489b9 by mread at 2011-01-27 514
#endif
515
516
        WA_LockPortraitOrientation = 128,
517
        WA_LockLandscapeOrientation = 129,
518
        WA_AutoOrientation = 130,
519
520
#if 0 // these values are reserved for Maemo5 - do not re-use them
521
        WA_Maemo5PortraitOrientation = WA_LockPortraitOrientation,
522
        WA_Maemo5LandscapeOrientation = WA_LockLandscapeOrientation,
523
        WA_Maemo5AutoOrientation = WA_AutoOrientation,
48dc16b by Robert Griebl at 2010-03-03 524
        WA_Maemo5ShowProgressIndicator = 131,
525
#endif
9da453e by Robert Griebl at 2010-03-22 526
527
        WA_X11DoNotAcceptFocus = 132,
528
565e867 by Laszlo Agocs at 2011-04-12 529
        WA_SymbianNoSystemRotation = 133,
530
8f427b2 by axis at 2009-04-24 531
        // Add new attributes before this line
532
        WA_AttributeCount
533
    };
534
535
    enum ApplicationAttribute
536
    {
537
        AA_ImmediateWidgetCreation = 0,
538
        AA_MSWindowsUseDirect3DByDefault = 1, // Win only
539
        AA_DontShowIconsInMenus = 2,
540
        AA_NativeWindows = 3,
541
        AA_DontCreateNativeWidgetSiblings = 4,
542
        AA_MacPluginApplication = 5,
1e0e674 by Norwegian Rock Cat at 2009-05-04 543
        AA_DontUseNativeMenuBar = 6,
4af5132 by Norwegian Rock Cat at 2009-05-11 544
        AA_MacDontSwapCtrlAndMeta = 7,
4a84b27 by axis at 2010-01-08 545
        AA_S60DontConstructApplicationPanes = 8,
899094d by Sami Merila at 2011-02-16 546
        AA_S60DisablePartialScreenInputMode = 9,
8f427b2 by axis at 2009-04-24 547
548
        // Add new attributes before this line
549
        AA_AttributeCount
550
    };
551
552
553
    // Image conversion flags.  The unusual ordering is caused by
554
    // compatibility and default requirements.
555
556
    enum ImageConversionFlag {
557
        ColorMode_Mask          = 0x00000003,
558
        AutoColor               = 0x00000000,
559
        ColorOnly               = 0x00000003,
560
        MonoOnly                = 0x00000002,
561
        // Reserved             = 0x00000001,
562
563
        AlphaDither_Mask        = 0x0000000c,
564
        ThresholdAlphaDither    = 0x00000000,
565
        OrderedAlphaDither      = 0x00000004,
566
        DiffuseAlphaDither      = 0x00000008,
567
        NoAlpha                 = 0x0000000c, // Not supported
568
569
        Dither_Mask             = 0x00000030,
570
        DiffuseDither           = 0x00000000,
571
        OrderedDither           = 0x00000010,
572
        ThresholdDither         = 0x00000020,
573
        // ReservedDither       = 0x00000030,
574
575
        DitherMode_Mask         = 0x000000c0,
576
        AutoDither              = 0x00000000,
577
        PreferDither            = 0x00000040,
578
        AvoidDither             = 0x00000080,
579
7b4e032 by Samuel Rødal at 2011-03-04 580
        NoOpaqueDetection       = 0x00000100,
581
        NoFormatConversion      = 0x00000200
8f427b2 by axis at 2009-04-24 582
    };
583
    Q_DECLARE_FLAGS(ImageConversionFlags, ImageConversionFlag)
584
585
    enum BGMode {
586
        TransparentMode,
587
        OpaqueMode
588
    };
589
590
#ifdef QT3_SUPPORT
591
    enum PaintUnit {                                // paint unit
592
        PixelUnit,
593
        LoMetricUnit, // obsolete
594
        HiMetricUnit, // obsolete
595
        LoEnglishUnit, // obsolete
596
        HiEnglishUnit, // obsolete
597
        TwipsUnit // obsolete
598
    };
599
600
    enum GUIStyle {
601
        MacStyle,
602
        WindowsStyle,
603
        Win3Style,
604
        PMStyle,
605
        MotifStyle
606
    };
607
#endif
608
609
    enum Key {
610
        Key_Escape = 0x01000000,                // misc keys
611
        Key_Tab = 0x01000001,
612
        Key_Backtab = 0x01000002,
613
#if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
614
        Key_BackTab = Key_Backtab,
615
#endif
616
        Key_Backspace = 0x01000003,
617
#if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
618
        Key_BackSpace = Key_Backspace,
619
#endif
620
        Key_Return = 0x01000004,
621
        Key_Enter = 0x01000005,
622
        Key_Insert = 0x01000006,
623
        Key_Delete = 0x01000007,
624
        Key_Pause = 0x01000008,
625
        Key_Print = 0x01000009,
626
        Key_SysReq = 0x0100000a,
627
        Key_Clear = 0x0100000b,
628
        Key_Home = 0x01000010,                // cursor movement
629
        Key_End = 0x01000011,
630
        Key_Left = 0x01000012,
631
        Key_Up = 0x01000013,
632
        Key_Right = 0x01000014,
633
        Key_Down = 0x01000015,
634
        Key_PageUp = 0x01000016,
635
#if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
636
        Key_Prior = Key_PageUp,
637
#endif
638
        Key_PageDown = 0x01000017,
639
#if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
640
        Key_Next = Key_PageDown,
641
#endif
642
        Key_Shift = 0x01000020,                // modifiers
643
        Key_Control = 0x01000021,
644
        Key_Meta = 0x01000022,
645
        Key_Alt = 0x01000023,
646
        Key_CapsLock = 0x01000024,
647
        Key_NumLock = 0x01000025,
648
        Key_ScrollLock = 0x01000026,
649
        Key_F1 = 0x01000030,                // function keys
650
        Key_F2 = 0x01000031,
651
        Key_F3 = 0x01000032,
652
        Key_F4 = 0x01000033,
653
        Key_F5 = 0x01000034,
654
        Key_F6 = 0x01000035,
655
        Key_F7 = 0x01000036,
656
        Key_F8 = 0x01000037,
657
        Key_F9 = 0x01000038,
658
        Key_F10 = 0x01000039,
659
        Key_F11 = 0x0100003a,
660
        Key_F12 = 0x0100003b,
661
        Key_F13 = 0x0100003c,
662
        Key_F14 = 0x0100003d,
663
        Key_F15 = 0x0100003e,
664
        Key_F16 = 0x0100003f,
665
        Key_F17 = 0x01000040,
666
        Key_F18 = 0x01000041,
667
        Key_F19 = 0x01000042,
668
        Key_F20 = 0x01000043,
669
        Key_F21 = 0x01000044,
670
        Key_F22 = 0x01000045,
671
        Key_F23 = 0x01000046,
672
        Key_F24 = 0x01000047,
673
        Key_F25 = 0x01000048,                // F25 .. F35 only on X11
674
        Key_F26 = 0x01000049,
675
        Key_F27 = 0x0100004a,
676
        Key_F28 = 0x0100004b,
677
        Key_F29 = 0x0100004c,
678
        Key_F30 = 0x0100004d,
679
        Key_F31 = 0x0100004e,
680
        Key_F32 = 0x0100004f,
681
        Key_F33 = 0x01000050,
682
        Key_F34 = 0x01000051,
683
        Key_F35 = 0x01000052,
684
        Key_Super_L = 0x01000053,                 // extra keys
685
        Key_Super_R = 0x01000054,
686
        Key_Menu = 0x01000055,
687
        Key_Hyper_L = 0x01000056,
688
        Key_Hyper_R = 0x01000057,
689
        Key_Help = 0x01000058,
690
        Key_Direction_L = 0x01000059,
691
        Key_Direction_R = 0x01000060,
692
        Key_Space = 0x20,                // 7 bit printable ASCII
693
        Key_Any = Key_Space,
694
        Key_Exclam = 0x21,
695
        Key_QuoteDbl = 0x22,
696
        Key_NumberSign = 0x23,
697
        Key_Dollar = 0x24,
698
        Key_Percent = 0x25,
699
        Key_Ampersand = 0x26,
700
        Key_Apostrophe = 0x27,
701
        Key_ParenLeft = 0x28,
702
        Key_ParenRight = 0x29,
703
        Key_Asterisk = 0x2a,
704
        Key_Plus = 0x2b,
705
        Key_Comma = 0x2c,
706
        Key_Minus = 0x2d,
707
        Key_Period = 0x2e,
708
        Key_Slash = 0x2f,
709
        Key_0 = 0x30,
710
        Key_1 = 0x31,
711
        Key_2 = 0x32,
712
        Key_3 = 0x33,
713
        Key_4 = 0x34,
714
        Key_5 = 0x35,
715
        Key_6 = 0x36,
716
        Key_7 = 0x37,
717
        Key_8 = 0x38,
718
        Key_9 = 0x39,
719
        Key_Colon = 0x3a,
720
        Key_Semicolon = 0x3b,
721
        Key_Less = 0x3c,
722
        Key_Equal = 0x3d,
723
        Key_Greater = 0x3e,
724
        Key_Question = 0x3f,
725
        Key_At = 0x40,
726
        Key_A = 0x41,
727
        Key_B = 0x42,
728
        Key_C = 0x43,
729
        Key_D = 0x44,
730
        Key_E = 0x45,
731
        Key_F = 0x46,
732
        Key_G = 0x47,
733
        Key_H = 0x48,
734
        Key_I = 0x49,
735
        Key_J = 0x4a,
736
        Key_K = 0x4b,
737
        Key_L = 0x4c,
738
        Key_M = 0x4d,
739
        Key_N = 0x4e,
740
        Key_O = 0x4f,
741
        Key_P = 0x50,
742
        Key_Q = 0x51,
743
        Key_R = 0x52,
744
        Key_S = 0x53,
745
        Key_T = 0x54,
746
        Key_U = 0x55,
747
        Key_V = 0x56,
748
        Key_W = 0x57,
749
        Key_X = 0x58,
750
        Key_Y = 0x59,
751
        Key_Z = 0x5a,
752
        Key_BracketLeft = 0x5b,
753
        Key_Backslash = 0x5c,
754
        Key_BracketRight = 0x5d,
755
        Key_AsciiCircum = 0x5e,
756
        Key_Underscore = 0x5f,
757
        Key_QuoteLeft = 0x60,
758
        Key_BraceLeft = 0x7b,
759
        Key_Bar = 0x7c,
760
        Key_BraceRight = 0x7d,
761
        Key_AsciiTilde = 0x7e,
762
763
        Key_nobreakspace = 0x0a0,
764
        Key_exclamdown = 0x0a1,
765
        Key_cent = 0x0a2,
766
        Key_sterling = 0x0a3,
767
        Key_currency = 0x0a4,
768
        Key_yen = 0x0a5,
769
        Key_brokenbar = 0x0a6,
770
        Key_section = 0x0a7,
771
        Key_diaeresis = 0x0a8,
772
        Key_copyright = 0x0a9,
773
        Key_ordfeminine = 0x0aa,
774
        Key_guillemotleft = 0x0ab,        // left angle quotation mark
775
        Key_notsign = 0x0ac,
776
        Key_hyphen = 0x0ad,
777
        Key_registered = 0x0ae,
778
        Key_macron = 0x0af,
779
        Key_degree = 0x0b0,
780
        Key_plusminus = 0x0b1,
781
        Key_twosuperior = 0x0b2,
782
        Key_threesuperior = 0x0b3,
783
        Key_acute = 0x0b4,
784
        Key_mu = 0x0b5,
785
        Key_paragraph = 0x0b6,
786
        Key_periodcentered = 0x0b7,
787
        Key_cedilla = 0x0b8,
788
        Key_onesuperior = 0x0b9,
789
        Key_masculine = 0x0ba,
790
        Key_guillemotright = 0x0bb,        // right angle quotation mark
791
        Key_onequarter = 0x0bc,
792
        Key_onehalf = 0x0bd,
793
        Key_threequarters = 0x0be,
794
        Key_questiondown = 0x0bf,
795
        Key_Agrave = 0x0c0,
796
        Key_Aacute = 0x0c1,
797
        Key_Acircumflex = 0x0c2,
798
        Key_Atilde = 0x0c3,
799
        Key_Adiaeresis = 0x0c4,
800
        Key_Aring = 0x0c5,
801
        Key_AE = 0x0c6,
802
        Key_Ccedilla = 0x0c7,
803
        Key_Egrave = 0x0c8,
804
        Key_Eacute = 0x0c9,
805
        Key_Ecircumflex = 0x0ca,
806
        Key_Ediaeresis = 0x0cb,
807
        Key_Igrave = 0x0cc,
808
        Key_Iacute = 0x0cd,
809
        Key_Icircumflex = 0x0ce,
810
        Key_Idiaeresis = 0x0cf,
811
        Key_ETH = 0x0d0,
812
        Key_Ntilde = 0x0d1,
813
        Key_Ograve = 0x0d2,
814
        Key_Oacute = 0x0d3,
815
        Key_Ocircumflex = 0x0d4,
816
        Key_Otilde = 0x0d5,
817
        Key_Odiaeresis = 0x0d6,
818
        Key_multiply = 0x0d7,
819
        Key_Ooblique = 0x0d8,
820
        Key_Ugrave = 0x0d9,
821
        Key_Uacute = 0x0da,
822
        Key_Ucircumflex = 0x0db,
823
        Key_Udiaeresis = 0x0dc,
824
        Key_Yacute = 0x0dd,
825
        Key_THORN = 0x0de,
826
        Key_ssharp = 0x0df,
827
#if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
828
        Key_agrave = Key_Agrave,
829
        Key_aacute = Key_Aacute,
830
        Key_acircumflex = Key_Acircumflex,
831
        Key_atilde = Key_Atilde,
832
        Key_adiaeresis = Key_Adiaeresis,
833
        Key_aring = Key_Aring,
834
        Key_ae = Key_AE,
835
        Key_ccedilla = Key_Ccedilla,
836
        Key_egrave = Key_Egrave,
837
        Key_eacute = Key_Eacute,
838
        Key_ecircumflex = Key_Ecircumflex,
839
        Key_ediaeresis = Key_Ediaeresis,
840
        Key_igrave = Key_Igrave,
841
        Key_iacute = Key_Iacute,
842
        Key_icircumflex = Key_Icircumflex,
843
        Key_idiaeresis = Key_Idiaeresis,
844
        Key_eth = Key_ETH,
845
        Key_ntilde = Key_Ntilde,
846
        Key_ograve = Key_Ograve,
847
        Key_oacute = Key_Oacute,
848
        Key_ocircumflex = Key_Ocircumflex,
849
        Key_otilde = Key_Otilde,
850
        Key_odiaeresis = Key_Odiaeresis,
851
#endif
852
        Key_division = 0x0f7,
853
#if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
854
        Key_oslash = Key_Ooblique,
855
        Key_ugrave = Key_Ugrave,
856
        Key_uacute = Key_Uacute,
857
        Key_ucircumflex = Key_Ucircumflex,
858
        Key_udiaeresis = Key_Udiaeresis,
859
        Key_yacute = Key_Yacute,
860
        Key_thorn = Key_THORN,
861
#endif
862
        Key_ydiaeresis = 0x0ff,
863
864
        // International input method support (X keycode - 0xEE00, the
865
        // definition follows Qt/Embedded 2.3.7) Only interesting if
866
        // you are writing your own input method
867
868
        // International & multi-key character composition
869
        Key_AltGr               = 0x01001103,
870
        Key_Multi_key           = 0x01001120,  // Multi-key character compose
871
        Key_Codeinput           = 0x01001137,
872
        Key_SingleCandidate     = 0x0100113c,
873
        Key_MultipleCandidate   = 0x0100113d,
874
        Key_PreviousCandidate   = 0x0100113e,
875
876
        // Misc Functions
877
        Key_Mode_switch         = 0x0100117e,  // Character set switch
878
        //Key_script_switch       = 0x0100117e,  // Alias for mode_switch
879
880
        // Japanese keyboard support
881
        Key_Kanji               = 0x01001121,  // Kanji, Kanji convert
882
        Key_Muhenkan            = 0x01001122,  // Cancel Conversion
883
        //Key_Henkan_Mode         = 0x01001123,  // Start/Stop Conversion
884
        Key_Henkan              = 0x01001123,  // Alias for Henkan_Mode
885
        Key_Romaji              = 0x01001124,  // to Romaji
886
        Key_Hiragana            = 0x01001125,  // to Hiragana
887
        Key_Katakana            = 0x01001126,  // to Katakana
888
        Key_Hiragana_Katakana   = 0x01001127,  // Hiragana/Katakana toggle
889
        Key_Zenkaku             = 0x01001128,  // to Zenkaku
890
        Key_Hankaku             = 0x01001129,  // to Hankaku
891
        Key_Zenkaku_Hankaku     = 0x0100112a,  // Zenkaku/Hankaku toggle
892
        Key_Touroku             = 0x0100112b,  // Add to Dictionary
893
        Key_Massyo              = 0x0100112c,  // Delete from Dictionary
894
        Key_Kana_Lock           = 0x0100112d,  // Kana Lock
895
        Key_Kana_Shift          = 0x0100112e,  // Kana Shift
896
        Key_Eisu_Shift          = 0x0100112f,  // Alphanumeric Shift
897
        Key_Eisu_toggle         = 0x01001130,  // Alphanumeric toggle
898
        //Key_Kanji_Bangou        = 0x01001137,  // Codeinput
899
        //Key_Zen_Koho            = 0x0100113d,  // Multiple/All Candidate(s)
900
        //Key_Mae_Koho            = 0x0100113e,  // Previous Candidate
901
902
        // Korean keyboard support
903
        //
904
        // In fact, many Korean users need only 2 keys, Key_Hangul and
905
        // Key_Hangul_Hanja. But rest of the keys are good for future.
906
907
        Key_Hangul              = 0x01001131,  // Hangul start/stop(toggle)
908
        Key_Hangul_Start        = 0x01001132,  // Hangul start
909
        Key_Hangul_End          = 0x01001133,  // Hangul end, English start
910
        Key_Hangul_Hanja        = 0x01001134,  // Start Hangul->Hanja Conversion
911
        Key_Hangul_Jamo         = 0x01001135,  // Hangul Jamo mode
912
        Key_Hangul_Romaja       = 0x01001136,  // Hangul Romaja mode
913
        //Key_Hangul_Codeinput    = 0x01001137,  // Hangul code input mode
914
        Key_Hangul_Jeonja       = 0x01001138,  // Jeonja mode
915
        Key_Hangul_Banja        = 0x01001139,  // Banja mode
916
        Key_Hangul_PreHanja     = 0x0100113a,  // Pre Hanja conversion
917
        Key_Hangul_PostHanja    = 0x0100113b,  // Post Hanja conversion
918
        //Key_Hangul_SingleCandidate   = 0x0100113c,  // Single candidate
919
        //Key_Hangul_MultipleCandidate = 0x0100113d,  // Multiple candidate
920
        //Key_Hangul_PreviousCandidate = 0x0100113e,  // Previous candidate
921
        Key_Hangul_Special      = 0x0100113f,  // Special symbols
922
        //Key_Hangul_switch       = 0x0100117e,  // Alias for mode_switch
923
924
        // dead keys (X keycode - 0xED00 to avoid the conflict)
925
        Key_Dead_Grave          = 0x01001250,
926
        Key_Dead_Acute          = 0x01001251,
927
        Key_Dead_Circumflex     = 0x01001252,
928
        Key_Dead_Tilde          = 0x01001253,
929
        Key_Dead_Macron         = 0x01001254,
930
        Key_Dead_Breve          = 0x01001255,
931
        Key_Dead_Abovedot       = 0x01001256,
932
        Key_Dead_Diaeresis      = 0x01001257,
933
        Key_Dead_Abovering      = 0x01001258,
934
        Key_Dead_Doubleacute    = 0x01001259,
935
        Key_Dead_Caron          = 0x0100125a,
936
        Key_Dead_Cedilla        = 0x0100125b,
937
        Key_Dead_Ogonek         = 0x0100125c,
938
        Key_Dead_Iota           = 0x0100125d,
939
        Key_Dead_Voiced_Sound   = 0x0100125e,
940
        Key_Dead_Semivoiced_Sound = 0x0100125f,
941
        Key_Dead_Belowdot       = 0x01001260,
942
        Key_Dead_Hook           = 0x01001261,
943
        Key_Dead_Horn           = 0x01001262,
944
945
        // multimedia/internet keys - ignored by default - see QKeyEvent c'tor
946
        Key_Back  = 0x01000061,
947
        Key_Forward  = 0x01000062,
948
        Key_Stop  = 0x01000063,
949
        Key_Refresh  = 0x01000064,
950
        Key_VolumeDown = 0x01000070,
951
        Key_VolumeMute  = 0x01000071,
952
        Key_VolumeUp = 0x01000072,
953
        Key_BassBoost = 0x01000073,
954
        Key_BassUp = 0x01000074,
955
        Key_BassDown = 0x01000075,
956
        Key_TrebleUp = 0x01000076,
957
        Key_TrebleDown = 0x01000077,
958
        Key_MediaPlay  = 0x01000080,
959
        Key_MediaStop  = 0x01000081,
960
        Key_MediaPrevious  = 0x01000082,
961
#if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
962
        Key_MediaPrev  = Key_MediaPrevious,
963
#endif
964
        Key_MediaNext  = 0x01000083,
965
        Key_MediaRecord = 0x01000084,
3d87337 by Iain at 2010-06-07 966
        Key_MediaPause = 0x1000085,
967
        Key_MediaTogglePlayPause = 0x1000086,
8f427b2 by axis at 2009-04-24 968
        Key_HomePage  = 0x01000090,
969
        Key_Favorites  = 0x01000091,
970
        Key_Search  = 0x01000092,
971
        Key_Standby = 0x01000093,
972
        Key_OpenUrl = 0x01000094,
973
        Key_LaunchMail  = 0x010000a0,
974
        Key_LaunchMedia = 0x010000a1,
975
        Key_Launch0  = 0x010000a2,
976
        Key_Launch1  = 0x010000a3,
977
        Key_Launch2  = 0x010000a4,
978
        Key_Launch3  = 0x010000a5,
979
        Key_Launch4  = 0x010000a6,
980
        Key_Launch5  = 0x010000a7,
981
        Key_Launch6  = 0x010000a8,
982
        Key_Launch7  = 0x010000a9,
983
        Key_Launch8  = 0x010000aa,
984
        Key_Launch9  = 0x010000ab,
985
        Key_LaunchA  = 0x010000ac,
986
        Key_LaunchB  = 0x010000ad,
987
        Key_LaunchC  = 0x010000ae,
988
        Key_LaunchD  = 0x010000af,
989
        Key_LaunchE  = 0x010000b0,
990
        Key_LaunchF  = 0x010000b1,
6c8c1c5 by Helio Chissini de Castro at 2009-10-27 991
        Key_MonBrightnessUp = 0x010000b2,
992
        Key_MonBrightnessDown = 0x010000b3,
993
        Key_KeyboardLightOnOff = 0x010000b4,
994
        Key_KeyboardBrightnessUp = 0x010000b5,
995
        Key_KeyboardBrightnessDown = 0x010000b6,
996
        Key_PowerOff = 0x010000b7,
997
        Key_WakeUp = 0x010000b8,
998
        Key_Eject = 0x010000b9,
999
        Key_ScreenSaver = 0x010000ba,
1000
        Key_WWW = 0x010000bb,
1001
        Key_Memo = 0x010000bc,
1002
        Key_LightBulb = 0x010000bd,
1003
        Key_Shop = 0x010000be,
1004
        Key_History = 0x010000bf,
1005
        Key_AddFavorite = 0x010000c0,
1006
        Key_HotLinks = 0x010000c1,
1007
        Key_BrightnessAdjust = 0x010000c2,
1008
        Key_Finance = 0x010000c3,
1009
        Key_Community = 0x010000c4,
1010
        Key_AudioRewind = 0x010000c5,
1011
        Key_BackForward = 0x010000c6,
1012
        Key_ApplicationLeft = 0x010000c7,
1013
        Key_ApplicationRight = 0x010000c8,
1014
        Key_Book = 0x010000c9,
1015
        Key_CD = 0x010000ca,
1016
        Key_Calculator = 0x010000cb,
1017
        Key_ToDoList = 0x010000cc,
1018
        Key_ClearGrab = 0x010000cd,
1019
        Key_Close = 0x010000ce,
1020
        Key_Copy = 0x010000cf,
1021
        Key_Cut = 0x010000d0,
1022
        Key_Display = 0x010000d1,
1023
        Key_DOS = 0x010000d2,
1024
        Key_Documents = 0x010000d3,
1025
        Key_Excel = 0x010000d4,
1026
        Key_Explorer = 0x010000d5,
1027
        Key_Game = 0x010000d6,
1028
        Key_Go = 0x010000d7,
1029
        Key_iTouch = 0x010000d8,
1030
        Key_LogOff = 0x010000d9,
1031
        Key_Market = 0x010000da,
1032
        Key_Meeting = 0x010000db,
1033
        Key_MenuKB = 0x010000dc,
1034
        Key_MenuPB = 0x010000dd,
1035
        Key_MySites = 0x010000de,
1036
        Key_News = 0x010000df,
1037
        Key_OfficeHome = 0x010000e0,
1038
        Key_Option = 0x010000e1,
1039
        Key_Paste = 0x010000e2,
1040
        Key_Phone = 0x010000e3,
1041
        Key_Calendar = 0x010000e4,
1042
        Key_Reply = 0x010000e5,
1043
        Key_Reload = 0x010000e6,
1044
        Key_RotateWindows = 0x010000e7,
1045
        Key_RotationPB = 0x010000e8,
1046
        Key_RotationKB = 0x010000e9,
1047
        Key_Save = 0x010000ea,
1048
        Key_Send = 0x010000eb,
1049
        Key_Spell = 0x010000ec,
1050
        Key_SplitScreen = 0x010000ed,
1051
        Key_Support = 0x010000ee,
1052
        Key_TaskPane = 0x010000ef,
1053
        Key_Terminal = 0x010000f0,
1054
        Key_Tools = 0x010000f1,
1055
        Key_Travel = 0x010000f2,
1056
        Key_Video = 0x010000f3,
1057
        Key_Word = 0x010000f4,
1058
        Key_Xfer = 0x010000f5,
1059
        Key_ZoomIn = 0x010000f6,
1060
        Key_ZoomOut = 0x010000f7,
1061
        Key_Away = 0x010000f8,
1062
        Key_Messenger = 0x010000f9,
1063
        Key_WebCam = 0x010000fa,
1064
        Key_MailForward = 0x010000fb,
1065
        Key_Pictures = 0x010000fc,
1066
        Key_Music = 0x010000fd,
1067
        Key_Battery = 0x010000fe,
1068
        Key_Bluetooth = 0x010000ff,
1069
        Key_WLAN = 0x01000100,
1070
        Key_UWB = 0x01000101,
1071
        Key_AudioForward = 0x01000102,
1072
        Key_AudioRepeat = 0x01000103,
1073
        Key_AudioRandomPlay = 0x01000104,
1074
        Key_Subtitle = 0x01000105,
1075
        Key_AudioCycleTrack = 0x01000106,
1076
        Key_Time = 0x01000107,
1077
        Key_Hibernate = 0x01000108,
1078
        Key_View = 0x01000109,
1079
        Key_TopMenu = 0x0100010a,
1080
        Key_PowerDown = 0x0100010b,
1081
        Key_Suspend = 0x0100010c,
1082
        Key_ContrastAdjust = 0x0100010d,
8f427b2 by axis at 2009-04-24 1083
7c3bb2f by Denis Dzyubenko at 2010-03-08 1084
        Key_LaunchG  = 0x0100010e,
1085
        Key_LaunchH  = 0x0100010f,
1086
8f427b2 by axis at 2009-04-24 1087
        Key_MediaLast = 0x0100ffff,
1088
1089
        // Keypad navigation keys
1090
        Key_Select = 0x01010000,
1091
        Key_Yes = 0x01010001,
1092
        Key_No = 0x01010002,
1093
1094
        // Newer misc keys
1095
        Key_Cancel  = 0x01020001,
1096
        Key_Printer = 0x01020002,
1097
        Key_Execute = 0x01020003,
1098
        Key_Sleep   = 0x01020004,
1099
        Key_Play    = 0x01020005, // Not the same as Key_MediaPlay
1100
        Key_Zoom    = 0x01020006,
1101
        //Key_Jisho   = 0x01020007, // IME: Dictionary key
1102
        //Key_Oyayubi_Left = 0x01020008, // IME: Left Oyayubi key
1103
        //Key_Oyayubi_Right = 0x01020009, // IME: Right Oyayubi key
1104
1105
        // Device keys
1106
        Key_Context1 = 0x01100000,
1107
        Key_Context2 = 0x01100001,
1108
        Key_Context3 = 0x01100002,
1109
        Key_Context4 = 0x01100003,
3d87337 by Iain at 2010-06-07 1110
        Key_Call = 0x01100004,      // set absolute state to in a call (do not toggle state)
1111
        Key_Hangup = 0x01100005,    // set absolute state to hang up (do not toggle state)
8f427b2 by axis at 2009-04-24 1112
        Key_Flip = 0x01100006,
3d87337 by Iain at 2010-06-07 1113
        Key_ToggleCallHangup = 0x01100007, // a toggle key for answering, or hanging up, based on current call state
1114
        Key_VoiceDial = 0x01100008,
1115
        Key_LastNumberRedial = 0x01100009,
1116
1117
        Key_Camera = 0x01100020,
1118
        Key_CameraFocus = 0x01100021,
8f427b2 by axis at 2009-04-24 1119
1120
        Key_unknown = 0x01ffffff
1121
    };
1122
1123
    enum ArrowType {
1124
        NoArrow,
1125
        UpArrow,
1126
        DownArrow,
1127
        LeftArrow,
1128
        RightArrow
1129
    };
1130
1131
    enum PenStyle { // pen style
1132
        NoPen,
1133
        SolidLine,
1134
        DashLine,
1135
        DotLine,
1136
        DashDotLine,
1137
        DashDotDotLine,
1138
        CustomDashLine
1139
#ifndef Q_MOC_RUN
1140
        , MPenStyle = 0x0f
1141
#endif
1142
    };
1143
1144
    enum PenCapStyle { // line endcap style
1145
        FlatCap = 0x00,
1146
        SquareCap = 0x10,
1147
        RoundCap = 0x20,
1148
        MPenCapStyle = 0x30
1149
    };
1150
1151
    enum PenJoinStyle { // line join style
1152
        MiterJoin = 0x00,
1153
        BevelJoin = 0x40,
1154
        RoundJoin = 0x80,
1155
        SvgMiterJoin = 0x100,
1156
        MPenJoinStyle = 0x1c0
1157
    };
1158
1159
    enum BrushStyle { // brush style
1160
        NoBrush,
1161
        SolidPattern,
1162
        Dense1Pattern,
1163
        Dense2Pattern,
1164
        Dense3Pattern,
1165
        Dense4Pattern,
1166
        Dense5Pattern,
1167
        Dense6Pattern,
1168
        Dense7Pattern,
1169
        HorPattern,
1170
        VerPattern,
1171
        CrossPattern,
1172
        BDiagPattern,
1173
        FDiagPattern,
1174
        DiagCrossPattern,
1175
        LinearGradientPattern,
1176
        RadialGradientPattern,
1177
        ConicalGradientPattern,
1178
        TexturePattern = 24
1179
#if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
1180
        , CustomPattern = TexturePattern
1181
#endif
1182
    };
1183
1184
    enum SizeMode {
1185
        AbsoluteSize,
1186
        RelativeSize
1187
    };
1188
1189
#if defined(QT3_SUPPORT)
1190
#if defined(Q_OS_MAC)
1191
#ifndef qdoc
1192
    typedef int MacintoshVersion;
1193
1194
    enum
1195
#else
1196
    enum MacintoshVersion
1197
#endif
1198
    {
1199
        //Unknown
1200
        MV_Unknown  = 0x0000,
1201
1202
        //Version numbers
1203
        MV_9        = QSysInfo::MV_9,
1204
        MV_10_DOT_0 = QSysInfo::MV_10_0,
1205
        MV_10_DOT_1 = QSysInfo::MV_10_1,
1206
        MV_10_DOT_2 = QSysInfo::MV_10_2,
1207
        MV_10_DOT_3 = QSysInfo::MV_10_3,
1208
        MV_10_DOT_4 = QSysInfo::MV_10_4,
1209
1210
        //Code names
1211
        MV_CHEETAH = QSysInfo::MV_CHEETAH,
1212
        MV_PUMA = QSysInfo::MV_PUMA,
1213
        MV_JAGUAR = QSysInfo::MV_JAGUAR,
1214
        MV_PANTHER = QSysInfo::MV_PANTHER,
1215
        MV_TIGER = QSysInfo::MV_TIGER
1216
    };
1217
#endif // Q_OS_MAC
1218
1219
#if defined(Q_OS_WIN) || defined(Q_OS_CYGWIN)
1220
#ifndef qdoc
1221
    typedef int WindowsVersion;
1222
1223
    enum
1224
#else
1225
    enum WindowsVersion
1226
#endif
1227
    {
1228
        WV_32s = QSysInfo::WV_32s,
1229
        WV_95 = QSysInfo::WV_95,
1230
        WV_98 = QSysInfo::WV_98,
1231
        WV_Me = QSysInfo::WV_Me,
1232
        WV_DOS_based= QSysInfo::WV_DOS_based,
1233
1234
        WV_NT = QSysInfo::WV_NT,
1235
        WV_2000 = QSysInfo::WV_2000,
1236
        WV_XP = QSysInfo::WV_XP,
1237
        WV_2003 = QSysInfo::WV_2003,
1238
        WV_NT_based = QSysInfo::WV_NT_based,
1239
1240
        WV_CE = QSysInfo::WV_CE,
1241
        WV_CENET = QSysInfo::WV_CENET,
1242
        WV_CE_5 = QSysInfo::WV_CE_5,
1243
        WV_CE_6 = QSysInfo::WV_CE_6,
1244
        WV_CE_based = QSysInfo::WV_CE_based
1245
    };
1246
#endif // Q_OS_WIN
1247
#endif // QT3_SUPPORT
1248
1249
    enum UIEffect {
1250
        UI_General,
1251
        UI_AnimateMenu,
1252
        UI_FadeMenu,
1253
        UI_AnimateCombo,
1254
        UI_AnimateTooltip,
1255
        UI_FadeTooltip,
1256
        UI_AnimateToolBox
1257
    };
1258
1259
    enum CursorShape {
1260
        ArrowCursor,
1261
        UpArrowCursor,
1262
        CrossCursor,
1263
        WaitCursor,
1264
        IBeamCursor,
1265
        SizeVerCursor,
1266
        SizeHorCursor,
1267
        SizeBDiagCursor,
1268
        SizeFDiagCursor,
1269
        SizeAllCursor,
1270
        BlankCursor,
1271
        SplitVCursor,
1272
        SplitHCursor,
1273
        PointingHandCursor,
1274
        ForbiddenCursor,
1275
        WhatsThisCursor,
1276
        BusyCursor,
1277
        OpenHandCursor,
1278
        ClosedHandCursor,
1efb269 by Denis Dzyubenko at 2010-02-05 1279
        DragCopyCursor,
1280
        DragMoveCursor,
1281
        DragLinkCursor,
1282
        LastCursor = DragLinkCursor,
8f427b2 by axis at 2009-04-24 1283
        BitmapCursor = 24,
1284
        CustomCursor = 25
1285
1286
#if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
1287
        ,
1288
        arrowCursor = ArrowCursor,
1289
        upArrowCursor = UpArrowCursor,
1290
        crossCursor = CrossCursor,
1291
        waitCursor = WaitCursor,
1292
        ibeamCursor = IBeamCursor,
1293
        sizeVerCursor = SizeVerCursor,
1294
        sizeHorCursor = SizeHorCursor,
1295
        sizeBDiagCursor = SizeBDiagCursor,
1296
        sizeFDiagCursor = SizeFDiagCursor,
1297
        sizeAllCursor = SizeAllCursor,
1298
        blankCursor = BlankCursor,
1299
        splitVCursor = SplitVCursor,
1300
        splitHCursor = SplitHCursor,
1301
        pointingHandCursor = PointingHandCursor,
1302
        forbiddenCursor = ForbiddenCursor,
1303
        whatsThisCursor = WhatsThisCursor
1304
#endif
1305
    };
1306
1307
    enum TextFormat {
1308
        PlainText,
1309
        RichText,
1310
        AutoText,
1311
        LogText
1312
    };
1313
1314
    enum AspectRatioMode {
1315
        IgnoreAspectRatio,
1316
        KeepAspectRatio,
1317
        KeepAspectRatioByExpanding
1318
#if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
1319
        , ScaleFree = IgnoreAspectRatio,
1320
        ScaleMin = KeepAspectRatio,
1321
        ScaleMax = KeepAspectRatioByExpanding
1322
#endif
1323
    };
1324
#ifdef QT3_SUPPORT
1325
    typedef AspectRatioMode ScaleMode;
1326
#endif
1327
1328
    // This is for Q3TextEdit only, actually.
1329
    enum AnchorAttribute {
1330
        AnchorName,
1331
        AnchorHref
1332
    };
1333
1334
    enum DockWidgetArea {
1335
        LeftDockWidgetArea = 0x1,
1336
        RightDockWidgetArea = 0x2,
1337
        TopDockWidgetArea = 0x4,
1338
        BottomDockWidgetArea = 0x8,
1339
1340
        DockWidgetArea_Mask = 0xf,
1341
        AllDockWidgetAreas = DockWidgetArea_Mask,
1342
        NoDockWidgetArea = 0
1343
    };
1344
    enum DockWidgetAreaSizes {
1345
        NDockWidgetAreas = 4
1346
    };
1347
1348
    Q_DECLARE_FLAGS(DockWidgetAreas, DockWidgetArea)
1349
1350
    enum ToolBarArea {
1351
        LeftToolBarArea = 0x1,
1352
        RightToolBarArea = 0x2,
1353
        TopToolBarArea = 0x4,
1354
        BottomToolBarArea = 0x8,
1355
1356
        ToolBarArea_Mask = 0xf,
1357
        AllToolBarAreas = ToolBarArea_Mask,
1358
        NoToolBarArea = 0
1359
    };
1360
1361
    enum ToolBarAreaSizes {
1362
        NToolBarAreas = 4
1363
    };
1364
1365
    Q_DECLARE_FLAGS(ToolBarAreas, ToolBarArea)
1366
1367
#ifdef QT3_SUPPORT
1368
    enum Dock {
1369
        DockUnmanaged,
1370
        DockTornOff,
1371
        DockTop,
1372
        DockBottom,
1373
        DockRight,
1374
        DockLeft,
1375
        DockMinimized
1376
        ,
1377
        Unmanaged = DockUnmanaged,
1378
        TornOff = DockTornOff,
1379
        Top = DockTop,
1380
        Bottom = DockBottom,
1381
        Right = DockRight,
1382
        Left = DockLeft,
1383
        Minimized = DockMinimized
1384
    };
1385
    // compatibility
1386
    typedef Dock ToolBarDock;
1387
#endif
1388
1389
    enum DateFormat {
1390
        TextDate,      // default Qt
1391
        ISODate,       // ISO 8601
1392
        SystemLocaleDate, // deprecated
1393
        LocalDate = SystemLocaleDate, // deprecated
1394
        LocaleDate,     // deprecated
1395
        SystemLocaleShortDate,
1396
        SystemLocaleLongDate,
1397
        DefaultLocaleShortDate,
1398
        DefaultLocaleLongDate
1399
    };
1400
1401
    enum TimeSpec {
1402
        LocalTime,
1403
        UTC,
1404
        OffsetFromUTC
1405
    };
1406
1407
    enum DayOfWeek {
1408
        Monday = 1,
1409
        Tuesday = 2,
1410
        Wednesday = 3,
1411
        Thursday = 4,
1412
        Friday = 5,
1413
        Saturday = 6,
1414
        Sunday = 7
1415
    };
1416
1417
    enum ScrollBarPolicy {
1418
        ScrollBarAsNeeded,
1419
        ScrollBarAlwaysOff,
1420
        ScrollBarAlwaysOn
1421
    };
1422
1423
#ifdef QT3_SUPPORT
1424
    enum BackgroundMode {
1425
        FixedColor,
1426
        FixedPixmap,
1427
        NoBackground,
1428
        PaletteForeground,
1429
        PaletteButton,
1430
        PaletteLight,
1431
        PaletteMidlight,
1432
        PaletteDark,
1433
        PaletteMid,
1434
        PaletteText,
1435
        PaletteBrightText,
1436
        PaletteBase,
1437
        PaletteBackground,
1438
        PaletteShadow,
1439
        PaletteHighlight,
1440
        PaletteHighlightedText,
1441
        PaletteButtonText,
1442
        PaletteLink,
1443
        PaletteLinkVisited,
1444
        X11ParentRelative
1445
    };
1446
#endif
1447
1448
    enum CaseSensitivity {
1449
        CaseInsensitive,
1450
        CaseSensitive
1451
    };
1452
1453
    enum Corner {
1454
        TopLeftCorner = 0x00000,
1455
        TopRightCorner = 0x00001,
1456
        BottomLeftCorner = 0x00002,
1457
        BottomRightCorner = 0x00003
1458
#if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
1459
        ,TopLeft = TopLeftCorner,
1460
        TopRight = TopRightCorner,
1461
        BottomLeft = BottomLeftCorner,
1462
        BottomRight = BottomRightCorner
1463
#endif
1464
    };
1465
1466
    enum ConnectionType {
1467
        AutoConnection,
1468
        DirectConnection,
1469
        QueuedConnection,
1470
        AutoCompatConnection,
0ea19cf by Olivier Goffart at 2009-05-27 1471
        BlockingQueuedConnection,
1472
        UniqueConnection =  0x80
8f427b2 by axis at 2009-04-24 1473
    };
1474
1475
    enum ShortcutContext {
1476
        WidgetShortcut,
1477
        WindowShortcut,
1478
        ApplicationShortcut,
1479
        WidgetWithChildrenShortcut
1480
    };
1481
1482
    enum FillRule {
1483
        OddEvenFill,
1484
        WindingFill
1485
    };
1486
1487
    enum MaskMode {
1488
        MaskInColor,
1489
        MaskOutColor
1490
    };
1491
1492
    enum ClipOperation {
1493
        NoClip,
1494
        ReplaceClip,
1495
        IntersectClip,
1496
        UniteClip
1497
    };
1498
1499
    // Shape = 0x1, BoundingRect = 0x2
1500
    enum ItemSelectionMode {
1501
        ContainsItemShape = 0x0,
1502
        IntersectsItemShape = 0x1,
1503
        ContainsItemBoundingRect = 0x2,
1504
        IntersectsItemBoundingRect = 0x3
1505
    };
1506
1507
    enum TransformationMode {
1508
        FastTransformation,
1509
        SmoothTransformation
1510
    };
1511
1512
    enum Axis {
1513
        XAxis,
1514
        YAxis,
1515
        ZAxis
1516
    };
1517
1518
    enum FocusReason {
1519
        MouseFocusReason,
1520
        TabFocusReason,
1521
        BacktabFocusReason,
1522
        ActiveWindowFocusReason,
1523
        PopupFocusReason,
1524
        ShortcutFocusReason,
1525
        MenuBarFocusReason,
1526
        OtherFocusReason,
1527
        NoFocusReason
1528
    };
1529
1530
    enum ContextMenuPolicy {
1531
        NoContextMenu,
1532
        DefaultContextMenu,
1533
        ActionsContextMenu,
1534
        CustomContextMenu,
1535
        PreventContextMenu
1536
    };
1537
1538
    enum InputMethodQuery {
1539
        ImMicroFocus,
1540
        ImFont,
1541
        ImCursorPosition,
1542
        ImSurroundingText,
1543
        ImCurrentSelection,
2e4cadc by axis at 2009-06-03 1544
        ImMaximumTextLength,
1545
        ImAnchorPosition
8f427b2 by axis at 2009-04-24 1546
    };
1547
ce4faed by axis at 2009-05-04 1548
    enum InputMethodHint {
1549
        ImhNone = 0x0,
1550
        ImhHiddenText = 0x1,
cf6e5bd by axis at 2009-05-28 1551
        ImhNoAutoUppercase = 0x2,
1552
        ImhPreferNumbers = 0x4,
1553
        ImhPreferUppercase = 0x8,
1554
        ImhPreferLowercase = 0x10,
1555
        ImhNoPredictiveText = 0x20,
1556
1557
        ImhDigitsOnly = 0x10000,
1558
        ImhFormattedNumbersOnly = 0x20000,
1559
        ImhUppercaseOnly = 0x40000,
1560
        ImhLowercaseOnly = 0x80000,
1561
        ImhDialableCharactersOnly = 0x100000,
d5c9bf8 by axis at 2009-09-23 1562
        ImhEmailCharactersOnly = 0x200000,
eda97a6 by Volker Hilsheimer at 2009-10-01 1563
        ImhUrlCharactersOnly = 0x400000,
cf6e5bd by axis at 2009-05-28 1564
1565
        ImhExclusiveInputMask = 0xffff0000
ce4faed by axis at 2009-05-04 1566
    };
1567
    Q_DECLARE_FLAGS(InputMethodHints, InputMethodHint)
1568
8f427b2 by axis at 2009-04-24 1569
    enum ToolButtonStyle {
1570
        ToolButtonIconOnly,
1571
        ToolButtonTextOnly,
1572
        ToolButtonTextBesideIcon,
e1c019f by Jens Bache-Wiig at 2009-07-16 1573
        ToolButtonTextUnderIcon,
5f6c059 by Jens Bache-Wiig at 2009-07-17 1574
        ToolButtonFollowStyle
8f427b2 by axis at 2009-04-24 1575
    };
1576
1577
    enum LayoutDirection {
1578
        LeftToRight,
0b06274 by Lars Knoll at 2010-06-10 1579
        RightToLeft,
1580
        LayoutDirectionAuto
8f427b2 by axis at 2009-04-24 1581
    };
1582
14c6433 by Jan-Arve Sæther at 2009-08-19 1583
    enum AnchorPoint {
1584
        AnchorLeft = 0,
1585
        AnchorHorizontalCenter,
1586
        AnchorRight,
1587
        AnchorTop,
1588
        AnchorVerticalCenter,
1589
        AnchorBottom
1590
    };
1591
1592
1593
8f427b2 by axis at 2009-04-24 1594
    enum DropAction {
1595
        CopyAction = 0x1,
1596
        MoveAction = 0x2,
1597
        LinkAction = 0x4,
1598
        ActionMask = 0xff,
1599
        TargetMoveAction = 0x8002,
1600
        IgnoreAction = 0x0
1601
    };
1602
    Q_DECLARE_FLAGS(DropActions, DropAction)
1603
1604
    enum CheckState {
1605
        Unchecked,
1606
        PartiallyChecked,
1607
        Checked
1608
    };
1609
1610
    enum ItemDataRole {
1611
        DisplayRole = 0,
1612
        DecorationRole = 1,
1613
        EditRole = 2,
1614
        ToolTipRole = 3,
1615
        StatusTipRole = 4,
1616
        WhatsThisRole = 5,
1617
        // Metadata
1618
        FontRole = 6,
1619
        TextAlignmentRole = 7,
1620
        BackgroundColorRole = 8,
1621
        BackgroundRole = 8,
1622
        TextColorRole = 9,
1623
        ForegroundRole = 9,
1624
        CheckStateRole = 10,
1625
        // Accessibility
1626
        AccessibleTextRole = 11,
1627
        AccessibleDescriptionRole = 12,
1628
        // More general purpose
1629
        SizeHintRole = 13,
1630
        // Internal UiLib roles. Start worrying when public roles go that high.
1631
        DisplayPropertyRole = 27,
1632
        DecorationPropertyRole = 28,
1633
        ToolTipPropertyRole = 29,
1634
        StatusTipPropertyRole = 30,
1635
        WhatsThisPropertyRole = 31,
1636
        // Reserved
1637
        UserRole = 32
1638
    };
1639
1640
    enum ItemFlag {
1641
        NoItemFlags = 0,
1642
        ItemIsSelectable = 1,
1643
        ItemIsEditable = 2,
1644
        ItemIsDragEnabled = 4,
1645
        ItemIsDropEnabled = 8,
1646
        ItemIsUserCheckable = 16,
1647
        ItemIsEnabled = 32,
1648
        ItemIsTristate = 64
1649
    };
1650
    Q_DECLARE_FLAGS(ItemFlags, ItemFlag)
1651
1652
    enum MatchFlag {
1653
        MatchExactly = 0,
1654
        MatchContains = 1,
1655
        MatchStartsWith = 2,
1656
        MatchEndsWith = 3,
1657
        MatchRegExp = 4,
1658
        MatchWildcard = 5,
1659
        MatchFixedString = 8,
1660
        MatchCaseSensitive = 16,
1661
        MatchWrap = 32,
1662
        MatchRecursive = 64
1663
    };
1664
    Q_DECLARE_FLAGS(MatchFlags, MatchFlag)
1665
1666
#if defined(Q_WS_MAC)
1667
    typedef void * HANDLE;
1668
#elif defined(Q_WS_WIN)
1669
    typedef void *HANDLE;
1670
#elif defined(Q_WS_X11)
1671
    typedef unsigned long HANDLE;
1672
#elif defined(Q_WS_QWS)
1673
    typedef void * HANDLE;
cd4c5a6 by Jason Barron at 2009-07-15 1674
#elif defined(Q_OS_SYMBIAN)
8f427b2 by axis at 2009-04-24 1675
    typedef unsigned long int HANDLE; // equivalent to TUint32
1676
#endif
1677
    typedef WindowFlags WFlags;
1678
1679
    enum WindowModality {
1680
        NonModal,
1681
        WindowModal,
1682
        ApplicationModal
1683
    };
1684
1685
    enum TextInteractionFlag {
1686
        NoTextInteraction         = 0,
1687
        TextSelectableByMouse     = 1,
1688
        TextSelectableByKeyboard  = 2,
1689
        LinksAccessibleByMouse    = 4,
1690
        LinksAccessibleByKeyboard = 8,
1691
        TextEditable              = 16,
1692
1693
        TextEditorInteraction     = TextSelectableByMouse | TextSelectableByKeyboard | TextEditable,
1694
        TextBrowserInteraction    = TextSelectableByMouse | LinksAccessibleByMouse | LinksAccessibleByKeyboard
1695
    };
1696
    Q_DECLARE_FLAGS(TextInteractionFlags, TextInteractionFlag)
1697
1698
    enum EventPriority {
1699
        HighEventPriority = 1,
1700
        NormalEventPriority = 0,
1701
        LowEventPriority = -1
1702
    };
1703
1704
    enum SizeHint {
1705
        MinimumSize,
1706
        PreferredSize,
1707
        MaximumSize,
1708
        MinimumDescent,
1709
        NSizeHints
1710
    };
1711
1712
    enum WindowFrameSection {
1713
        NoSection,
1714
        LeftSection,           // For resize
1715
        TopLeftSection,
1716
        TopSection,
1717
        TopRightSection,
1718
        RightSection,
1719
        BottomRightSection,
1720
        BottomSection,
1721
        BottomLeftSection,
1722
        TitleBarArea    // For move
1723
    };
cbac8c9 by Bradley T. Hughes at 2009-03-24 1724
fbe0edc by Martin Smith at 2009-06-19 1725
    enum Initialization {
450a9c9 by Bjørn Erik Nilsen at 2009-06-18 1726
        Uninitialized
1727
    };
252ea66 by Bradley T. Hughes at 2009-06-22 1728
1cff081 by Bjørn Erik Nilsen at 2009-07-29 1729
    enum CoordinateSystem {
1730
        DeviceCoordinates,
1731
        LogicalCoordinates
1732
    };
1733
cbac8c9 by Bradley T. Hughes at 2009-03-24 1734
    enum TouchPointState {
20fa050 by Bradley T. Hughes at 2009-05-27 1735
        TouchPointPressed    = 0x01,
1736
        TouchPointMoved      = 0x02,
1737
        TouchPointStationary = 0x04,
3b04dba by Bradley T. Hughes at 2009-06-18 1738
        TouchPointReleased   = 0x08,
1739
        TouchPointStateMask  = 0x0f,
1740
1741
        TouchPointPrimary    = 0x10
cbac8c9 by Bradley T. Hughes at 2009-03-24 1742
    };
20fa050 by Bradley T. Hughes at 2009-05-27 1743
    Q_DECLARE_FLAGS(TouchPointStates, TouchPointState)
a3d8cfb by Denis Dzyubenko at 2009-05-11 1744
f629269 by Tasuku Suzuki at 2010-06-02 1745
#ifndef QT_NO_GESTURES
a3d8cfb by Denis Dzyubenko at 2009-05-11 1746
    enum GestureState
1747
    {
20afdd7 by Denis Dzyubenko at 2009-05-11 1748
        NoGesture,
f2437d3 by Denis Dzyubenko at 2009-10-09 1749
        GestureStarted  = 1,
1750
        GestureUpdated  = 2,
1751
        GestureFinished = 3,
1752
        GestureCanceled = 4
1753
    };
1754
1755
    enum GestureType
1756
    {
1757
        TapGesture        = 1,
1758
        TapAndHoldGesture = 2,
1759
        PanGesture        = 3,
1760
        PinchGesture      = 4,
1761
        SwipeGesture      = 5,
1762
1763
        CustomGesture     = 0x0100,
1764
1765
        LastGestureType   = ~0u
1766
    };
1767
93e9bc0 by Denis Dzyubenko at 2009-11-03 1768
    enum GestureFlag
f2437d3 by Denis Dzyubenko at 2009-10-09 1769
    {
93e9bc0 by Denis Dzyubenko at 2009-11-03 1770
        DontStartGestureOnChildren = 0x01,
5119ae6 by Denis Dzyubenko at 2010-02-17 1771
        ReceivePartialGestures     = 0x02,
1772
        IgnoredGesturesPropagateToParent = 0x04
a3d8cfb by Denis Dzyubenko at 2009-05-11 1773
    };
93e9bc0 by Denis Dzyubenko at 2009-11-03 1774
    Q_DECLARE_FLAGS(GestureFlags, GestureFlag)
f629269 by Tasuku Suzuki at 2010-06-02 1775
#endif // QT_NO_GESTURES
a3d8cfb by Denis Dzyubenko at 2009-05-11 1776
56cec4c by Shane Kearns at 2009-09-15 1777
    enum NavigationMode
1778
    {
1779
        NavigationModeNone,
1780
        NavigationModeKeypadTabOrder,
1781
        NavigationModeKeypadDirectional,
1782
        NavigationModeCursorAuto,
1783
        NavigationModeCursorForceVisible
1784
    };
8f427b2 by axis at 2009-04-24 1785
}
1786
#ifdef Q_MOC_RUN
1787
 ;
1788
#endif
1789
1790
Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::MouseButtons)
1791
Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::Orientations)
1792
Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::KeyboardModifiers)
1793
Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::WindowFlags)
1794
Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::Alignment)
1795
Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::ImageConversionFlags)
1796
Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::DockWidgetAreas)
1797
Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::ToolBarAreas)
1798
Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::WindowStates)
1799
Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::DropActions)
1800
Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::ItemFlags)
1801
Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::MatchFlags)
1802
Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::TextInteractionFlags)
ce4faed by axis at 2009-05-04 1803
Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::InputMethodHints)
20fa050 by Bradley T. Hughes at 2009-05-27 1804
Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::TouchPointStates)
f629269 by Tasuku Suzuki at 2010-06-02 1805
#ifndef QT_NO_GESTURES
93e9bc0 by Denis Dzyubenko at 2009-11-03 1806
Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::GestureFlags)
f629269 by Tasuku Suzuki at 2010-06-02 1807
#endif
8f427b2 by axis at 2009-04-24 1808
1809
typedef bool (*qInternalCallback)(void **);
1810
1811
class Q_CORE_EXPORT QInternal {
1812
public:
1813
    enum PaintDeviceFlags {
1814
        UnknownDevice = 0x00,
1815
        Widget        = 0x01,
1816
        Pixmap        = 0x02,
1817
        Image         = 0x03,
1818
        Printer       = 0x04,
1819
        Picture       = 0x05,
1820
        Pbuffer       = 0x06,    // GL pbuffer
1821
        FramebufferObject = 0x07, // GL framebuffer object
1822
        CustomRaster  = 0x08,
4feb152 by Samuel Rødal at 2009-09-03 1823
        MacQuartz     = 0x09,
7c59abc by Tom Cooksey at 2009-09-08 1824
        PaintBuffer   = 0x0a,
1825
        OpenGL        = 0x0b
8f427b2 by axis at 2009-04-24 1826
    };
1827
    enum RelayoutType {
1828
        RelayoutNormal,
1829
        RelayoutDragging,
1830
        RelayoutDropped
1831
    };
1832
1833
1834
    enum Callback {
1835
        ConnectCallback,
1836
        DisconnectCallback,
1837
        AdoptCurrentThread,
1838
        EventNotifyCallback,
1839
        LastCallback
1840
    };
1841
1842
    enum InternalFunction {
1843
        CreateThreadForAdoption,
1844
        RefAdoptedThread,
1845
        DerefAdoptedThread,
1846
        SetCurrentThreadToMainThread,
1847
        SetQObjectSender,
1848
        GetQObjectSender,
1849
        ResetQObjectSender,
1850
        LastInternalFunction
1851
    };
1852
1853
    enum DockPosition {
1854
        LeftDock,
1855
        RightDock,
1856
        TopDock,
1857
        BottomDock,
1858
        DockCount
1859
    };
1860
1861
    static bool registerCallback(Callback, qInternalCallback);
1862
    static bool unregisterCallback(Callback, qInternalCallback);
1863
1864
    static bool activateCallbacks(Callback, void **);
1865
    static bool callFunction(InternalFunction func, void **);
1866
};
1867
1868
#ifdef QT3_SUPPORT
1869
typedef qint32 QCOORD;                                // coordinate type
1870
enum {
1871
    QCOORD_MAX =  2147483647,
1872
    QCOORD_MIN = -QCOORD_MAX - 1
1873
};
1874
#endif
1875
1876
QT_END_NAMESPACE
1877
1878
QT_END_HEADER
1879
1880
#endif // QNAMESPACE_H