src/corelib/global/qnamespace.h

Go to the documentation of this file.
00001 /****************************************************************************
00002 **
00003 ** Copyright (C) 1992-2006 Trolltech ASA. All rights reserved.
00004 **
00005 ** This file is part of the QtCore module of the Qt Toolkit.
00006 **
00007 ** This file may be used under the terms of the GNU General Public
00008 ** License version 2.0 as published by the Free Software Foundation
00009 ** and appearing in the file LICENSE.GPL included in the packaging of
00010 ** this file.  Please review the following information to ensure GNU
00011 ** General Public Licensing requirements will be met:
00012 ** http://www.trolltech.com/products/qt/opensource.html
00013 **
00014 ** If you are unsure which license is appropriate for your use, please
00015 ** review the following information:
00016 ** http://www.trolltech.com/products/qt/licensing.html or contact the
00017 ** sales department at sales@trolltech.com.
00018 **
00019 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00020 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00021 **
00022 ****************************************************************************/
00023 
00024 #ifndef QNAMESPACE_H
00025 #define QNAMESPACE_H
00026 
00027 #include <QtCore/qglobal.h>
00028 
00029 QT_BEGIN_HEADER
00030 
00031 QT_MODULE(Core)
00032 
00033 #ifndef Q_MOC_RUN
00034 namespace
00035 #else
00036 class Q_CORE_EXPORT
00037 #endif
00038 Qt {
00039 #ifdef Q_MOC_RUN
00040     Q_OBJECT
00041     Q_ENUMS(Orientation TextFormat BackgroundMode DateFormat ScrollBarPolicy FocusPolicy ContextMenuPolicy CaseSensitivity LayoutDirection ArrowType ShortcutContext)
00042     Q_ENUMS(ToolButtonStyle)
00043     Q_ENUMS(PenStyle PenCapStyle PenJoinStyle BrushStyle FillRule BGMode ClipOperation GlobalColor)
00044     Q_FLAGS(Alignment)
00045     Q_FLAGS(Orientations)
00046     Q_FLAGS(DockWidgetAreas)
00047     Q_ENUMS(DockWidgetArea)
00048     Q_ENUMS(TextElideMode)
00049     Q_ENUMS(TextInteractionFlags)
00050     Q_ENUMS(WindowModality ToolBarAreas DayOfWeek)
00051 public:
00052 #endif
00053     enum GlobalColor {
00054         color0,
00055         color1,
00056         black,
00057         white,
00058         darkGray,
00059         gray,
00060         lightGray,
00061         red,
00062         green,
00063         blue,
00064         cyan,
00065         magenta,
00066         yellow,
00067         darkRed,
00068         darkGreen,
00069         darkBlue,
00070         darkCyan,
00071         darkMagenta,
00072         darkYellow,
00073         transparent
00074     };
00075 
00076     enum KeyboardModifier {
00077         NoModifier           = 0x00000000,
00078         ShiftModifier        = 0x02000000,
00079         ControlModifier      = 0x04000000,
00080         AltModifier          = 0x08000000,
00081         MetaModifier         = 0x10000000,
00082         KeypadModifier       = 0x20000000,
00083         GroupSwitchModifier  = 0x40000000,
00084         // Do not extend the mask to include 0x01000000
00085         KeyboardModifierMask = 0xfe000000
00086     };
00087     Q_DECLARE_FLAGS(KeyboardModifiers, KeyboardModifier)
00088 
00089     //shorter names for shortcuts
00090     enum Modifier {
00091         META          = Qt::MetaModifier,
00092         SHIFT         = Qt::ShiftModifier,
00093         CTRL          = Qt::ControlModifier,
00094         ALT           = Qt::AltModifier,
00095         MODIFIER_MASK = KeyboardModifierMask,
00096         UNICODE_ACCEL = 0x00000000
00097     };
00098 
00099     enum MouseButton {
00100         NoButton         = 0x00000000,
00101         LeftButton       = 0x00000001,
00102         RightButton      = 0x00000002,
00103         MidButton        = 0x00000004,
00104         XButton1         = 0x00000008,
00105         XButton2         = 0x00000010,
00106         MouseButtonMask  = 0x000000ff
00107     };
00108     Q_DECLARE_FLAGS(MouseButtons, MouseButton)
00109 
00110 #ifdef QT3_SUPPORT
00111     enum ButtonState_enum {
00112         ShiftButton     = Qt::ShiftModifier,
00113         ControlButton   = Qt::ControlModifier,
00114         AltButton       = Qt::AltModifier,
00115         MetaButton      = Qt::MetaModifier,
00116         Keypad          = Qt::KeypadModifier,
00117         KeyButtonMask   = Qt::KeyboardModifierMask
00118     };
00119     typedef int ButtonState;
00120 #endif
00121 
00122     enum Orientation {
00123         Horizontal = 0x1,
00124         Vertical = 0x2
00125     };
00126 
00127     Q_DECLARE_FLAGS(Orientations, Orientation)
00128 
00129     enum FocusPolicy {
00130         NoFocus = 0,
00131         TabFocus = 0x1,
00132         ClickFocus = 0x2,
00133         StrongFocus = TabFocus | ClickFocus | 0x8,
00134         WheelFocus = StrongFocus | 0x4
00135     };
00136 
00137     enum SortOrder {
00138         AscendingOrder,
00139         DescendingOrder
00140 #if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
00141         ,Ascending = AscendingOrder,
00142         Descending = DescendingOrder
00143 #endif
00144     };
00145 
00146     // Text formatting flags for QPainter::drawText and QLabel
00147     // the following four enums can be combined to one integer which
00148     // is passed as textflag to drawText and qt_format_text.
00149 
00150     enum AlignmentFlag {
00151         AlignLeft = 0x0001,
00152         AlignLeading = AlignLeft,
00153         AlignRight = 0x0002,
00154         AlignTrailing = AlignRight,
00155         AlignHCenter = 0x0004,
00156         AlignJustify = 0x0008,
00157         AlignAbsolute = 0x0010,
00158         AlignHorizontal_Mask = AlignLeft | AlignRight | AlignHCenter | AlignJustify | AlignAbsolute,
00159 
00160         AlignTop = 0x0020,
00161         AlignBottom = 0x0040,
00162         AlignVCenter = 0x0080,
00163         AlignVertical_Mask = AlignTop | AlignBottom | AlignVCenter,
00164 
00165         AlignCenter = AlignVCenter | AlignHCenter
00166 #if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
00167         , AlignAuto = AlignLeft
00168 #endif
00169     };
00170 
00171     Q_DECLARE_FLAGS(Alignment, AlignmentFlag)
00172 
00173     enum TextFlag {
00174         TextSingleLine = 0x0100,
00175         TextDontClip = 0x0200,
00176         TextExpandTabs = 0x0400,
00177         TextShowMnemonic = 0x0800,
00178         TextWordWrap = 0x1000,
00179         TextWrapAnywhere = 0x2000,
00180         TextDontPrint = 0x4000,
00181         TextIncludeTrailingSpaces = 0x08000000,
00182         TextHideMnemonic = 0x8000
00183 
00184 #if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
00185         ,SingleLine = TextSingleLine,
00186         DontClip = TextDontClip,
00187         ExpandTabs = TextExpandTabs,
00188         ShowPrefix = TextShowMnemonic,
00189         WordBreak = TextWordWrap,
00190         BreakAnywhere = TextWrapAnywhere,
00191         DontPrint = TextDontPrint,
00192         IncludeTrailingSpaces = TextIncludeTrailingSpaces,
00193         NoAccel = TextHideMnemonic
00194 #endif
00195     };
00196 #ifdef QT3_SUPPORT
00197     typedef TextFlag TextFlags;
00198 #endif
00199 
00200     enum TextElideMode {
00201         ElideLeft,
00202         ElideRight,
00203         ElideMiddle,
00204         ElideNone
00205     };
00206 
00207     enum WindowType {
00208         Widget = 0x00000000,
00209         Window = 0x00000001,
00210         Dialog = 0x00000002 | Window,
00211         Sheet = 0x00000004 | Window,
00212         Drawer = 0x00000006 | Window,
00213         Popup = 0x00000008 | Window,
00214         Tool = 0x0000000a | Window,
00215         ToolTip = 0x0000000c | Window,
00216         SplashScreen = 0x0000000e | Window,
00217         Desktop = 0x00000010 | Window,
00218         SubWindow =  0x00000012,
00219 
00220         WindowType_Mask = 0x000000ff,
00221         MSWindowsFixedSizeDialogHint = 0x00000100,
00222   MSWindowsOwnDC = 0x00000200,
00223         X11BypassWindowManagerHint = 0x00000400,
00224         FramelessWindowHint = 0x00000800,
00225         WindowTitleHint = 0x00001000,
00226         WindowSystemMenuHint = 0x00002000,
00227         WindowMinimizeButtonHint = 0x00004000,
00228         WindowMaximizeButtonHint = 0x00008000,
00229         WindowMinMaxButtonsHint = WindowMinimizeButtonHint | WindowMaximizeButtonHint,
00230         WindowContextHelpButtonHint = 0x00010000,
00231         WindowShadeButtonHint = 0x00020000,
00232         WindowStaysOnTopHint = 0x00040000,
00233         CustomizeWindowHint = 0x02000000
00234 
00235 #ifdef QT3_SUPPORT
00236         ,
00237         WMouseNoMask = 0x00080000,
00238         WDestructiveClose = 0x00100000,
00239         WStaticContents = 0x00200000,
00240         WGroupLeader = 0x00400000,
00241         WShowModal = 0x00800000,
00242         WNoMousePropagation = 0x01000000,
00243 
00244         WType_TopLevel = Window,
00245         WType_Dialog = Dialog,
00246         WType_Popup = Popup,
00247         WType_Desktop = Desktop,
00248         WType_Mask = WindowType_Mask,
00249 
00250         WStyle_Customize = 0,
00251         WStyle_NormalBorder = 0,
00252         WStyle_DialogBorder = MSWindowsFixedSizeDialogHint,
00253         WStyle_NoBorder = FramelessWindowHint,
00254         WStyle_Title = WindowTitleHint,
00255         WStyle_SysMenu = WindowSystemMenuHint,
00256         WStyle_Minimize = WindowMinimizeButtonHint,
00257         WStyle_Maximize = WindowMaximizeButtonHint,
00258         WStyle_MinMax = WStyle_Minimize | WStyle_Maximize,
00259         WStyle_Tool = Tool,
00260         WStyle_StaysOnTop = WindowStaysOnTopHint,
00261         WStyle_ContextHelp = WindowContextHelpButtonHint,
00262 
00263         // misc flags
00264         WPaintDesktop = 0,
00265         WPaintClever = 0,
00266 
00267         WX11BypassWM            = X11BypassWindowManagerHint,
00268         WWinOwnDC               = MSWindowsOwnDC,
00269         WMacSheet               = Sheet,
00270         WMacDrawer              = Drawer,
00271 
00272         WStyle_Splash           = SplashScreen,
00273 
00274         WNoAutoErase           = 0,
00275         WRepaintNoErase        = 0,
00276         WNorthWestGravity      = WStaticContents,
00277         WType_Modal            = Dialog | WShowModal,
00278         WStyle_Dialog          = Dialog,
00279         WStyle_NoBorderEx      = FramelessWindowHint,
00280         WResizeNoErase = 0,
00281         WMacNoSheet = 0
00282 #endif
00283 
00284     };
00285 
00286     Q_DECLARE_FLAGS(WindowFlags, WindowType)
00287 
00288     enum WindowState {
00289         WindowNoState    = 0x00000000,
00290         WindowMinimized  = 0x00000001,
00291         WindowMaximized  = 0x00000002,
00292         WindowFullScreen = 0x00000004,
00293         WindowActive     = 0x00000008
00294     };
00295 
00296     Q_DECLARE_FLAGS(WindowStates, WindowState)
00297 
00298     enum WidgetAttribute {
00299         WA_Disabled = 0,
00300         WA_UnderMouse = 1,
00301         WA_MouseTracking = 2,
00302         WA_ContentsPropagated = 3, // ## deprecated
00303         WA_OpaquePaintEvent = 4,
00304         WA_NoBackground = WA_OpaquePaintEvent, // ## deprecated
00305         WA_StaticContents = 5,
00306         WA_LaidOut = 7,
00307         WA_PaintOnScreen = 8,
00308         WA_NoSystemBackground = 9,
00309         WA_UpdatesDisabled = 10,
00310         WA_Mapped = 11,
00311         WA_MacNoClickThrough = 12, // Mac only
00312         WA_PaintOutsidePaintEvent = 13,
00313         WA_InputMethodEnabled = 14,
00314         WA_WState_Visible = 15,
00315         WA_WState_Hidden = 16,
00316 
00317         WA_ForceDisabled = 32,
00318         WA_KeyCompression = 33,
00319         WA_PendingMoveEvent = 34,
00320         WA_PendingResizeEvent = 35,
00321         WA_SetPalette = 36,
00322         WA_SetFont = 37,
00323         WA_SetCursor = 38,
00324         WA_NoChildEventsFromChildren = 39,
00325         WA_WindowModified = 41,
00326         WA_Resized = 42,
00327         WA_Moved = 43,
00328         WA_PendingUpdate = 44,
00329         WA_InvalidSize = 45,
00330         WA_MacMetalStyle = 46, // Mac only
00331         WA_CustomWhatsThis = 47,
00332         WA_LayoutOnEntireRect = 48,
00333         WA_OutsideWSRange = 49,
00334         WA_GrabbedShortcut = 50,
00335         WA_TransparentForMouseEvents = 51,
00336         WA_PaintUnclipped = 52,
00337         WA_SetWindowIcon = 53,
00338         WA_NoMouseReplay = 54,
00339         WA_DeleteOnClose = 55,
00340         WA_RightToLeft = 56,
00341         WA_SetLayoutDirection = 57,
00342         WA_NoChildEventsForParent = 58,
00343         WA_ForceUpdatesDisabled = 59,
00344 
00345         WA_WState_Created = 60,
00346         WA_WState_CompressKeys = 61,
00347         WA_WState_InPaintEvent = 62,
00348         WA_WState_Reparented = 63,
00349         WA_WState_ConfigPending = 64,
00350         WA_WState_Polished = 66,
00351         WA_WState_DND = 67, // ## deprecated
00352         WA_WState_OwnSizePolicy = 68,
00353         WA_WState_ExplicitShowHide = 69,
00354 
00355         WA_ShowModal = 70, // ## deprecated
00356         WA_MouseNoMask = 71,
00357         WA_GroupLeader = 72, // ## deprecated
00358         WA_NoMousePropagation = 73, // ## for now, might go away.
00359         WA_Hover = 74,
00360         WA_InputMethodTransparent = 75, // Don't reset IM when user clicks on this (for virtual keyboards on embedded)
00361         WA_QuitOnClose = 76,
00362 
00363         WA_KeyboardFocusChange = 77,
00364 
00365         WA_AcceptDrops = 78,
00366         WA_DropSiteRegistered = 79, // internal
00367         WA_ForceAcceptDrops = WA_DropSiteRegistered, // ## deprecated
00368 
00369         WA_WindowPropagation = 80,
00370 
00371         WA_NoX11EventCompression = 81,
00372         WA_TintedBackground = 82,
00373         WA_X11OpenGLOverlay = 83,
00374         WA_AlwaysShowToolTips = 84,
00375         WA_MacOpaqueSizeGrip = 85,
00376         WA_SetStyle = 86,
00377 
00378         // Add new attributes before this line
00379         WA_AttributeCount
00380     };
00381 
00382     enum ApplicationAttribute
00383     {
00384         AA_ImmediateWidgetCreation = 0,
00385 
00386         // Add new attributes before this line
00387         AA_AttributeCount
00388     };
00389 
00390 
00391     // Image conversion flags.  The unusual ordering is caused by
00392     // compatibility and default requirements.
00393 
00394     enum ImageConversionFlag {
00395         ColorMode_Mask          = 0x00000003,
00396         AutoColor               = 0x00000000,
00397         ColorOnly               = 0x00000003,
00398         MonoOnly                = 0x00000002,
00399         // Reserved             = 0x00000001,
00400 
00401         AlphaDither_Mask        = 0x0000000c,
00402         ThresholdAlphaDither    = 0x00000000,
00403         OrderedAlphaDither      = 0x00000004,
00404         DiffuseAlphaDither      = 0x00000008,
00405         NoAlpha                 = 0x0000000c, // Not supported
00406 
00407         Dither_Mask             = 0x00000030,
00408         DiffuseDither           = 0x00000000,
00409         OrderedDither           = 0x00000010,
00410         ThresholdDither         = 0x00000020,
00411         // ReservedDither       = 0x00000030,
00412 
00413         DitherMode_Mask         = 0x000000c0,
00414         AutoDither              = 0x00000000,
00415         PreferDither            = 0x00000040,
00416         AvoidDither             = 0x00000080
00417     };
00418     Q_DECLARE_FLAGS(ImageConversionFlags, ImageConversionFlag)
00419 
00420     enum BGMode {
00421         TransparentMode,
00422         OpaqueMode
00423     };
00424 
00425 #ifdef QT3_SUPPORT
00426     enum PaintUnit {                                // paint unit
00427         PixelUnit,
00428         LoMetricUnit, // obsolete
00429         HiMetricUnit, // obsolete
00430         LoEnglishUnit, // obsolete
00431         HiEnglishUnit, // obsolete
00432         TwipsUnit // obsolete
00433     };
00434 
00435     enum GUIStyle {
00436         MacStyle,
00437         WindowsStyle,
00438         Win3Style,
00439         PMStyle,
00440         MotifStyle
00441     };
00442 #endif
00443 
00444     enum Key {
00445         Key_Escape = 0x01000000,                // misc keys
00446         Key_Tab = 0x01000001,
00447         Key_Backtab = 0x01000002,
00448 #if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
00449         Key_BackTab = Key_Backtab,
00450 #endif
00451         Key_Backspace = 0x01000003,
00452 #if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
00453         Key_BackSpace = Key_Backspace,
00454 #endif
00455         Key_Return = 0x01000004,
00456         Key_Enter = 0x01000005,
00457         Key_Insert = 0x01000006,
00458         Key_Delete = 0x01000007,
00459         Key_Pause = 0x01000008,
00460         Key_Print = 0x01000009,
00461         Key_SysReq = 0x0100000a,
00462         Key_Clear = 0x0100000b,
00463         Key_Home = 0x01000010,                // cursor movement
00464         Key_End = 0x01000011,
00465         Key_Left = 0x01000012,
00466         Key_Up = 0x01000013,
00467         Key_Right = 0x01000014,
00468         Key_Down = 0x01000015,
00469         Key_PageUp = 0x01000016,
00470 #if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
00471         Key_Prior = Key_PageUp,
00472 #endif
00473         Key_PageDown = 0x01000017,
00474 #if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
00475         Key_Next = Key_PageDown,
00476 #endif
00477         Key_Shift = 0x01000020,                // modifiers
00478         Key_Control = 0x01000021,
00479         Key_Meta = 0x01000022,
00480         Key_Alt = 0x01000023,
00481         Key_CapsLock = 0x01000024,
00482         Key_NumLock = 0x01000025,
00483         Key_ScrollLock = 0x01000026,
00484         Key_F1 = 0x01000030,                // function keys
00485         Key_F2 = 0x01000031,
00486         Key_F3 = 0x01000032,
00487         Key_F4 = 0x01000033,
00488         Key_F5 = 0x01000034,
00489         Key_F6 = 0x01000035,
00490         Key_F7 = 0x01000036,
00491         Key_F8 = 0x01000037,
00492         Key_F9 = 0x01000038,
00493         Key_F10 = 0x01000039,
00494         Key_F11 = 0x0100003a,
00495         Key_F12 = 0x0100003b,
00496         Key_F13 = 0x0100003c,
00497         Key_F14 = 0x0100003d,
00498         Key_F15 = 0x0100003e,
00499         Key_F16 = 0x0100003f,
00500         Key_F17 = 0x01000040,
00501         Key_F18 = 0x01000041,
00502         Key_F19 = 0x01000042,
00503         Key_F20 = 0x01000043,
00504         Key_F21 = 0x01000044,
00505         Key_F22 = 0x01000045,
00506         Key_F23 = 0x01000046,
00507         Key_F24 = 0x01000047,
00508         Key_F25 = 0x01000048,                // F25 .. F35 only on X11
00509         Key_F26 = 0x01000049,
00510         Key_F27 = 0x0100004a,
00511         Key_F28 = 0x0100004b,
00512         Key_F29 = 0x0100004c,
00513         Key_F30 = 0x0100004d,
00514         Key_F31 = 0x0100004e,
00515         Key_F32 = 0x0100004f,
00516         Key_F33 = 0x01000050,
00517         Key_F34 = 0x01000051,
00518         Key_F35 = 0x01000052,
00519         Key_Super_L = 0x01000053,                 // extra keys
00520         Key_Super_R = 0x01000054,
00521         Key_Menu = 0x01000055,
00522         Key_Hyper_L = 0x01000056,
00523         Key_Hyper_R = 0x01000057,
00524         Key_Help = 0x01000058,
00525         Key_Direction_L = 0x01000059,
00526         Key_Direction_R = 0x01000060,
00527         Key_Space = 0x20,                // 7 bit printable ASCII
00528         Key_Any = Key_Space,
00529         Key_Exclam = 0x21,
00530         Key_QuoteDbl = 0x22,
00531         Key_NumberSign = 0x23,
00532         Key_Dollar = 0x24,
00533         Key_Percent = 0x25,
00534         Key_Ampersand = 0x26,
00535         Key_Apostrophe = 0x27,
00536         Key_ParenLeft = 0x28,
00537         Key_ParenRight = 0x29,
00538         Key_Asterisk = 0x2a,
00539         Key_Plus = 0x2b,
00540         Key_Comma = 0x2c,
00541         Key_Minus = 0x2d,
00542         Key_Period = 0x2e,
00543         Key_Slash = 0x2f,
00544         Key_0 = 0x30,
00545         Key_1 = 0x31,
00546         Key_2 = 0x32,
00547         Key_3 = 0x33,
00548         Key_4 = 0x34,
00549         Key_5 = 0x35,
00550         Key_6 = 0x36,
00551         Key_7 = 0x37,
00552         Key_8 = 0x38,
00553         Key_9 = 0x39,
00554         Key_Colon = 0x3a,
00555         Key_Semicolon = 0x3b,
00556         Key_Less = 0x3c,
00557         Key_Equal = 0x3d,
00558         Key_Greater = 0x3e,
00559         Key_Question = 0x3f,
00560         Key_At = 0x40,
00561         Key_A = 0x41,
00562         Key_B = 0x42,
00563         Key_C = 0x43,
00564         Key_D = 0x44,
00565         Key_E = 0x45,
00566         Key_F = 0x46,
00567         Key_G = 0x47,
00568         Key_H = 0x48,
00569         Key_I = 0x49,
00570         Key_J = 0x4a,
00571         Key_K = 0x4b,
00572         Key_L = 0x4c,
00573         Key_M = 0x4d,
00574         Key_N = 0x4e,
00575         Key_O = 0x4f,
00576         Key_P = 0x50,
00577         Key_Q = 0x51,
00578         Key_R = 0x52,
00579         Key_S = 0x53,
00580         Key_T = 0x54,
00581         Key_U = 0x55,
00582         Key_V = 0x56,
00583         Key_W = 0x57,
00584         Key_X = 0x58,
00585         Key_Y = 0x59,
00586         Key_Z = 0x5a,
00587         Key_BracketLeft = 0x5b,
00588         Key_Backslash = 0x5c,
00589         Key_BracketRight = 0x5d,
00590         Key_AsciiCircum = 0x5e,
00591         Key_Underscore = 0x5f,
00592         Key_QuoteLeft = 0x60,
00593         Key_BraceLeft = 0x7b,
00594         Key_Bar = 0x7c,
00595         Key_BraceRight = 0x7d,
00596         Key_AsciiTilde = 0x7e,
00597 
00598         Key_nobreakspace = 0x0a0,
00599         Key_exclamdown = 0x0a1,
00600         Key_cent = 0x0a2,
00601         Key_sterling = 0x0a3,
00602         Key_currency = 0x0a4,
00603         Key_yen = 0x0a5,
00604         Key_brokenbar = 0x0a6,
00605         Key_section = 0x0a7,
00606         Key_diaeresis = 0x0a8,
00607         Key_copyright = 0x0a9,
00608         Key_ordfeminine = 0x0aa,
00609         Key_guillemotleft = 0x0ab,        // left angle quotation mark
00610         Key_notsign = 0x0ac,
00611         Key_hyphen = 0x0ad,
00612         Key_registered = 0x0ae,
00613         Key_macron = 0x0af,
00614         Key_degree = 0x0b0,
00615         Key_plusminus = 0x0b1,
00616         Key_twosuperior = 0x0b2,
00617         Key_threesuperior = 0x0b3,
00618         Key_acute = 0x0b4,
00619         Key_mu = 0x0b5,
00620         Key_paragraph = 0x0b6,
00621         Key_periodcentered = 0x0b7,
00622         Key_cedilla = 0x0b8,
00623         Key_onesuperior = 0x0b9,
00624         Key_masculine = 0x0ba,
00625         Key_guillemotright = 0x0bb,        // right angle quotation mark
00626         Key_onequarter = 0x0bc,
00627         Key_onehalf = 0x0bd,
00628         Key_threequarters = 0x0be,
00629         Key_questiondown = 0x0bf,
00630         Key_Agrave = 0x0c0,
00631         Key_Aacute = 0x0c1,
00632         Key_Acircumflex = 0x0c2,
00633         Key_Atilde = 0x0c3,
00634         Key_Adiaeresis = 0x0c4,
00635         Key_Aring = 0x0c5,
00636         Key_AE = 0x0c6,
00637         Key_Ccedilla = 0x0c7,
00638         Key_Egrave = 0x0c8,
00639         Key_Eacute = 0x0c9,
00640         Key_Ecircumflex = 0x0ca,
00641         Key_Ediaeresis = 0x0cb,
00642         Key_Igrave = 0x0cc,
00643         Key_Iacute = 0x0cd,
00644         Key_Icircumflex = 0x0ce,
00645         Key_Idiaeresis = 0x0cf,
00646         Key_ETH = 0x0d0,
00647         Key_Ntilde = 0x0d1,
00648         Key_Ograve = 0x0d2,
00649         Key_Oacute = 0x0d3,
00650         Key_Ocircumflex = 0x0d4,
00651         Key_Otilde = 0x0d5,
00652         Key_Odiaeresis = 0x0d6,
00653         Key_multiply = 0x0d7,
00654         Key_Ooblique = 0x0d8,
00655         Key_Ugrave = 0x0d9,
00656         Key_Uacute = 0x0da,
00657         Key_Ucircumflex = 0x0db,
00658         Key_Udiaeresis = 0x0dc,
00659         Key_Yacute = 0x0dd,
00660         Key_THORN = 0x0de,
00661         Key_ssharp = 0x0df,
00662 #if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
00663         Key_agrave = Key_Agrave,
00664         Key_aacute = Key_Aacute,
00665         Key_acircumflex = Key_Acircumflex,
00666         Key_atilde = Key_Atilde,
00667         Key_adiaeresis = Key_Adiaeresis,
00668         Key_aring = Key_Aring,
00669         Key_ae = Key_AE,
00670         Key_ccedilla = Key_Ccedilla,
00671         Key_egrave = Key_Egrave,
00672         Key_eacute = Key_Eacute,
00673         Key_ecircumflex = Key_Ecircumflex,
00674         Key_ediaeresis = Key_Ediaeresis,
00675         Key_igrave = Key_Igrave,
00676         Key_iacute = Key_Iacute,
00677         Key_icircumflex = Key_Icircumflex,
00678         Key_idiaeresis = Key_Idiaeresis,
00679         Key_eth = Key_ETH,
00680         Key_ntilde = Key_Ntilde,
00681         Key_ograve = Key_Ograve,
00682         Key_oacute = Key_Oacute,
00683         Key_ocircumflex = Key_Ocircumflex,
00684         Key_otilde = Key_Otilde,
00685         Key_odiaeresis = Key_Odiaeresis,
00686 #endif
00687         Key_division = 0x0f7,
00688 #if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
00689         Key_oslash = Key_Ooblique,
00690         Key_ugrave = Key_Ugrave,
00691         Key_uacute = Key_Uacute,
00692         Key_ucircumflex = Key_Ucircumflex,
00693         Key_udiaeresis = Key_Udiaeresis,
00694         Key_yacute = Key_Yacute,
00695         Key_thorn = Key_THORN,
00696 #endif
00697         Key_ydiaeresis = 0x0ff,
00698 
00699   // International input method support (X keycode - 0xEE00, the
00700   // definition follows Qt/Embedded 2.3.7) Only interesting if
00701   // you are writing your own input method
00702 
00703   // International & multi-key character composition
00704         Key_AltGr               = 0x01001103,
00705   Key_Multi_key           = 0x01001120,  // Multi-key character compose
00706   Key_Codeinput           = 0x01001137,
00707   Key_SingleCandidate     = 0x0100113c,
00708   Key_MultipleCandidate   = 0x0100113d,
00709   Key_PreviousCandidate   = 0x0100113e,
00710 
00711   // Misc Functions
00712   Key_Mode_switch         = 0x0100117e,  // Character set switch
00713   //Key_script_switch       = 0x0100117e,  // Alias for mode_switch
00714 
00715   // Japanese keyboard support
00716   Key_Kanji               = 0x01001121,  // Kanji, Kanji convert
00717   Key_Muhenkan            = 0x01001122,  // Cancel Conversion
00718   //Key_Henkan_Mode         = 0x01001123,  // Start/Stop Conversion
00719   Key_Henkan              = 0x01001123,  // Alias for Henkan_Mode
00720   Key_Romaji              = 0x01001124,  // to Romaji
00721   Key_Hiragana            = 0x01001125,  // to Hiragana
00722   Key_Katakana            = 0x01001126,  // to Katakana
00723   Key_Hiragana_Katakana   = 0x01001127,  // Hiragana/Katakana toggle
00724   Key_Zenkaku             = 0x01001128,  // to Zenkaku
00725   Key_Hankaku             = 0x01001129,  // to Hankaku
00726   Key_Zenkaku_Hankaku     = 0x0100112a,  // Zenkaku/Hankaku toggle
00727   Key_Touroku             = 0x0100112b,  // Add to Dictionary
00728   Key_Massyo              = 0x0100112c,  // Delete from Dictionary
00729   Key_Kana_Lock           = 0x0100112d,  // Kana Lock
00730   Key_Kana_Shift          = 0x0100112e,  // Kana Shift
00731   Key_Eisu_Shift          = 0x0100112f,  // Alphanumeric Shift
00732   Key_Eisu_toggle         = 0x01001130,  // Alphanumeric toggle
00733   //Key_Kanji_Bangou        = 0x01001137,  // Codeinput
00734   //Key_Zen_Koho            = 0x0100113d,  // Multiple/All Candidate(s)
00735   //Key_Mae_Koho            = 0x0100113e,  // Previous Candidate
00736 
00737   // Korean keyboard support
00738   //
00739   // In fact, many Korean users need only 2 keys, Key_Hangul and
00740   // Key_Hangul_Hanja. But rest of the keys are good for future.
00741 
00742   Key_Hangul              = 0x01001131,  // Hangul start/stop(toggle)
00743   Key_Hangul_Start        = 0x01001132,  // Hangul start
00744   Key_Hangul_End          = 0x01001133,  // Hangul end, English start
00745   Key_Hangul_Hanja        = 0x01001134,  // Start Hangul->Hanja Conversion
00746   Key_Hangul_Jamo         = 0x01001135,  // Hangul Jamo mode
00747   Key_Hangul_Romaja       = 0x01001136,  // Hangul Romaja mode
00748   //Key_Hangul_Codeinput    = 0x01001137,  // Hangul code input mode
00749   Key_Hangul_Jeonja       = 0x01001138,  // Jeonja mode
00750   Key_Hangul_Banja        = 0x01001139,  // Banja mode
00751   Key_Hangul_PreHanja     = 0x0100113a,  // Pre Hanja conversion
00752   Key_Hangul_PostHanja    = 0x0100113b,  // Post Hanja conversion
00753   //Key_Hangul_SingleCandidate   = 0x0100113c,  // Single candidate
00754   //Key_Hangul_MultipleCandidate = 0x0100113d,  // Multiple candidate
00755   //Key_Hangul_PreviousCandidate = 0x0100113e,  // Previous candidate
00756   Key_Hangul_Special      = 0x0100113f,  // Special symbols
00757   //Key_Hangul_switch       = 0x0100117e,  // Alias for mode_switch
00758 
00759         // dead keys (X keycode - 0xED00 to avoid the conflict)
00760         Key_Dead_Grave          = 0x01001250,
00761         Key_Dead_Acute          = 0x01001251,
00762         Key_Dead_Circumflex     = 0x01001252,
00763         Key_Dead_Tilde          = 0x01001253,
00764         Key_Dead_Macron         = 0x01001254,
00765         Key_Dead_Breve          = 0x01001255,
00766         Key_Dead_Abovedot       = 0x01001256,
00767         Key_Dead_Diaeresis      = 0x01001257,
00768         Key_Dead_Abovering      = 0x01001258,
00769         Key_Dead_Doubleacute    = 0x01001259,
00770         Key_Dead_Caron          = 0x0100125a,
00771         Key_Dead_Cedilla        = 0x0100125b,
00772         Key_Dead_Ogonek         = 0x0100125c,
00773         Key_Dead_Iota           = 0x0100125d,
00774         Key_Dead_Voiced_Sound   = 0x0100125e,
00775         Key_Dead_Semivoiced_Sound = 0x0100125f,
00776         Key_Dead_Belowdot       = 0x01001260,
00777         Key_Dead_Hook           = 0x01001261,
00778         Key_Dead_Horn           = 0x01001262,
00779 
00780         // multimedia/internet keys - ignored by default - see QKeyEvent c'tor
00781 
00782         Key_Back  = 0x01000061,
00783         Key_Forward  = 0x01000062,
00784         Key_Stop  = 0x01000063,
00785         Key_Refresh  = 0x01000064,
00786 
00787         Key_VolumeDown = 0x01000070,
00788         Key_VolumeMute  = 0x01000071,
00789         Key_VolumeUp = 0x01000072,
00790         Key_BassBoost = 0x01000073,
00791         Key_BassUp = 0x01000074,
00792         Key_BassDown = 0x01000075,
00793         Key_TrebleUp = 0x01000076,
00794         Key_TrebleDown = 0x01000077,
00795 
00796         Key_MediaPlay  = 0x01000080,
00797         Key_MediaStop  = 0x01000081,
00798         Key_MediaPrevious  = 0x01000082,
00799 #if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
00800         Key_MediaPrev  = Key_MediaPrevious,
00801 #endif
00802         Key_MediaNext  = 0x01000083,
00803         Key_MediaRecord = 0x01000084,
00804 
00805         Key_HomePage  = 0x01000090,
00806         Key_Favorites  = 0x01000091,
00807         Key_Search  = 0x01000092,
00808         Key_Standby = 0x01000093,
00809         Key_OpenUrl = 0x01000094,
00810 
00811         Key_LaunchMail  = 0x010000a0,
00812         Key_LaunchMedia = 0x010000a1,
00813         Key_Launch0  = 0x010000a2,
00814         Key_Launch1  = 0x010000a3,
00815         Key_Launch2  = 0x010000a4,
00816         Key_Launch3  = 0x010000a5,
00817         Key_Launch4  = 0x010000a6,
00818         Key_Launch5  = 0x010000a7,
00819         Key_Launch6  = 0x010000a8,
00820         Key_Launch7  = 0x010000a9,
00821         Key_Launch8  = 0x010000aa,
00822         Key_Launch9  = 0x010000ab,
00823         Key_LaunchA  = 0x010000ac,
00824         Key_LaunchB  = 0x010000ad,
00825         Key_LaunchC  = 0x010000ae,
00826         Key_LaunchD  = 0x010000af,
00827         Key_LaunchE  = 0x010000b0,
00828         Key_LaunchF  = 0x010000b1,
00829 
00830         Key_MediaLast = 0x0100ffff,
00831 
00832         // Keypad navigation keys
00833         Key_Select = 0x01010000,
00834         Key_Yes = 0x01010001,
00835         Key_No = 0x01010002,
00836 
00837         // Newer misc keys
00838         Key_Cancel  = 0x01020001,
00839         Key_Printer = 0x01020002,
00840         Key_Execute = 0x01020003,
00841         Key_Sleep   = 0x01020004,
00842         Key_Play    = 0x01020005, // Not the same as Key_MediaPlay
00843         Key_Zoom    = 0x01020006,
00844         //Key_Jisho   = 0x01020007, // IME: Dictionary key
00845         //Key_Oyayubi_Left = 0x01020008, // IME: Left Oyayubi key
00846         //Key_Oyayubi_Right = 0x01020009, // IME: Right Oyayubi key
00847 
00848         // Device keys
00849         Key_Context1 = 0x01100000,
00850         Key_Context2 = 0x01100001,
00851         Key_Context3 = 0x01100002,
00852         Key_Context4 = 0x01100003,
00853         Key_Call = 0x01100004,
00854         Key_Hangup = 0x01100005,
00855         Key_Flip = 0x01100006,
00856 
00857         Key_unknown = 0x01ffffff
00858     };
00859 
00860     enum ArrowType {
00861         NoArrow,
00862         UpArrow,
00863         DownArrow,
00864         LeftArrow,
00865         RightArrow
00866     };
00867 
00868     enum PenStyle { // pen style
00869         NoPen,
00870         SolidLine,
00871         DashLine,
00872         DotLine,
00873         DashDotLine,
00874         DashDotDotLine,
00875         CustomDashLine
00876 #ifndef Q_MOC_RUN
00877         , MPenStyle = 0x0f
00878 #endif
00879     };
00880 
00881     enum PenCapStyle { // line endcap style
00882         FlatCap = 0x00,
00883         SquareCap = 0x10,
00884         RoundCap = 0x20,
00885         MPenCapStyle = 0x30
00886     };
00887 
00888     enum PenJoinStyle { // line join style
00889         MiterJoin = 0x00,
00890         BevelJoin = 0x40,
00891         RoundJoin = 0x80,
00892         SvgMiterJoin = 0x100,
00893         MPenJoinStyle = 0x1c0
00894     };
00895 
00896     enum BrushStyle { // brush style
00897         NoBrush,
00898         SolidPattern,
00899         Dense1Pattern,
00900         Dense2Pattern,
00901         Dense3Pattern,
00902         Dense4Pattern,
00903         Dense5Pattern,
00904         Dense6Pattern,
00905         Dense7Pattern,
00906         HorPattern,
00907         VerPattern,
00908         CrossPattern,
00909         BDiagPattern,
00910         FDiagPattern,
00911         DiagCrossPattern,
00912         LinearGradientPattern,
00913         RadialGradientPattern,
00914         ConicalGradientPattern,
00915         TexturePattern = 24
00916 #if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
00917         , CustomPattern = TexturePattern
00918 #endif
00919     };
00920 
00921 #if defined(QT3_SUPPORT)
00922 #if defined(Q_OS_MAC)
00923 #ifndef qdoc
00924     typedef int MacintoshVersion;
00925 
00926     enum
00927 #else
00928     enum MacintoshVersion
00929 #endif
00930     {
00931         //Unknown
00932         MV_Unknown  = 0x0000,
00933 
00934         //Version numbers
00935         MV_9        = QSysInfo::MV_9,
00936         MV_10_DOT_0 = QSysInfo::MV_10_0,
00937         MV_10_DOT_1 = QSysInfo::MV_10_1,
00938         MV_10_DOT_2 = QSysInfo::MV_10_2,
00939         MV_10_DOT_3 = QSysInfo::MV_10_3,
00940         MV_10_DOT_4 = QSysInfo::MV_10_4,
00941 
00942         //Code names
00943         MV_CHEETAH = QSysInfo::MV_CHEETAH,
00944         MV_PUMA = QSysInfo::MV_PUMA,
00945         MV_JAGUAR = QSysInfo::MV_JAGUAR,
00946         MV_PANTHER = QSysInfo::MV_PANTHER,
00947         MV_TIGER = QSysInfo::MV_TIGER
00948     };
00949 #endif // Q_OS_MAC
00950 
00951 #if defined(Q_OS_WIN)
00952 #ifndef qdoc
00953     typedef int WindowsVersion;
00954 
00955     enum
00956 #else
00957     enum WindowsVersion
00958 #endif
00959     {
00960         WV_32s = QSysInfo::WV_32s,
00961         WV_95 = QSysInfo::WV_95,
00962         WV_98 = QSysInfo::WV_98,
00963         WV_Me = QSysInfo::WV_Me,
00964         WV_DOS_based= QSysInfo::WV_DOS_based,
00965 
00966         WV_NT = QSysInfo::WV_NT,
00967         WV_2000 = QSysInfo::WV_2000,
00968         WV_XP = QSysInfo::WV_XP,
00969         WV_2003 = QSysInfo::WV_2003,
00970         WV_NT_based = QSysInfo::WV_NT_based,
00971 
00972         WV_CE = QSysInfo::WV_CE,
00973         WV_CENET = QSysInfo::WV_CENET,
00974         WV_CE_based = QSysInfo::WV_CE_based
00975     };
00976 #endif // Q_OS_WIN
00977 #endif // QT3_SUPPORT
00978 
00979     enum UIEffect {
00980         UI_General,
00981         UI_AnimateMenu,
00982         UI_FadeMenu,
00983         UI_AnimateCombo,
00984         UI_AnimateTooltip,
00985         UI_FadeTooltip,
00986         UI_AnimateToolBox
00987     };
00988 
00989     enum CursorShape {
00990         ArrowCursor,
00991         UpArrowCursor,
00992         CrossCursor,
00993         WaitCursor,
00994         IBeamCursor,
00995         SizeVerCursor,
00996         SizeHorCursor,
00997         SizeBDiagCursor,
00998         SizeFDiagCursor,
00999         SizeAllCursor,
01000         BlankCursor,
01001         SplitVCursor,
01002         SplitHCursor,
01003         PointingHandCursor,
01004         ForbiddenCursor,
01005         WhatsThisCursor,
01006         BusyCursor,
01007         OpenHandCursor,
01008         ClosedHandCursor,
01009         LastCursor = ClosedHandCursor,
01010         BitmapCursor = 24,
01011         CustomCursor = 25
01012 
01013 #if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
01014         ,
01015         arrowCursor = ArrowCursor,
01016         upArrowCursor = UpArrowCursor,
01017         crossCursor = CrossCursor,
01018         waitCursor = WaitCursor,
01019         ibeamCursor = IBeamCursor,
01020         sizeVerCursor = SizeVerCursor,
01021         sizeHorCursor = SizeHorCursor,
01022         sizeBDiagCursor = SizeBDiagCursor,
01023         sizeFDiagCursor = SizeFDiagCursor,
01024         sizeAllCursor = SizeAllCursor,
01025         blankCursor = BlankCursor,
01026         splitVCursor = SplitVCursor,
01027         splitHCursor = SplitHCursor,
01028         pointingHandCursor = PointingHandCursor,
01029         forbiddenCursor = ForbiddenCursor,
01030         whatsThisCursor = WhatsThisCursor
01031 #endif
01032     };
01033 
01034     enum TextFormat {
01035         PlainText,
01036         RichText,
01037         AutoText,
01038         LogText
01039     };
01040 
01041     enum AspectRatioMode {
01042         IgnoreAspectRatio,
01043         KeepAspectRatio,
01044         KeepAspectRatioByExpanding
01045 #if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
01046         , ScaleFree = IgnoreAspectRatio,
01047         ScaleMin = KeepAspectRatio,
01048         ScaleMax = KeepAspectRatioByExpanding
01049 #endif
01050     };
01051 #ifdef QT3_SUPPORT
01052     typedef AspectRatioMode ScaleMode;
01053 #endif
01054 
01055     enum AnchorAttribute {
01056         AnchorName,
01057         AnchorHref
01058     };
01059 
01060     enum DockWidgetArea {
01061         LeftDockWidgetArea = 0x1,
01062         RightDockWidgetArea = 0x2,
01063         TopDockWidgetArea = 0x4,
01064         BottomDockWidgetArea = 0x8,
01065 
01066         DockWidgetArea_Mask = 0xf,
01067         AllDockWidgetAreas = DockWidgetArea_Mask,
01068         NoDockWidgetArea = 0
01069     };
01070     enum DockWidgetAreaSizes {
01071         NDockWidgetAreas = 4
01072     };
01073 
01074     Q_DECLARE_FLAGS(DockWidgetAreas, DockWidgetArea)
01075 
01076     enum ToolBarArea {
01077         LeftToolBarArea = 0x1,
01078         RightToolBarArea = 0x2,
01079         TopToolBarArea = 0x4,
01080         BottomToolBarArea = 0x8,
01081 
01082         ToolBarArea_Mask = 0xf,
01083         AllToolBarAreas = ToolBarArea_Mask,
01084         NoToolBarArea = 0
01085     };
01086 
01087     enum ToolBarAreaSizes {
01088         NToolBarAreas = 4
01089     };
01090 
01091     Q_DECLARE_FLAGS(ToolBarAreas, ToolBarArea)
01092 
01093 #ifdef QT3_SUPPORT
01094     enum Dock {
01095         DockUnmanaged,
01096         DockTornOff,
01097         DockTop,
01098         DockBottom,
01099         DockRight,
01100         DockLeft,
01101         DockMinimized
01102         ,
01103         Unmanaged = DockUnmanaged,
01104         TornOff = DockTornOff,
01105         Top = DockTop,
01106         Bottom = DockBottom,
01107         Right = DockRight,
01108         Left = DockLeft,
01109         Minimized = DockMinimized
01110     };
01111     // compatibility
01112     typedef Dock ToolBarDock;
01113 #endif
01114 
01115     enum DateFormat {
01116         TextDate,      // default Qt
01117         ISODate,       // ISO 8601
01118         SystemLocaleDate, // system format
01119         LocalDate = SystemLocaleDate, // ## deprecated!
01120         LocaleDate     // default QLocale format
01121     };
01122 
01123     enum TimeSpec {
01124         LocalTime,
01125         UTC
01126     };
01127 
01128     enum DayOfWeek {
01129         Monday = 1,
01130         Tuesday = 2,
01131         Wednesday = 3,
01132         Thursday = 4,
01133         Friday = 5,
01134         Saturday = 6,
01135         Sunday = 7
01136     };
01137 
01138     enum ScrollBarPolicy {
01139         ScrollBarAsNeeded,
01140         ScrollBarAlwaysOff,
01141         ScrollBarAlwaysOn
01142     };
01143 
01144 #ifdef QT3_SUPPORT
01145     enum BackgroundMode {
01146         FixedColor,
01147         FixedPixmap,
01148         NoBackground,
01149         PaletteForeground,
01150         PaletteButton,
01151         PaletteLight,
01152         PaletteMidlight,
01153         PaletteDark,
01154         PaletteMid,
01155         PaletteText,
01156         PaletteBrightText,
01157         PaletteBase,
01158         PaletteBackground,
01159         PaletteShadow,
01160         PaletteHighlight,
01161         PaletteHighlightedText,
01162         PaletteButtonText,
01163         PaletteLink,
01164         PaletteLinkVisited,
01165         X11ParentRelative
01166     };
01167 #endif
01168 
01169     enum CaseSensitivity {
01170         CaseInsensitive,
01171         CaseSensitive
01172     };
01173 
01174     enum Corner {
01175         TopLeftCorner = 0x00000,
01176         TopRightCorner = 0x00001,
01177         BottomLeftCorner = 0x00002,
01178         BottomRightCorner = 0x00003
01179 #if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
01180         ,TopLeft = TopLeftCorner,
01181         TopRight = TopRightCorner,
01182         BottomLeft = BottomLeftCorner,
01183         BottomRight = BottomRightCorner
01184 #endif
01185     };
01186 
01187     enum ConnectionType {
01188         AutoConnection,
01189         DirectConnection,
01190         QueuedConnection,
01191         AutoCompatConnection
01192     };
01193 
01194     enum ShortcutContext {
01195         WidgetShortcut,
01196         WindowShortcut,
01197         ApplicationShortcut
01198     };
01199 
01200     enum FillRule {
01201         OddEvenFill,
01202         WindingFill
01203     };
01204 
01205     enum ClipOperation {
01206         NoClip,
01207         ReplaceClip,
01208         IntersectClip,
01209         UniteClip
01210     };
01211 
01212     // Shape = 0x1, BoundingRect = 0x2
01213     enum ItemSelectionMode {
01214         ContainsItemShape = 0x0,
01215         IntersectsItemShape = 0x1,
01216         ContainsItemBoundingRect = 0x2,
01217         IntersectsItemBoundingRect = 0x3
01218     };
01219 
01220     enum TransformationMode {
01221         FastTransformation,
01222         SmoothTransformation
01223     };
01224 
01225     enum FocusReason {
01226         MouseFocusReason,
01227         TabFocusReason,
01228         BacktabFocusReason,
01229         ActiveWindowFocusReason,
01230         PopupFocusReason,
01231         ShortcutFocusReason,
01232         MenuBarFocusReason,
01233         OtherFocusReason,
01234         NoFocusReason
01235     };
01236 
01237     enum ContextMenuPolicy {
01238         NoContextMenu,
01239         DefaultContextMenu,
01240         ActionsContextMenu,
01241         CustomContextMenu,
01242         PreventContextMenu
01243     };
01244 
01245     enum InputMethodQuery {
01246         ImMicroFocus,
01247         ImFont,
01248         ImCursorPosition,
01249         ImSurroundingText,
01250         ImCurrentSelection
01251     };
01252 
01253     enum ToolButtonStyle {
01254         ToolButtonIconOnly,
01255         ToolButtonTextOnly,
01256         ToolButtonTextBesideIcon,
01257         ToolButtonTextUnderIcon
01258     };
01259 
01260     enum LayoutDirection {
01261         LeftToRight,
01262         RightToLeft
01263     };
01264 
01265     enum DropAction {
01266         CopyAction = 0x1,
01267         MoveAction = 0x2,
01268         LinkAction = 0x4,
01269         ActionMask = 0xff,
01270         TargetMoveAction = 0x8002,
01271         IgnoreAction = 0x0
01272     };
01273     Q_DECLARE_FLAGS(DropActions, DropAction)
01274 
01275     enum CheckState {
01276         Unchecked,
01277         PartiallyChecked,
01278         Checked
01279     };
01280 
01281     enum ItemDataRole {
01282         DisplayRole = 0,
01283         DecorationRole = 1,
01284         EditRole = 2,
01285         ToolTipRole = 3,
01286         StatusTipRole = 4,
01287         WhatsThisRole = 5,
01288         // Metadata
01289         FontRole = 6,
01290         TextAlignmentRole = 7,
01291         BackgroundColorRole = 8,
01292         BackgroundRole = 8,
01293         TextColorRole = 9,
01294         ForegroundRole = 9,
01295         CheckStateRole = 10,
01296         // Accessibility
01297         AccessibleTextRole = 11,
01298         AccessibleDescriptionRole = 12,
01299         // More Metadata
01300         SizeHintRole = 13,
01301         // Reserved
01302         UserRole = 32
01303     };
01304 
01305     enum ItemFlag {
01306         ItemIsSelectable = 1,
01307         ItemIsEditable = 2,
01308         ItemIsDragEnabled = 4,
01309         ItemIsDropEnabled = 8,
01310         ItemIsUserCheckable = 16,
01311         ItemIsEnabled = 32,
01312         ItemIsTristate = 64
01313     };
01314     Q_DECLARE_FLAGS(ItemFlags, ItemFlag)
01315 
01316     enum MatchFlag {
01317         MatchExactly = 0,
01318         MatchContains = 1,
01319         MatchStartsWith = 2,
01320         MatchEndsWith = 3,
01321         MatchRegExp = 4,
01322         MatchWildcard = 5,
01323         MatchFixedString = 8,
01324         MatchCaseSensitive = 16,
01325         MatchWrap = 32,
01326         MatchRecursive = 64
01327     };
01328     Q_DECLARE_FLAGS(MatchFlags, MatchFlag)
01329 
01330 #if defined(Q_WS_MAC)
01331     typedef void * HANDLE;
01332 #elif defined(Q_WS_WIN)
01333     typedef void *HANDLE;
01334 #elif defined(Q_WS_X11)
01335     typedef unsigned long HANDLE;
01336 #elif defined(Q_WS_QWS)
01337     typedef void * HANDLE;
01338 #endif
01339     typedef WindowFlags WFlags;
01340 
01341     enum WindowModality {
01342         NonModal,
01343         WindowModal,
01344         ApplicationModal
01345     };
01346 
01347     enum TextInteractionFlag {
01348         NoTextInteraction         = 0,
01349         TextSelectableByMouse     = 1,
01350         TextSelectableByKeyboard  = 2,
01351         LinksAccessibleByMouse    = 4,
01352         LinksAccessibleByKeyboard = 8,
01353         TextEditable              = 16,
01354 
01355         TextEditorInteraction     = TextSelectableByMouse | TextSelectableByKeyboard | TextEditable,
01356         TextBrowserInteraction    = TextSelectableByMouse | LinksAccessibleByMouse | LinksAccessibleByKeyboard
01357     };
01358     Q_DECLARE_FLAGS(TextInteractionFlags, TextInteractionFlag)
01359 }
01360 #ifdef Q_MOC_RUN
01361  ;
01362 #endif
01363 
01364 
01365 Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::MouseButtons)
01366 Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::Orientations)
01367 Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::KeyboardModifiers)
01368 Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::WindowFlags)
01369 Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::Alignment)
01370 Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::ImageConversionFlags)
01371 Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::DockWidgetAreas)
01372 Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::ToolBarAreas)
01373 Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::WindowStates)
01374 Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::DropActions)
01375 Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::ItemFlags)
01376 Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::MatchFlags)
01377 Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::TextInteractionFlags)
01378 
01379 typedef bool (*qInternalCallback)(void **);
01380 
01381 class Q_CORE_EXPORT QInternal {
01382 public:
01383     enum PaintDeviceFlags {
01384         UnknownDevice = 0x00,
01385         Widget        = 0x01,
01386         Pixmap        = 0x02,
01387         Image         = 0x03,
01388         Printer       = 0x04,
01389         Picture       = 0x05,
01390         Pbuffer       = 0x06,    // GL pbuffer
01391         FramebufferObject = 0x07, // GL framebuffer object
01392         CustomRaster  = 0x08
01393     };
01394     enum RelayoutType {
01395         RelayoutNormal,
01396         RelayoutDragging,
01397         RelayoutDropped
01398     };
01399 
01400 
01401     enum Callback {
01402         ConnectCallback,
01403         DisconnectCallback,
01404         AdoptCurrentThread,
01405         LastCallback
01406     };
01407 
01408     enum InternalFunction {
01409         CreateThreadForAdoption,
01410         RefAdoptedThread,
01411         DerefAdoptedThread,
01412         SetCurrentThreadToMainThread,
01413         LastInternalFunction
01414     };
01415 
01416     static bool registerCallback(Callback, qInternalCallback);
01417     static bool unregisterCallback(Callback, qInternalCallback);
01418 
01419     static bool activateCallbacks(Callback, void **);
01420     static bool callFunction(InternalFunction func, void **);
01421 };
01422 
01423 #ifdef QT3_SUPPORT
01424 typedef qint32 QCOORD;                                // coordinate type
01425 enum {
01426     QCOORD_MAX =  2147483647,
01427     QCOORD_MIN = -QCOORD_MAX - 1
01428 };
01429 #endif
01430 
01431 QT_END_HEADER
01432 
01433 #endif // QNAMESPACE_H

Generated on Thu Mar 15 11:53:09 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1