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