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