00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042 #ifndef QNAMESPACE_H
00043 #define QNAMESPACE_H
00044
00045 #include <QtCore/qglobal.h>
00046
00047 QT_BEGIN_HEADER
00048
00049 QT_BEGIN_NAMESPACE
00050
00051 QT_MODULE(Core)
00052
00053 #ifndef Q_MOC_RUN
00054 namespace
00055 #else
00056 class Q_CORE_EXPORT
00057 #endif
00058 Qt {
00059
00060 #if defined(Q_MOC_RUN)
00061 Q_OBJECT
00062 #endif
00063
00064 #if (defined(Q_MOC_RUN) || defined(QT_JAMBI_RUN))
00065
00066 Q_ENUMS(ScrollBarPolicy FocusPolicy ContextMenuPolicy)
00067 Q_ENUMS(ArrowType ToolButtonStyle PenStyle PenCapStyle PenJoinStyle BrushStyle)
00068 Q_ENUMS(FillRule MaskMode BGMode ClipOperation SizeMode)
00069 Q_ENUMS(BackgroundMode)
00070 Q_ENUMS(Axis Corner LayoutDirection SizeHint Orientation DropAction)
00071 Q_FLAGS(Alignment Orientations DropActions)
00072 Q_FLAGS(DockWidgetAreas ToolBarAreas)
00073 Q_ENUMS(DockWidgetArea ToolBarArea)
00074 Q_ENUMS(TextFormat)
00075 Q_ENUMS(TextElideMode)
00076 Q_ENUMS(DateFormat TimeSpec DayOfWeek)
00077 Q_ENUMS(CursorShape GlobalColor)
00078 Q_ENUMS(AspectRatioMode TransformationMode)
00079 Q_FLAGS(ImageConversionFlags)
00080 Q_ENUMS(Key ShortcutContext)
00081 Q_ENUMS(TextInteractionFlag)
00082 Q_FLAGS(TextInteractionFlags)
00083 Q_ENUMS(ItemSelectionMode)
00084 Q_FLAGS(ItemFlags)
00085 Q_ENUMS(CheckState)
00086 Q_ENUMS(SortOrder CaseSensitivity)
00087 Q_FLAGS(MatchFlags)
00088 Q_FLAGS(KeyboardModifiers MouseButtons)
00089 Q_ENUMS(WindowType WindowState WindowModality WidgetAttribute ApplicationAttribute)
00090 Q_ENUMS(InputMethodHint)
00091 Q_FLAGS(WindowFlags WindowStates InputMethodHints)
00092 Q_ENUMS(ConnectionType)
00093 #ifndef QT_NO_GESTURES
00094 Q_ENUMS(GestureState)
00095 Q_ENUMS(GestureType)
00096 #endif
00097 #endif // (defined(Q_MOC_RUN) || defined(QT_JAMBI_RUN))
00098
00099 #if defined(Q_MOC_RUN)
00100 public:
00101 #endif
00102
00103 enum GlobalColor {
00104 color0,
00105 color1,
00106 black,
00107 white,
00108 darkGray,
00109 gray,
00110 lightGray,
00111 red,
00112 green,
00113 blue,
00114 cyan,
00115 magenta,
00116 yellow,
00117 darkRed,
00118 darkGreen,
00119 darkBlue,
00120 darkCyan,
00121 darkMagenta,
00122 darkYellow,
00123 transparent
00124 };
00125
00126 enum KeyboardModifier {
00127 NoModifier = 0x00000000,
00128 ShiftModifier = 0x02000000,
00129 ControlModifier = 0x04000000,
00130 AltModifier = 0x08000000,
00131 MetaModifier = 0x10000000,
00132 KeypadModifier = 0x20000000,
00133 GroupSwitchModifier = 0x40000000,
00134
00135 KeyboardModifierMask = 0xfe000000
00136 };
00137 Q_DECLARE_FLAGS(KeyboardModifiers, KeyboardModifier)
00138
00139
00140 enum Modifier {
00141 META = Qt::MetaModifier,
00142 SHIFT = Qt::ShiftModifier,
00143 CTRL = Qt::ControlModifier,
00144 ALT = Qt::AltModifier,
00145 MODIFIER_MASK = KeyboardModifierMask,
00146 UNICODE_ACCEL = 0x00000000
00147 };
00148
00149 enum MouseButton {
00150 NoButton = 0x00000000,
00151 LeftButton = 0x00000001,
00152 RightButton = 0x00000002,
00153 MidButton = 0x00000004,
00154 MiddleButton = MidButton,
00155 XButton1 = 0x00000008,
00156 XButton2 = 0x00000010,
00157 MouseButtonMask = 0x000000ff
00158 };
00159 Q_DECLARE_FLAGS(MouseButtons, MouseButton)
00160
00161 #ifdef QT3_SUPPORT
00162 enum ButtonState_enum {
00163 ShiftButton = Qt::ShiftModifier,
00164 ControlButton = Qt::ControlModifier,
00165 AltButton = Qt::AltModifier,
00166 MetaButton = Qt::MetaModifier,
00167 Keypad = Qt::KeypadModifier,
00168 KeyButtonMask = Qt::KeyboardModifierMask
00169 };
00170 typedef int ButtonState;
00171 #endif
00172
00173 enum Orientation {
00174 Horizontal = 0x1,
00175 Vertical = 0x2
00176 };
00177
00178 Q_DECLARE_FLAGS(Orientations, Orientation)
00179
00180 enum FocusPolicy {
00181 NoFocus = 0,
00182 TabFocus = 0x1,
00183 ClickFocus = 0x2,
00184 StrongFocus = TabFocus | ClickFocus | 0x8,
00185 WheelFocus = StrongFocus | 0x4
00186 };
00187
00188 enum SortOrder {
00189 AscendingOrder,
00190 DescendingOrder
00191 #if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
00192 ,Ascending = AscendingOrder,
00193 Descending = DescendingOrder
00194 #endif
00195 };
00196
00197 enum TileRule {
00198 StretchTile,
00199 RepeatTile,
00200 RoundTile
00201 };
00202
00203
00204
00205
00206
00207 enum AlignmentFlag {
00208 AlignLeft = 0x0001,
00209 AlignLeading = AlignLeft,
00210 AlignRight = 0x0002,
00211 AlignTrailing = AlignRight,
00212 AlignHCenter = 0x0004,
00213 AlignJustify = 0x0008,
00214 AlignAbsolute = 0x0010,
00215 AlignHorizontal_Mask = AlignLeft | AlignRight | AlignHCenter | AlignJustify | AlignAbsolute,
00216
00217 AlignTop = 0x0020,
00218 AlignBottom = 0x0040,
00219 AlignVCenter = 0x0080,
00220 AlignVertical_Mask = AlignTop | AlignBottom | AlignVCenter,
00221
00222 AlignCenter = AlignVCenter | AlignHCenter
00223 #if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
00224 , AlignAuto = AlignLeft
00225 #endif
00226 };
00227
00228 Q_DECLARE_FLAGS(Alignment, AlignmentFlag)
00229
00230 enum TextFlag {
00231 TextSingleLine = 0x0100,
00232 TextDontClip = 0x0200,
00233 TextExpandTabs = 0x0400,
00234 TextShowMnemonic = 0x0800,
00235 TextWordWrap = 0x1000,
00236 TextWrapAnywhere = 0x2000,
00237 TextDontPrint = 0x4000,
00238 TextIncludeTrailingSpaces = 0x08000000,
00239 TextHideMnemonic = 0x8000,
00240 TextJustificationForced = 0x10000,
00241 TextForceLeftToRight = 0x20000,
00242 TextForceRightToLeft = 0x40000,
00243 TextLongestVariant = 0x80000,
00244 TextBypassShaping = 0x100000
00245
00246 #if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
00247 ,SingleLine = TextSingleLine,
00248 DontClip = TextDontClip,
00249 ExpandTabs = TextExpandTabs,
00250 ShowPrefix = TextShowMnemonic,
00251 WordBreak = TextWordWrap,
00252 BreakAnywhere = TextWrapAnywhere,
00253 DontPrint = TextDontPrint,
00254 IncludeTrailingSpaces = TextIncludeTrailingSpaces,
00255 NoAccel = TextHideMnemonic
00256 #endif
00257 };
00258 #ifdef QT3_SUPPORT
00259 typedef TextFlag TextFlags;
00260 #endif
00261
00262 enum TextElideMode {
00263 ElideLeft,
00264 ElideRight,
00265 ElideMiddle,
00266 ElideNone
00267 };
00268
00269 enum WindowType {
00270 Widget = 0x00000000,
00271 Window = 0x00000001,
00272 Dialog = 0x00000002 | Window,
00273 Sheet = 0x00000004 | Window,
00274 Drawer = 0x00000006 | Window,
00275 Popup = 0x00000008 | Window,
00276 Tool = 0x0000000a | Window,
00277 ToolTip = 0x0000000c | Window,
00278 SplashScreen = 0x0000000e | Window,
00279 Desktop = 0x00000010 | Window,
00280 SubWindow = 0x00000012,
00281
00282 WindowType_Mask = 0x000000ff,
00283 MSWindowsFixedSizeDialogHint = 0x00000100,
00284 MSWindowsOwnDC = 0x00000200,
00285 X11BypassWindowManagerHint = 0x00000400,
00286 FramelessWindowHint = 0x00000800,
00287 WindowTitleHint = 0x00001000,
00288 WindowSystemMenuHint = 0x00002000,
00289 WindowMinimizeButtonHint = 0x00004000,
00290 WindowMaximizeButtonHint = 0x00008000,
00291 WindowMinMaxButtonsHint = WindowMinimizeButtonHint | WindowMaximizeButtonHint,
00292 WindowContextHelpButtonHint = 0x00010000,
00293 WindowShadeButtonHint = 0x00020000,
00294 WindowStaysOnTopHint = 0x00040000,
00295
00296
00297
00298
00299
00300
00301
00302 CustomizeWindowHint = 0x02000000,
00303 WindowStaysOnBottomHint = 0x04000000,
00304 WindowCloseButtonHint = 0x08000000,
00305 MacWindowToolBarButtonHint = 0x10000000,
00306 BypassGraphicsProxyWidget = 0x20000000,
00307 WindowOkButtonHint = 0x00080000,
00308 WindowCancelButtonHint = 0x00100000,
00309 WindowSoftkeysVisibleHint = 0x40000000,
00310 WindowSoftkeysRespondHint = 0x80000000
00311
00312 #ifdef QT3_SUPPORT
00313 ,
00314 WMouseNoMask = 0x00080000,
00315 WDestructiveClose = 0x00100000,
00316 WStaticContents = 0x00200000,
00317 WGroupLeader = 0x00400000,
00318 WShowModal = 0x00800000,
00319 WNoMousePropagation = 0x01000000,
00320
00321 WType_TopLevel = Window,
00322 WType_Dialog = Dialog,
00323 WType_Popup = Popup,
00324 WType_Desktop = Desktop,
00325 WType_Mask = WindowType_Mask,
00326
00327 WStyle_Customize = 0,
00328 WStyle_NormalBorder = 0,
00329 WStyle_DialogBorder = MSWindowsFixedSizeDialogHint,
00330 WStyle_NoBorder = FramelessWindowHint,
00331 WStyle_Title = WindowTitleHint,
00332 WStyle_SysMenu = WindowSystemMenuHint,
00333 WStyle_Minimize = WindowMinimizeButtonHint,
00334 WStyle_Maximize = WindowMaximizeButtonHint,
00335 WStyle_MinMax = WStyle_Minimize | WStyle_Maximize,
00336 WStyle_Tool = Tool,
00337 WStyle_StaysOnTop = WindowStaysOnTopHint,
00338 WStyle_ContextHelp = WindowContextHelpButtonHint,
00339
00340
00341 WPaintDesktop = 0,
00342 WPaintClever = 0,
00343
00344 WX11BypassWM = X11BypassWindowManagerHint,
00345 WWinOwnDC = MSWindowsOwnDC,
00346 WMacSheet = Sheet,
00347 WMacDrawer = Drawer,
00348
00349 WStyle_Splash = SplashScreen,
00350
00351 WNoAutoErase = 0,
00352 WRepaintNoErase = 0,
00353 WNorthWestGravity = WStaticContents,
00354 WType_Modal = Dialog | WShowModal,
00355 WStyle_Dialog = Dialog,
00356 WStyle_NoBorderEx = FramelessWindowHint,
00357 WResizeNoErase = 0,
00358 WMacNoSheet = 0
00359 #endif
00360
00361 };
00362
00363 Q_DECLARE_FLAGS(WindowFlags, WindowType)
00364
00365 enum WindowState {
00366 WindowNoState = 0x00000000,
00367 WindowMinimized = 0x00000001,
00368 WindowMaximized = 0x00000002,
00369 WindowFullScreen = 0x00000004,
00370 WindowActive = 0x00000008
00371 };
00372
00373 Q_DECLARE_FLAGS(WindowStates, WindowState)
00374
00375 enum WidgetAttribute {
00376 WA_Disabled = 0,
00377 WA_UnderMouse = 1,
00378 WA_MouseTracking = 2,
00379 WA_ContentsPropagated = 3,
00380 WA_OpaquePaintEvent = 4,
00381 WA_NoBackground = WA_OpaquePaintEvent,
00382 WA_StaticContents = 5,
00383 WA_LaidOut = 7,
00384 WA_PaintOnScreen = 8,
00385 WA_NoSystemBackground = 9,
00386 WA_UpdatesDisabled = 10,
00387 WA_Mapped = 11,
00388 WA_MacNoClickThrough = 12,
00389 WA_PaintOutsidePaintEvent = 13,
00390 WA_InputMethodEnabled = 14,
00391 WA_WState_Visible = 15,
00392 WA_WState_Hidden = 16,
00393
00394 WA_ForceDisabled = 32,
00395 WA_KeyCompression = 33,
00396 WA_PendingMoveEvent = 34,
00397 WA_PendingResizeEvent = 35,
00398 WA_SetPalette = 36,
00399 WA_SetFont = 37,
00400 WA_SetCursor = 38,
00401 WA_NoChildEventsFromChildren = 39,
00402 WA_WindowModified = 41,
00403 WA_Resized = 42,
00404 WA_Moved = 43,
00405 WA_PendingUpdate = 44,
00406 WA_InvalidSize = 45,
00407 WA_MacBrushedMetal = 46,
00408 WA_MacMetalStyle = WA_MacBrushedMetal,
00409 WA_CustomWhatsThis = 47,
00410 WA_LayoutOnEntireRect = 48,
00411 WA_OutsideWSRange = 49,
00412 WA_GrabbedShortcut = 50,
00413 WA_TransparentForMouseEvents = 51,
00414 WA_PaintUnclipped = 52,
00415 WA_SetWindowIcon = 53,
00416 WA_NoMouseReplay = 54,
00417 WA_DeleteOnClose = 55,
00418 WA_RightToLeft = 56,
00419 WA_SetLayoutDirection = 57,
00420 WA_NoChildEventsForParent = 58,
00421 WA_ForceUpdatesDisabled = 59,
00422
00423 WA_WState_Created = 60,
00424 WA_WState_CompressKeys = 61,
00425 WA_WState_InPaintEvent = 62,
00426 WA_WState_Reparented = 63,
00427 WA_WState_ConfigPending = 64,
00428 WA_WState_Polished = 66,
00429 WA_WState_DND = 67,
00430 WA_WState_OwnSizePolicy = 68,
00431 WA_WState_ExplicitShowHide = 69,
00432
00433 WA_ShowModal = 70,
00434 WA_MouseNoMask = 71,
00435 WA_GroupLeader = 72,
00436 WA_NoMousePropagation = 73,
00437 WA_Hover = 74,
00438 WA_InputMethodTransparent = 75,
00439 WA_QuitOnClose = 76,
00440
00441 WA_KeyboardFocusChange = 77,
00442
00443 WA_AcceptDrops = 78,
00444 WA_DropSiteRegistered = 79,
00445 WA_ForceAcceptDrops = WA_DropSiteRegistered,
00446
00447 WA_WindowPropagation = 80,
00448
00449 WA_NoX11EventCompression = 81,
00450 WA_TintedBackground = 82,
00451 WA_X11OpenGLOverlay = 83,
00452 WA_AlwaysShowToolTips = 84,
00453 WA_MacOpaqueSizeGrip = 85,
00454 WA_SetStyle = 86,
00455
00456 WA_SetLocale = 87,
00457 WA_MacShowFocusRect = 88,
00458
00459 WA_MacNormalSize = 89,
00460 WA_MacSmallSize = 90,
00461 WA_MacMiniSize = 91,
00462
00463 WA_LayoutUsesWidgetRect = 92,
00464 WA_StyledBackground = 93,
00465 WA_MSWindowsUseDirect3D = 94,
00466 WA_CanHostQMdiSubWindowTitleBar = 95,
00467
00468 WA_MacAlwaysShowToolWindow = 96,
00469
00470 WA_StyleSheet = 97,
00471
00472 WA_ShowWithoutActivating = 98,
00473
00474 WA_X11BypassTransientForHint = 99,
00475
00476 WA_NativeWindow = 100,
00477 WA_DontCreateNativeAncestors = 101,
00478
00479 WA_MacVariableSize = 102,
00480
00481 WA_DontShowOnScreen = 103,
00482
00483
00484 WA_X11NetWmWindowTypeDesktop = 104,
00485 WA_X11NetWmWindowTypeDock = 105,
00486 WA_X11NetWmWindowTypeToolBar = 106,
00487 WA_X11NetWmWindowTypeMenu = 107,
00488 WA_X11NetWmWindowTypeUtility = 108,
00489 WA_X11NetWmWindowTypeSplash = 109,
00490 WA_X11NetWmWindowTypeDialog = 110,
00491 WA_X11NetWmWindowTypeDropDownMenu = 111,
00492 WA_X11NetWmWindowTypePopupMenu = 112,
00493 WA_X11NetWmWindowTypeToolTip = 113,
00494 WA_X11NetWmWindowTypeNotification = 114,
00495 WA_X11NetWmWindowTypeCombo = 115,
00496 WA_X11NetWmWindowTypeDND = 116,
00497
00498 WA_MacFrameworkScaled = 117,
00499
00500 WA_SetWindowModality = 118,
00501 WA_WState_WindowOpacitySet = 119,
00502 WA_TranslucentBackground = 120,
00503
00504 WA_AcceptTouchEvents = 121,
00505 WA_WState_AcceptedTouchBeginEvent = 122,
00506 WA_TouchPadAcceptSingleTouchEvents = 123,
00507
00508 WA_MergeSoftkeys = 124,
00509 WA_MergeSoftkeysRecursively = 125,
00510
00511 #if 0 // these values are reserved for Maemo5 - do not re-use them
00512 WA_Maemo5NonComposited = 126,
00513 WA_Maemo5StackedWindow = 127,
00514 WA_Maemo5PortraitOrientation = 128,
00515 WA_Maemo5LandscapeOrientation = 129,
00516 WA_Maemo5AutoOrientation = 130,
00517 WA_Maemo5ShowProgressIndicator = 131,
00518 #endif
00519
00520 WA_X11DoNotAcceptFocus = 132,
00521
00522
00523 WA_AttributeCount
00524 };
00525
00526 enum ApplicationAttribute
00527 {
00528 AA_ImmediateWidgetCreation = 0,
00529 AA_MSWindowsUseDirect3DByDefault = 1,
00530 AA_DontShowIconsInMenus = 2,
00531 AA_NativeWindows = 3,
00532 AA_DontCreateNativeWidgetSiblings = 4,
00533 AA_MacPluginApplication = 5,
00534 AA_DontUseNativeMenuBar = 6,
00535 AA_MacDontSwapCtrlAndMeta = 7,
00536 AA_S60DontConstructApplicationPanes = 8,
00537
00538
00539 AA_AttributeCount
00540 };
00541
00542
00543
00544
00545
00546 enum ImageConversionFlag {
00547 ColorMode_Mask = 0x00000003,
00548 AutoColor = 0x00000000,
00549 ColorOnly = 0x00000003,
00550 MonoOnly = 0x00000002,
00551
00552
00553 AlphaDither_Mask = 0x0000000c,
00554 ThresholdAlphaDither = 0x00000000,
00555 OrderedAlphaDither = 0x00000004,
00556 DiffuseAlphaDither = 0x00000008,
00557 NoAlpha = 0x0000000c,
00558
00559 Dither_Mask = 0x00000030,
00560 DiffuseDither = 0x00000000,
00561 OrderedDither = 0x00000010,
00562 ThresholdDither = 0x00000020,
00563
00564
00565 DitherMode_Mask = 0x000000c0,
00566 AutoDither = 0x00000000,
00567 PreferDither = 0x00000040,
00568 AvoidDither = 0x00000080,
00569
00570 NoOpaqueDetection = 0x00000100
00571 };
00572 Q_DECLARE_FLAGS(ImageConversionFlags, ImageConversionFlag)
00573
00574 enum BGMode {
00575 TransparentMode,
00576 OpaqueMode
00577 };
00578
00579 #ifdef QT3_SUPPORT
00580 enum PaintUnit {
00581 PixelUnit,
00582 LoMetricUnit,
00583 HiMetricUnit,
00584 LoEnglishUnit,
00585 HiEnglishUnit,
00586 TwipsUnit
00587 };
00588
00589 enum GUIStyle {
00590 MacStyle,
00591 WindowsStyle,
00592 Win3Style,
00593 PMStyle,
00594 MotifStyle
00595 };
00596 #endif
00597
00598 enum Key {
00599 Key_Escape = 0x01000000,
00600 Key_Tab = 0x01000001,
00601 Key_Backtab = 0x01000002,
00602 #if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
00603 Key_BackTab = Key_Backtab,
00604 #endif
00605 Key_Backspace = 0x01000003,
00606 #if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
00607 Key_BackSpace = Key_Backspace,
00608 #endif
00609 Key_Return = 0x01000004,
00610 Key_Enter = 0x01000005,
00611 Key_Insert = 0x01000006,
00612 Key_Delete = 0x01000007,
00613 Key_Pause = 0x01000008,
00614 Key_Print = 0x01000009,
00615 Key_SysReq = 0x0100000a,
00616 Key_Clear = 0x0100000b,
00617 Key_Home = 0x01000010,
00618 Key_End = 0x01000011,
00619 Key_Left = 0x01000012,
00620 Key_Up = 0x01000013,
00621 Key_Right = 0x01000014,
00622 Key_Down = 0x01000015,
00623 Key_PageUp = 0x01000016,
00624 #if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
00625 Key_Prior = Key_PageUp,
00626 #endif
00627 Key_PageDown = 0x01000017,
00628 #if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
00629 Key_Next = Key_PageDown,
00630 #endif
00631 Key_Shift = 0x01000020,
00632 Key_Control = 0x01000021,
00633 Key_Meta = 0x01000022,
00634 Key_Alt = 0x01000023,
00635 Key_CapsLock = 0x01000024,
00636 Key_NumLock = 0x01000025,
00637 Key_ScrollLock = 0x01000026,
00638 Key_F1 = 0x01000030,
00639 Key_F2 = 0x01000031,
00640 Key_F3 = 0x01000032,
00641 Key_F4 = 0x01000033,
00642 Key_F5 = 0x01000034,
00643 Key_F6 = 0x01000035,
00644 Key_F7 = 0x01000036,
00645 Key_F8 = 0x01000037,
00646 Key_F9 = 0x01000038,
00647 Key_F10 = 0x01000039,
00648 Key_F11 = 0x0100003a,
00649 Key_F12 = 0x0100003b,
00650 Key_F13 = 0x0100003c,
00651 Key_F14 = 0x0100003d,
00652 Key_F15 = 0x0100003e,
00653 Key_F16 = 0x0100003f,
00654 Key_F17 = 0x01000040,
00655 Key_F18 = 0x01000041,
00656 Key_F19 = 0x01000042,
00657 Key_F20 = 0x01000043,
00658 Key_F21 = 0x01000044,
00659 Key_F22 = 0x01000045,
00660 Key_F23 = 0x01000046,
00661 Key_F24 = 0x01000047,
00662 Key_F25 = 0x01000048,
00663 Key_F26 = 0x01000049,
00664 Key_F27 = 0x0100004a,
00665 Key_F28 = 0x0100004b,
00666 Key_F29 = 0x0100004c,
00667 Key_F30 = 0x0100004d,
00668 Key_F31 = 0x0100004e,
00669 Key_F32 = 0x0100004f,
00670 Key_F33 = 0x01000050,
00671 Key_F34 = 0x01000051,
00672 Key_F35 = 0x01000052,
00673 Key_Super_L = 0x01000053,
00674 Key_Super_R = 0x01000054,
00675 Key_Menu = 0x01000055,
00676 Key_Hyper_L = 0x01000056,
00677 Key_Hyper_R = 0x01000057,
00678 Key_Help = 0x01000058,
00679 Key_Direction_L = 0x01000059,
00680 Key_Direction_R = 0x01000060,
00681 Key_Space = 0x20,
00682 Key_Any = Key_Space,
00683 Key_Exclam = 0x21,
00684 Key_QuoteDbl = 0x22,
00685 Key_NumberSign = 0x23,
00686 Key_Dollar = 0x24,
00687 Key_Percent = 0x25,
00688 Key_Ampersand = 0x26,
00689 Key_Apostrophe = 0x27,
00690 Key_ParenLeft = 0x28,
00691 Key_ParenRight = 0x29,
00692 Key_Asterisk = 0x2a,
00693 Key_Plus = 0x2b,
00694 Key_Comma = 0x2c,
00695 Key_Minus = 0x2d,
00696 Key_Period = 0x2e,
00697 Key_Slash = 0x2f,
00698 Key_0 = 0x30,
00699 Key_1 = 0x31,
00700 Key_2 = 0x32,
00701 Key_3 = 0x33,
00702 Key_4 = 0x34,
00703 Key_5 = 0x35,
00704 Key_6 = 0x36,
00705 Key_7 = 0x37,
00706 Key_8 = 0x38,
00707 Key_9 = 0x39,
00708 Key_Colon = 0x3a,
00709 Key_Semicolon = 0x3b,
00710 Key_Less = 0x3c,
00711 Key_Equal = 0x3d,
00712 Key_Greater = 0x3e,
00713 Key_Question = 0x3f,
00714 Key_At = 0x40,
00715 Key_A = 0x41,
00716 Key_B = 0x42,
00717 Key_C = 0x43,
00718 Key_D = 0x44,
00719 Key_E = 0x45,
00720 Key_F = 0x46,
00721 Key_G = 0x47,
00722 Key_H = 0x48,
00723 Key_I = 0x49,
00724 Key_J = 0x4a,
00725 Key_K = 0x4b,
00726 Key_L = 0x4c,
00727 Key_M = 0x4d,
00728 Key_N = 0x4e,
00729 Key_O = 0x4f,
00730 Key_P = 0x50,
00731 Key_Q = 0x51,
00732 Key_R = 0x52,
00733 Key_S = 0x53,
00734 Key_T = 0x54,
00735 Key_U = 0x55,
00736 Key_V = 0x56,
00737 Key_W = 0x57,
00738 Key_X = 0x58,
00739 Key_Y = 0x59,
00740 Key_Z = 0x5a,
00741 Key_BracketLeft = 0x5b,
00742 Key_Backslash = 0x5c,
00743 Key_BracketRight = 0x5d,
00744 Key_AsciiCircum = 0x5e,
00745 Key_Underscore = 0x5f,
00746 Key_QuoteLeft = 0x60,
00747 Key_BraceLeft = 0x7b,
00748 Key_Bar = 0x7c,
00749 Key_BraceRight = 0x7d,
00750 Key_AsciiTilde = 0x7e,
00751
00752 Key_nobreakspace = 0x0a0,
00753 Key_exclamdown = 0x0a1,
00754 Key_cent = 0x0a2,
00755 Key_sterling = 0x0a3,
00756 Key_currency = 0x0a4,
00757 Key_yen = 0x0a5,
00758 Key_brokenbar = 0x0a6,
00759 Key_section = 0x0a7,
00760 Key_diaeresis = 0x0a8,
00761 Key_copyright = 0x0a9,
00762 Key_ordfeminine = 0x0aa,
00763 Key_guillemotleft = 0x0ab,
00764 Key_notsign = 0x0ac,
00765 Key_hyphen = 0x0ad,
00766 Key_registered = 0x0ae,
00767 Key_macron = 0x0af,
00768 Key_degree = 0x0b0,
00769 Key_plusminus = 0x0b1,
00770 Key_twosuperior = 0x0b2,
00771 Key_threesuperior = 0x0b3,
00772 Key_acute = 0x0b4,
00773 Key_mu = 0x0b5,
00774 Key_paragraph = 0x0b6,
00775 Key_periodcentered = 0x0b7,
00776 Key_cedilla = 0x0b8,
00777 Key_onesuperior = 0x0b9,
00778 Key_masculine = 0x0ba,
00779 Key_guillemotright = 0x0bb,
00780 Key_onequarter = 0x0bc,
00781 Key_onehalf = 0x0bd,
00782 Key_threequarters = 0x0be,
00783 Key_questiondown = 0x0bf,
00784 Key_Agrave = 0x0c0,
00785 Key_Aacute = 0x0c1,
00786 Key_Acircumflex = 0x0c2,
00787 Key_Atilde = 0x0c3,
00788 Key_Adiaeresis = 0x0c4,
00789 Key_Aring = 0x0c5,
00790 Key_AE = 0x0c6,
00791 Key_Ccedilla = 0x0c7,
00792 Key_Egrave = 0x0c8,
00793 Key_Eacute = 0x0c9,
00794 Key_Ecircumflex = 0x0ca,
00795 Key_Ediaeresis = 0x0cb,
00796 Key_Igrave = 0x0cc,
00797 Key_Iacute = 0x0cd,
00798 Key_Icircumflex = 0x0ce,
00799 Key_Idiaeresis = 0x0cf,
00800 Key_ETH = 0x0d0,
00801 Key_Ntilde = 0x0d1,
00802 Key_Ograve = 0x0d2,
00803 Key_Oacute = 0x0d3,
00804 Key_Ocircumflex = 0x0d4,
00805 Key_Otilde = 0x0d5,
00806 Key_Odiaeresis = 0x0d6,
00807 Key_multiply = 0x0d7,
00808 Key_Ooblique = 0x0d8,
00809 Key_Ugrave = 0x0d9,
00810 Key_Uacute = 0x0da,
00811 Key_Ucircumflex = 0x0db,
00812 Key_Udiaeresis = 0x0dc,
00813 Key_Yacute = 0x0dd,
00814 Key_THORN = 0x0de,
00815 Key_ssharp = 0x0df,
00816 #if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
00817 Key_agrave = Key_Agrave,
00818 Key_aacute = Key_Aacute,
00819 Key_acircumflex = Key_Acircumflex,
00820 Key_atilde = Key_Atilde,
00821 Key_adiaeresis = Key_Adiaeresis,
00822 Key_aring = Key_Aring,
00823 Key_ae = Key_AE,
00824 Key_ccedilla = Key_Ccedilla,
00825 Key_egrave = Key_Egrave,
00826 Key_eacute = Key_Eacute,
00827 Key_ecircumflex = Key_Ecircumflex,
00828 Key_ediaeresis = Key_Ediaeresis,
00829 Key_igrave = Key_Igrave,
00830 Key_iacute = Key_Iacute,
00831 Key_icircumflex = Key_Icircumflex,
00832 Key_idiaeresis = Key_Idiaeresis,
00833 Key_eth = Key_ETH,
00834 Key_ntilde = Key_Ntilde,
00835 Key_ograve = Key_Ograve,
00836 Key_oacute = Key_Oacute,
00837 Key_ocircumflex = Key_Ocircumflex,
00838 Key_otilde = Key_Otilde,
00839 Key_odiaeresis = Key_Odiaeresis,
00840 #endif
00841 Key_division = 0x0f7,
00842 #if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
00843 Key_oslash = Key_Ooblique,
00844 Key_ugrave = Key_Ugrave,
00845 Key_uacute = Key_Uacute,
00846 Key_ucircumflex = Key_Ucircumflex,
00847 Key_udiaeresis = Key_Udiaeresis,
00848 Key_yacute = Key_Yacute,
00849 Key_thorn = Key_THORN,
00850 #endif
00851 Key_ydiaeresis = 0x0ff,
00852
00853
00854
00855
00856
00857
00858 Key_AltGr = 0x01001103,
00859 Key_Multi_key = 0x01001120,
00860 Key_Codeinput = 0x01001137,
00861 Key_SingleCandidate = 0x0100113c,
00862 Key_MultipleCandidate = 0x0100113d,
00863 Key_PreviousCandidate = 0x0100113e,
00864
00865
00866 Key_Mode_switch = 0x0100117e,
00867
00868
00869
00870 Key_Kanji = 0x01001121,
00871 Key_Muhenkan = 0x01001122,
00872
00873 Key_Henkan = 0x01001123,
00874 Key_Romaji = 0x01001124,
00875 Key_Hiragana = 0x01001125,
00876 Key_Katakana = 0x01001126,
00877 Key_Hiragana_Katakana = 0x01001127,
00878 Key_Zenkaku = 0x01001128,
00879 Key_Hankaku = 0x01001129,
00880 Key_Zenkaku_Hankaku = 0x0100112a,
00881 Key_Touroku = 0x0100112b,
00882 Key_Massyo = 0x0100112c,
00883 Key_Kana_Lock = 0x0100112d,
00884 Key_Kana_Shift = 0x0100112e,
00885 Key_Eisu_Shift = 0x0100112f,
00886 Key_Eisu_toggle = 0x01001130,
00887
00888
00889
00890
00891
00892
00893
00894
00895
00896 Key_Hangul = 0x01001131,
00897 Key_Hangul_Start = 0x01001132,
00898 Key_Hangul_End = 0x01001133,
00899 Key_Hangul_Hanja = 0x01001134,
00900 Key_Hangul_Jamo = 0x01001135,
00901 Key_Hangul_Romaja = 0x01001136,
00902
00903 Key_Hangul_Jeonja = 0x01001138,
00904 Key_Hangul_Banja = 0x01001139,
00905 Key_Hangul_PreHanja = 0x0100113a,
00906 Key_Hangul_PostHanja = 0x0100113b,
00907
00908
00909
00910 Key_Hangul_Special = 0x0100113f,
00911
00912
00913
00914 Key_Dead_Grave = 0x01001250,
00915 Key_Dead_Acute = 0x01001251,
00916 Key_Dead_Circumflex = 0x01001252,
00917 Key_Dead_Tilde = 0x01001253,
00918 Key_Dead_Macron = 0x01001254,
00919 Key_Dead_Breve = 0x01001255,
00920 Key_Dead_Abovedot = 0x01001256,
00921 Key_Dead_Diaeresis = 0x01001257,
00922 Key_Dead_Abovering = 0x01001258,
00923 Key_Dead_Doubleacute = 0x01001259,
00924 Key_Dead_Caron = 0x0100125a,
00925 Key_Dead_Cedilla = 0x0100125b,
00926 Key_Dead_Ogonek = 0x0100125c,
00927 Key_Dead_Iota = 0x0100125d,
00928 Key_Dead_Voiced_Sound = 0x0100125e,
00929 Key_Dead_Semivoiced_Sound = 0x0100125f,
00930 Key_Dead_Belowdot = 0x01001260,
00931 Key_Dead_Hook = 0x01001261,
00932 Key_Dead_Horn = 0x01001262,
00933
00934
00935 Key_Back = 0x01000061,
00936 Key_Forward = 0x01000062,
00937 Key_Stop = 0x01000063,
00938 Key_Refresh = 0x01000064,
00939 Key_VolumeDown = 0x01000070,
00940 Key_VolumeMute = 0x01000071,
00941 Key_VolumeUp = 0x01000072,
00942 Key_BassBoost = 0x01000073,
00943 Key_BassUp = 0x01000074,
00944 Key_BassDown = 0x01000075,
00945 Key_TrebleUp = 0x01000076,
00946 Key_TrebleDown = 0x01000077,
00947 Key_MediaPlay = 0x01000080,
00948 Key_MediaStop = 0x01000081,
00949 Key_MediaPrevious = 0x01000082,
00950 #if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
00951 Key_MediaPrev = Key_MediaPrevious,
00952 #endif
00953 Key_MediaNext = 0x01000083,
00954 Key_MediaRecord = 0x01000084,
00955 Key_MediaPause = 0x1000085,
00956 Key_MediaTogglePlayPause = 0x1000086,
00957 Key_HomePage = 0x01000090,
00958 Key_Favorites = 0x01000091,
00959 Key_Search = 0x01000092,
00960 Key_Standby = 0x01000093,
00961 Key_OpenUrl = 0x01000094,
00962 Key_LaunchMail = 0x010000a0,
00963 Key_LaunchMedia = 0x010000a1,
00964 Key_Launch0 = 0x010000a2,
00965 Key_Launch1 = 0x010000a3,
00966 Key_Launch2 = 0x010000a4,
00967 Key_Launch3 = 0x010000a5,
00968 Key_Launch4 = 0x010000a6,
00969 Key_Launch5 = 0x010000a7,
00970 Key_Launch6 = 0x010000a8,
00971 Key_Launch7 = 0x010000a9,
00972 Key_Launch8 = 0x010000aa,
00973 Key_Launch9 = 0x010000ab,
00974 Key_LaunchA = 0x010000ac,
00975 Key_LaunchB = 0x010000ad,
00976 Key_LaunchC = 0x010000ae,
00977 Key_LaunchD = 0x010000af,
00978 Key_LaunchE = 0x010000b0,
00979 Key_LaunchF = 0x010000b1,
00980 Key_MonBrightnessUp = 0x010000b2,
00981 Key_MonBrightnessDown = 0x010000b3,
00982 Key_KeyboardLightOnOff = 0x010000b4,
00983 Key_KeyboardBrightnessUp = 0x010000b5,
00984 Key_KeyboardBrightnessDown = 0x010000b6,
00985 Key_PowerOff = 0x010000b7,
00986 Key_WakeUp = 0x010000b8,
00987 Key_Eject = 0x010000b9,
00988 Key_ScreenSaver = 0x010000ba,
00989 Key_WWW = 0x010000bb,
00990 Key_Memo = 0x010000bc,
00991 Key_LightBulb = 0x010000bd,
00992 Key_Shop = 0x010000be,
00993 Key_History = 0x010000bf,
00994 Key_AddFavorite = 0x010000c0,
00995 Key_HotLinks = 0x010000c1,
00996 Key_BrightnessAdjust = 0x010000c2,
00997 Key_Finance = 0x010000c3,
00998 Key_Community = 0x010000c4,
00999 Key_AudioRewind = 0x010000c5,
01000 Key_BackForward = 0x010000c6,
01001 Key_ApplicationLeft = 0x010000c7,
01002 Key_ApplicationRight = 0x010000c8,
01003 Key_Book = 0x010000c9,
01004 Key_CD = 0x010000ca,
01005 Key_Calculator = 0x010000cb,
01006 Key_ToDoList = 0x010000cc,
01007 Key_ClearGrab = 0x010000cd,
01008 Key_Close = 0x010000ce,
01009 Key_Copy = 0x010000cf,
01010 Key_Cut = 0x010000d0,
01011 Key_Display = 0x010000d1,
01012 Key_DOS = 0x010000d2,
01013 Key_Documents = 0x010000d3,
01014 Key_Excel = 0x010000d4,
01015 Key_Explorer = 0x010000d5,
01016 Key_Game = 0x010000d6,
01017 Key_Go = 0x010000d7,
01018 Key_iTouch = 0x010000d8,
01019 Key_LogOff = 0x010000d9,
01020 Key_Market = 0x010000da,
01021 Key_Meeting = 0x010000db,
01022 Key_MenuKB = 0x010000dc,
01023 Key_MenuPB = 0x010000dd,
01024 Key_MySites = 0x010000de,
01025 Key_News = 0x010000df,
01026 Key_OfficeHome = 0x010000e0,
01027 Key_Option = 0x010000e1,
01028 Key_Paste = 0x010000e2,
01029 Key_Phone = 0x010000e3,
01030 Key_Calendar = 0x010000e4,
01031 Key_Reply = 0x010000e5,
01032 Key_Reload = 0x010000e6,
01033 Key_RotateWindows = 0x010000e7,
01034 Key_RotationPB = 0x010000e8,
01035 Key_RotationKB = 0x010000e9,
01036 Key_Save = 0x010000ea,
01037 Key_Send = 0x010000eb,
01038 Key_Spell = 0x010000ec,
01039 Key_SplitScreen = 0x010000ed,
01040 Key_Support = 0x010000ee,
01041 Key_TaskPane = 0x010000ef,
01042 Key_Terminal = 0x010000f0,
01043 Key_Tools = 0x010000f1,
01044 Key_Travel = 0x010000f2,
01045 Key_Video = 0x010000f3,
01046 Key_Word = 0x010000f4,
01047 Key_Xfer = 0x010000f5,
01048 Key_ZoomIn = 0x010000f6,
01049 Key_ZoomOut = 0x010000f7,
01050 Key_Away = 0x010000f8,
01051 Key_Messenger = 0x010000f9,
01052 Key_WebCam = 0x010000fa,
01053 Key_MailForward = 0x010000fb,
01054 Key_Pictures = 0x010000fc,
01055 Key_Music = 0x010000fd,
01056 Key_Battery = 0x010000fe,
01057 Key_Bluetooth = 0x010000ff,
01058 Key_WLAN = 0x01000100,
01059 Key_UWB = 0x01000101,
01060 Key_AudioForward = 0x01000102,
01061 Key_AudioRepeat = 0x01000103,
01062 Key_AudioRandomPlay = 0x01000104,
01063 Key_Subtitle = 0x01000105,
01064 Key_AudioCycleTrack = 0x01000106,
01065 Key_Time = 0x01000107,
01066 Key_Hibernate = 0x01000108,
01067 Key_View = 0x01000109,
01068 Key_TopMenu = 0x0100010a,
01069 Key_PowerDown = 0x0100010b,
01070 Key_Suspend = 0x0100010c,
01071 Key_ContrastAdjust = 0x0100010d,
01072
01073 Key_LaunchG = 0x0100010e,
01074 Key_LaunchH = 0x0100010f,
01075
01076 Key_MediaLast = 0x0100ffff,
01077
01078
01079 Key_Select = 0x01010000,
01080 Key_Yes = 0x01010001,
01081 Key_No = 0x01010002,
01082
01083
01084 Key_Cancel = 0x01020001,
01085 Key_Printer = 0x01020002,
01086 Key_Execute = 0x01020003,
01087 Key_Sleep = 0x01020004,
01088 Key_Play = 0x01020005,
01089 Key_Zoom = 0x01020006,
01090
01091
01092
01093
01094
01095 Key_Context1 = 0x01100000,
01096 Key_Context2 = 0x01100001,
01097 Key_Context3 = 0x01100002,
01098 Key_Context4 = 0x01100003,
01099 Key_Call = 0x01100004,
01100 Key_Hangup = 0x01100005,
01101 Key_Flip = 0x01100006,
01102 Key_ToggleCallHangup = 0x01100007,
01103 Key_VoiceDial = 0x01100008,
01104 Key_LastNumberRedial = 0x01100009,
01105
01106 Key_Camera = 0x01100020,
01107 Key_CameraFocus = 0x01100021,
01108
01109 Key_unknown = 0x01ffffff
01110 };
01111
01112 enum ArrowType {
01113 NoArrow,
01114 UpArrow,
01115 DownArrow,
01116 LeftArrow,
01117 RightArrow
01118 };
01119
01120 enum PenStyle {
01121 NoPen,
01122 SolidLine,
01123 DashLine,
01124 DotLine,
01125 DashDotLine,
01126 DashDotDotLine,
01127 CustomDashLine
01128 #ifndef Q_MOC_RUN
01129 , MPenStyle = 0x0f
01130 #endif
01131 };
01132
01133 enum PenCapStyle {
01134 FlatCap = 0x00,
01135 SquareCap = 0x10,
01136 RoundCap = 0x20,
01137 MPenCapStyle = 0x30
01138 };
01139
01140 enum PenJoinStyle {
01141 MiterJoin = 0x00,
01142 BevelJoin = 0x40,
01143 RoundJoin = 0x80,
01144 SvgMiterJoin = 0x100,
01145 MPenJoinStyle = 0x1c0
01146 };
01147
01148 enum BrushStyle {
01149 NoBrush,
01150 SolidPattern,
01151 Dense1Pattern,
01152 Dense2Pattern,
01153 Dense3Pattern,
01154 Dense4Pattern,
01155 Dense5Pattern,
01156 Dense6Pattern,
01157 Dense7Pattern,
01158 HorPattern,
01159 VerPattern,
01160 CrossPattern,
01161 BDiagPattern,
01162 FDiagPattern,
01163 DiagCrossPattern,
01164 LinearGradientPattern,
01165 RadialGradientPattern,
01166 ConicalGradientPattern,
01167 TexturePattern = 24
01168 #if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
01169 , CustomPattern = TexturePattern
01170 #endif
01171 };
01172
01173 enum SizeMode {
01174 AbsoluteSize,
01175 RelativeSize
01176 };
01177
01178 #if defined(QT3_SUPPORT)
01179 #if defined(Q_OS_MAC)
01180 #ifndef qdoc
01181 typedef int MacintoshVersion;
01182
01183 enum
01184 #else
01185 enum MacintoshVersion
01186 #endif
01187 {
01188
01189 MV_Unknown = 0x0000,
01190
01191
01192 MV_9 = QSysInfo::MV_9,
01193 MV_10_DOT_0 = QSysInfo::MV_10_0,
01194 MV_10_DOT_1 = QSysInfo::MV_10_1,
01195 MV_10_DOT_2 = QSysInfo::MV_10_2,
01196 MV_10_DOT_3 = QSysInfo::MV_10_3,
01197 MV_10_DOT_4 = QSysInfo::MV_10_4,
01198
01199
01200 MV_CHEETAH = QSysInfo::MV_CHEETAH,
01201 MV_PUMA = QSysInfo::MV_PUMA,
01202 MV_JAGUAR = QSysInfo::MV_JAGUAR,
01203 MV_PANTHER = QSysInfo::MV_PANTHER,
01204 MV_TIGER = QSysInfo::MV_TIGER
01205 };
01206 #endif // Q_OS_MAC
01207
01208 #if defined(Q_OS_WIN) || defined(Q_OS_CYGWIN)
01209 #ifndef qdoc
01210 typedef int WindowsVersion;
01211
01212 enum
01213 #else
01214 enum WindowsVersion
01215 #endif
01216 {
01217 WV_32s = QSysInfo::WV_32s,
01218 WV_95 = QSysInfo::WV_95,
01219 WV_98 = QSysInfo::WV_98,
01220 WV_Me = QSysInfo::WV_Me,
01221 WV_DOS_based= QSysInfo::WV_DOS_based,
01222
01223 WV_NT = QSysInfo::WV_NT,
01224 WV_2000 = QSysInfo::WV_2000,
01225 WV_XP = QSysInfo::WV_XP,
01226 WV_2003 = QSysInfo::WV_2003,
01227 WV_NT_based = QSysInfo::WV_NT_based,
01228
01229 WV_CE = QSysInfo::WV_CE,
01230 WV_CENET = QSysInfo::WV_CENET,
01231 WV_CE_5 = QSysInfo::WV_CE_5,
01232 WV_CE_6 = QSysInfo::WV_CE_6,
01233 WV_CE_based = QSysInfo::WV_CE_based
01234 };
01235 #endif // Q_OS_WIN
01236 #endif // QT3_SUPPORT
01237
01238 enum UIEffect {
01239 UI_General,
01240 UI_AnimateMenu,
01241 UI_FadeMenu,
01242 UI_AnimateCombo,
01243 UI_AnimateTooltip,
01244 UI_FadeTooltip,
01245 UI_AnimateToolBox
01246 };
01247
01248 enum CursorShape {
01249 ArrowCursor,
01250 UpArrowCursor,
01251 CrossCursor,
01252 WaitCursor,
01253 IBeamCursor,
01254 SizeVerCursor,
01255 SizeHorCursor,
01256 SizeBDiagCursor,
01257 SizeFDiagCursor,
01258 SizeAllCursor,
01259 BlankCursor,
01260 SplitVCursor,
01261 SplitHCursor,
01262 PointingHandCursor,
01263 ForbiddenCursor,
01264 WhatsThisCursor,
01265 BusyCursor,
01266 OpenHandCursor,
01267 ClosedHandCursor,
01268 DragCopyCursor,
01269 DragMoveCursor,
01270 DragLinkCursor,
01271 LastCursor = DragLinkCursor,
01272 BitmapCursor = 24,
01273 CustomCursor = 25
01274
01275 #if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
01276 ,
01277 arrowCursor = ArrowCursor,
01278 upArrowCursor = UpArrowCursor,
01279 crossCursor = CrossCursor,
01280 waitCursor = WaitCursor,
01281 ibeamCursor = IBeamCursor,
01282 sizeVerCursor = SizeVerCursor,
01283 sizeHorCursor = SizeHorCursor,
01284 sizeBDiagCursor = SizeBDiagCursor,
01285 sizeFDiagCursor = SizeFDiagCursor,
01286 sizeAllCursor = SizeAllCursor,
01287 blankCursor = BlankCursor,
01288 splitVCursor = SplitVCursor,
01289 splitHCursor = SplitHCursor,
01290 pointingHandCursor = PointingHandCursor,
01291 forbiddenCursor = ForbiddenCursor,
01292 whatsThisCursor = WhatsThisCursor
01293 #endif
01294 };
01295
01296 enum TextFormat {
01297 PlainText,
01298 RichText,
01299 AutoText,
01300 LogText
01301 };
01302
01303 enum AspectRatioMode {
01304 IgnoreAspectRatio,
01305 KeepAspectRatio,
01306 KeepAspectRatioByExpanding
01307 #if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
01308 , ScaleFree = IgnoreAspectRatio,
01309 ScaleMin = KeepAspectRatio,
01310 ScaleMax = KeepAspectRatioByExpanding
01311 #endif
01312 };
01313 #ifdef QT3_SUPPORT
01314 typedef AspectRatioMode ScaleMode;
01315 #endif
01316
01317
01318 enum AnchorAttribute {
01319 AnchorName,
01320 AnchorHref
01321 };
01322
01323 enum DockWidgetArea {
01324 LeftDockWidgetArea = 0x1,
01325 RightDockWidgetArea = 0x2,
01326 TopDockWidgetArea = 0x4,
01327 BottomDockWidgetArea = 0x8,
01328
01329 DockWidgetArea_Mask = 0xf,
01330 AllDockWidgetAreas = DockWidgetArea_Mask,
01331 NoDockWidgetArea = 0
01332 };
01333 enum DockWidgetAreaSizes {
01334 NDockWidgetAreas = 4
01335 };
01336
01337 Q_DECLARE_FLAGS(DockWidgetAreas, DockWidgetArea)
01338
01339 enum ToolBarArea {
01340 LeftToolBarArea = 0x1,
01341 RightToolBarArea = 0x2,
01342 TopToolBarArea = 0x4,
01343 BottomToolBarArea = 0x8,
01344
01345 ToolBarArea_Mask = 0xf,
01346 AllToolBarAreas = ToolBarArea_Mask,
01347 NoToolBarArea = 0
01348 };
01349
01350 enum ToolBarAreaSizes {
01351 NToolBarAreas = 4
01352 };
01353
01354 Q_DECLARE_FLAGS(ToolBarAreas, ToolBarArea)
01355
01356 #ifdef QT3_SUPPORT
01357 enum Dock {
01358 DockUnmanaged,
01359 DockTornOff,
01360 DockTop,
01361 DockBottom,
01362 DockRight,
01363 DockLeft,
01364 DockMinimized
01365 ,
01366 Unmanaged = DockUnmanaged,
01367 TornOff = DockTornOff,
01368 Top = DockTop,
01369 Bottom = DockBottom,
01370 Right = DockRight,
01371 Left = DockLeft,
01372 Minimized = DockMinimized
01373 };
01374
01375 typedef Dock ToolBarDock;
01376 #endif
01377
01378 enum DateFormat {
01379 TextDate,
01380 ISODate,
01381 SystemLocaleDate,
01382 LocalDate = SystemLocaleDate,
01383 LocaleDate,
01384 SystemLocaleShortDate,
01385 SystemLocaleLongDate,
01386 DefaultLocaleShortDate,
01387 DefaultLocaleLongDate
01388 };
01389
01390 enum TimeSpec {
01391 LocalTime,
01392 UTC,
01393 OffsetFromUTC
01394 };
01395
01396 enum DayOfWeek {
01397 Monday = 1,
01398 Tuesday = 2,
01399 Wednesday = 3,
01400 Thursday = 4,
01401 Friday = 5,
01402 Saturday = 6,
01403 Sunday = 7
01404 };
01405
01406 enum ScrollBarPolicy {
01407 ScrollBarAsNeeded,
01408 ScrollBarAlwaysOff,
01409 ScrollBarAlwaysOn
01410 };
01411
01412 #ifdef QT3_SUPPORT
01413 enum BackgroundMode {
01414 FixedColor,
01415 FixedPixmap,
01416 NoBackground,
01417 PaletteForeground,
01418 PaletteButton,
01419 PaletteLight,
01420 PaletteMidlight,
01421 PaletteDark,
01422 PaletteMid,
01423 PaletteText,
01424 PaletteBrightText,
01425 PaletteBase,
01426 PaletteBackground,
01427 PaletteShadow,
01428 PaletteHighlight,
01429 PaletteHighlightedText,
01430 PaletteButtonText,
01431 PaletteLink,
01432 PaletteLinkVisited,
01433 X11ParentRelative
01434 };
01435 #endif
01436
01437 enum CaseSensitivity {
01438 CaseInsensitive,
01439 CaseSensitive
01440 };
01441
01442 enum Corner {
01443 TopLeftCorner = 0x00000,
01444 TopRightCorner = 0x00001,
01445 BottomLeftCorner = 0x00002,
01446 BottomRightCorner = 0x00003
01447 #if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
01448 ,TopLeft = TopLeftCorner,
01449 TopRight = TopRightCorner,
01450 BottomLeft = BottomLeftCorner,
01451 BottomRight = BottomRightCorner
01452 #endif
01453 };
01454
01455 enum ConnectionType {
01456 AutoConnection,
01457 DirectConnection,
01458 QueuedConnection,
01459 AutoCompatConnection,
01460 BlockingQueuedConnection,
01461 UniqueConnection = 0x80
01462 };
01463
01464 enum ShortcutContext {
01465 WidgetShortcut,
01466 WindowShortcut,
01467 ApplicationShortcut,
01468 WidgetWithChildrenShortcut
01469 };
01470
01471 enum FillRule {
01472 OddEvenFill,
01473 WindingFill
01474 };
01475
01476 enum MaskMode {
01477 MaskInColor,
01478 MaskOutColor
01479 };
01480
01481 enum ClipOperation {
01482 NoClip,
01483 ReplaceClip,
01484 IntersectClip,
01485 UniteClip
01486 };
01487
01488
01489 enum ItemSelectionMode {
01490 ContainsItemShape = 0x0,
01491 IntersectsItemShape = 0x1,
01492 ContainsItemBoundingRect = 0x2,
01493 IntersectsItemBoundingRect = 0x3
01494 };
01495
01496 enum TransformationMode {
01497 FastTransformation,
01498 SmoothTransformation
01499 };
01500
01501 enum Axis {
01502 XAxis,
01503 YAxis,
01504 ZAxis
01505 };
01506
01507 enum FocusReason {
01508 MouseFocusReason,
01509 TabFocusReason,
01510 BacktabFocusReason,
01511 ActiveWindowFocusReason,
01512 PopupFocusReason,
01513 ShortcutFocusReason,
01514 MenuBarFocusReason,
01515 OtherFocusReason,
01516 NoFocusReason
01517 };
01518
01519 enum ContextMenuPolicy {
01520 NoContextMenu,
01521 DefaultContextMenu,
01522 ActionsContextMenu,
01523 CustomContextMenu,
01524 PreventContextMenu
01525 };
01526
01527 enum InputMethodQuery {
01528 ImMicroFocus,
01529 ImFont,
01530 ImCursorPosition,
01531 ImSurroundingText,
01532 ImCurrentSelection,
01533 ImMaximumTextLength,
01534 ImAnchorPosition
01535 };
01536
01537 enum InputMethodHint {
01538 ImhNone = 0x0,
01539 ImhHiddenText = 0x1,
01540 ImhNoAutoUppercase = 0x2,
01541 ImhPreferNumbers = 0x4,
01542 ImhPreferUppercase = 0x8,
01543 ImhPreferLowercase = 0x10,
01544 ImhNoPredictiveText = 0x20,
01545
01546 ImhDigitsOnly = 0x10000,
01547 ImhFormattedNumbersOnly = 0x20000,
01548 ImhUppercaseOnly = 0x40000,
01549 ImhLowercaseOnly = 0x80000,
01550 ImhDialableCharactersOnly = 0x100000,
01551 ImhEmailCharactersOnly = 0x200000,
01552 ImhUrlCharactersOnly = 0x400000,
01553
01554 ImhExclusiveInputMask = 0xffff0000
01555 };
01556 Q_DECLARE_FLAGS(InputMethodHints, InputMethodHint)
01557
01558 enum ToolButtonStyle {
01559 ToolButtonIconOnly,
01560 ToolButtonTextOnly,
01561 ToolButtonTextBesideIcon,
01562 ToolButtonTextUnderIcon,
01563 ToolButtonFollowStyle
01564 };
01565
01566 enum LayoutDirection {
01567 LeftToRight,
01568 RightToLeft,
01569 LayoutDirectionAuto
01570 };
01571
01572 enum AnchorPoint {
01573 AnchorLeft = 0,
01574 AnchorHorizontalCenter,
01575 AnchorRight,
01576 AnchorTop,
01577 AnchorVerticalCenter,
01578 AnchorBottom
01579 };
01580
01581
01582
01583 enum DropAction {
01584 CopyAction = 0x1,
01585 MoveAction = 0x2,
01586 LinkAction = 0x4,
01587 ActionMask = 0xff,
01588 TargetMoveAction = 0x8002,
01589 IgnoreAction = 0x0
01590 };
01591 Q_DECLARE_FLAGS(DropActions, DropAction)
01592
01593 enum CheckState {
01594 Unchecked,
01595 PartiallyChecked,
01596 Checked
01597 };
01598
01599 enum ItemDataRole {
01600 DisplayRole = 0,
01601 DecorationRole = 1,
01602 EditRole = 2,
01603 ToolTipRole = 3,
01604 StatusTipRole = 4,
01605 WhatsThisRole = 5,
01606
01607 FontRole = 6,
01608 TextAlignmentRole = 7,
01609 BackgroundColorRole = 8,
01610 BackgroundRole = 8,
01611 TextColorRole = 9,
01612 ForegroundRole = 9,
01613 CheckStateRole = 10,
01614
01615 AccessibleTextRole = 11,
01616 AccessibleDescriptionRole = 12,
01617
01618 SizeHintRole = 13,
01619
01620 DisplayPropertyRole = 27,
01621 DecorationPropertyRole = 28,
01622 ToolTipPropertyRole = 29,
01623 StatusTipPropertyRole = 30,
01624 WhatsThisPropertyRole = 31,
01625
01626 UserRole = 32
01627 };
01628
01629 enum ItemFlag {
01630 NoItemFlags = 0,
01631 ItemIsSelectable = 1,
01632 ItemIsEditable = 2,
01633 ItemIsDragEnabled = 4,
01634 ItemIsDropEnabled = 8,
01635 ItemIsUserCheckable = 16,
01636 ItemIsEnabled = 32,
01637 ItemIsTristate = 64
01638 };
01639 Q_DECLARE_FLAGS(ItemFlags, ItemFlag)
01640
01641 enum MatchFlag {
01642 MatchExactly = 0,
01643 MatchContains = 1,
01644 MatchStartsWith = 2,
01645 MatchEndsWith = 3,
01646 MatchRegExp = 4,
01647 MatchWildcard = 5,
01648 MatchFixedString = 8,
01649 MatchCaseSensitive = 16,
01650 MatchWrap = 32,
01651 MatchRecursive = 64
01652 };
01653 Q_DECLARE_FLAGS(MatchFlags, MatchFlag)
01654
01655 #if defined(Q_WS_MAC)
01656 typedef void * HANDLE;
01657 #elif defined(Q_WS_WIN)
01658 typedef void *HANDLE;
01659 #elif defined(Q_WS_X11)
01660 typedef unsigned long HANDLE;
01661 #elif defined(Q_WS_QWS)
01662 typedef void * HANDLE;
01663 #elif defined(Q_OS_SYMBIAN)
01664 typedef unsigned long int HANDLE;
01665 #endif
01666 typedef WindowFlags WFlags;
01667
01668 enum WindowModality {
01669 NonModal,
01670 WindowModal,
01671 ApplicationModal
01672 };
01673
01674 enum TextInteractionFlag {
01675 NoTextInteraction = 0,
01676 TextSelectableByMouse = 1,
01677 TextSelectableByKeyboard = 2,
01678 LinksAccessibleByMouse = 4,
01679 LinksAccessibleByKeyboard = 8,
01680 TextEditable = 16,
01681
01682 TextEditorInteraction = TextSelectableByMouse | TextSelectableByKeyboard | TextEditable,
01683 TextBrowserInteraction = TextSelectableByMouse | LinksAccessibleByMouse | LinksAccessibleByKeyboard
01684 };
01685 Q_DECLARE_FLAGS(TextInteractionFlags, TextInteractionFlag)
01686
01687 enum EventPriority {
01688 HighEventPriority = 1,
01689 NormalEventPriority = 0,
01690 LowEventPriority = -1
01691 };
01692
01693 enum SizeHint {
01694 MinimumSize,
01695 PreferredSize,
01696 MaximumSize,
01697 MinimumDescent,
01698 NSizeHints
01699 };
01700
01701 enum WindowFrameSection {
01702 NoSection,
01703 LeftSection,
01704 TopLeftSection,
01705 TopSection,
01706 TopRightSection,
01707 RightSection,
01708 BottomRightSection,
01709 BottomSection,
01710 BottomLeftSection,
01711 TitleBarArea
01712 };
01713
01714 enum Initialization {
01715 Uninitialized
01716 };
01717
01718 enum CoordinateSystem {
01719 DeviceCoordinates,
01720 LogicalCoordinates
01721 };
01722
01723 enum TouchPointState {
01724 TouchPointPressed = 0x01,
01725 TouchPointMoved = 0x02,
01726 TouchPointStationary = 0x04,
01727 TouchPointReleased = 0x08,
01728 TouchPointStateMask = 0x0f,
01729
01730 TouchPointPrimary = 0x10
01731 };
01732 Q_DECLARE_FLAGS(TouchPointStates, TouchPointState)
01733
01734 #ifndef QT_NO_GESTURES
01735 enum GestureState
01736 {
01737 NoGesture,
01738 GestureStarted = 1,
01739 GestureUpdated = 2,
01740 GestureFinished = 3,
01741 GestureCanceled = 4
01742 };
01743
01744 enum GestureType
01745 {
01746 TapGesture = 1,
01747 TapAndHoldGesture = 2,
01748 PanGesture = 3,
01749 PinchGesture = 4,
01750 SwipeGesture = 5,
01751
01752 CustomGesture = 0x0100,
01753
01754 LastGestureType = ~0u
01755 };
01756
01757 enum GestureFlag
01758 {
01759 DontStartGestureOnChildren = 0x01,
01760 ReceivePartialGestures = 0x02,
01761 IgnoredGesturesPropagateToParent = 0x04
01762 };
01763 Q_DECLARE_FLAGS(GestureFlags, GestureFlag)
01764 #endif // QT_NO_GESTURES
01765
01766 enum NavigationMode
01767 {
01768 NavigationModeNone,
01769 NavigationModeKeypadTabOrder,
01770 NavigationModeKeypadDirectional,
01771 NavigationModeCursorAuto,
01772 NavigationModeCursorForceVisible
01773 };
01774 }
01775 #ifdef Q_MOC_RUN
01776 ;
01777 #endif
01778
01779 Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::MouseButtons)
01780 Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::Orientations)
01781 Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::KeyboardModifiers)
01782 Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::WindowFlags)
01783 Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::Alignment)
01784 Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::ImageConversionFlags)
01785 Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::DockWidgetAreas)
01786 Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::ToolBarAreas)
01787 Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::WindowStates)
01788 Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::DropActions)
01789 Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::ItemFlags)
01790 Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::MatchFlags)
01791 Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::TextInteractionFlags)
01792 Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::InputMethodHints)
01793 Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::TouchPointStates)
01794 #ifndef QT_NO_GESTURES
01795 Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::GestureFlags)
01796 #endif
01797
01798 typedef bool (*qInternalCallback)(void **);
01799
01800 class Q_CORE_EXPORT QInternal {
01801 public:
01802 enum PaintDeviceFlags {
01803 UnknownDevice = 0x00,
01804 Widget = 0x01,
01805 Pixmap = 0x02,
01806 Image = 0x03,
01807 Printer = 0x04,
01808 Picture = 0x05,
01809 Pbuffer = 0x06,
01810 FramebufferObject = 0x07,
01811 CustomRaster = 0x08,
01812 MacQuartz = 0x09,
01813 PaintBuffer = 0x0a,
01814 OpenGL = 0x0b
01815 };
01816 enum RelayoutType {
01817 RelayoutNormal,
01818 RelayoutDragging,
01819 RelayoutDropped
01820 };
01821
01822
01823 enum Callback {
01824 ConnectCallback,
01825 DisconnectCallback,
01826 AdoptCurrentThread,
01827 EventNotifyCallback,
01828 LastCallback
01829 };
01830
01831 enum InternalFunction {
01832 CreateThreadForAdoption,
01833 RefAdoptedThread,
01834 DerefAdoptedThread,
01835 SetCurrentThreadToMainThread,
01836 SetQObjectSender,
01837 GetQObjectSender,
01838 ResetQObjectSender,
01839 LastInternalFunction
01840 };
01841
01842 enum DockPosition {
01843 LeftDock,
01844 RightDock,
01845 TopDock,
01846 BottomDock,
01847 DockCount
01848 };
01849
01850 static bool registerCallback(Callback, qInternalCallback);
01851 static bool unregisterCallback(Callback, qInternalCallback);
01852
01853 static bool activateCallbacks(Callback, void **);
01854 static bool callFunction(InternalFunction func, void **);
01855 };
01856
01857 #ifdef QT3_SUPPORT
01858 typedef qint32 QCOORD;
01859 enum {
01860 QCOORD_MAX = 2147483647,
01861 QCOORD_MIN = -QCOORD_MAX - 1
01862 };
01863 #endif
01864
01865 QT_END_NAMESPACE
01866
01867 QT_END_HEADER
01868
01869 #endif // QNAMESPACE_H