1
1
/****************************************************************************
3
3
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
4
** All rights reserved.
4
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
** Licensees holding valid Qt Commercial licenses may use this file in
11
** accordance with the Qt Commercial License Agreement provided with the
12
** Software or, alternatively, in accordance with the terms contained in
13
** a written agreement between you and Nokia.
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
15
16
** GNU Lesser General Public License Usage
16
17
** Alternatively, this file may be used under the terms of the GNU Lesser
20
21
** ensure the GNU Lesser General Public License version 2.1 requirements
21
22
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
23
** In addition, as a special exception, Nokia gives you certain
24
** additional rights. These rights are described in the Nokia Qt LGPL
25
** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
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.
36
** If you are unsure which license is appropriate for your use, please
37
** contact the sales department at http://www.qtsoftware.com/contact.
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.
28
** If you have questions regarding the use of this file, please contact
29
** Nokia at qt-info@nokia.com.
38
38
** $QT_END_LICENSE$
40
40
****************************************************************************/
87
91
Q_FLAGS(MatchFlags)
88
92
Q_FLAGS(KeyboardModifiers MouseButtons)
89
93
Q_ENUMS(WindowType WindowState WindowModality WidgetAttribute ApplicationAttribute)
90
Q_FLAGS(WindowFlags WindowStates)
94
Q_ENUMS(InputMethodHint)
95
Q_FLAGS(WindowFlags WindowStates InputMethodHints)
91
96
Q_ENUMS(ConnectionType)
92
97
#endif // (defined(Q_MOC_RUN) || defined(QT_JAMBI_RUN))
227
238
TextHideMnemonic = 0x8000,
228
239
TextJustificationForced = 0x10000,
229
240
TextForceLeftToRight = 0x20000,
230
TextForceRightToLeft = 0x40000
241
TextForceRightToLeft = 0x40000,
242
TextLongestVariant = 0x80000
232
244
#if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
233
245
,SingleLine = TextSingleLine,
485
497
WA_WState_WindowOpacitySet = 119, // internal
486
498
WA_TranslucentBackground = 120,
500
WA_AcceptTouchEvents = 121,
501
WA_WState_AcceptedTouchBeginEvent = 122,
502
WA_TouchPadAcceptSingleTouchEvents = 123,
488
504
// Add new attributes before this line
489
505
WA_AttributeCount
497
513
AA_NativeWindows = 3,
498
514
AA_DontCreateNativeWidgetSiblings = 4,
499
515
AA_MacPluginApplication = 5,
516
AA_DontUseNativeMenuBar = 6,
517
AA_MacDontSwapCtrlAndMeta = 7,
501
519
// Add new attributes before this line
502
520
AA_AttributeCount
1391
1410
ImCursorPosition,
1392
1411
ImSurroundingText,
1413
ImMaximumTextLength,
1417
enum InputMethodHint {
1419
ImhHiddenText = 0x1,
1420
ImhNoAutoUppercase = 0x2,
1421
ImhPreferNumbers = 0x4,
1422
ImhPreferUppercase = 0x8,
1423
ImhPreferLowercase = 0x10,
1424
ImhNoPredictiveText = 0x20,
1426
ImhDigitsOnly = 0x10000,
1427
ImhFormattedNumbersOnly = 0x20000,
1428
ImhUppercaseOnly = 0x40000,
1429
ImhLowercaseOnly = 0x80000,
1430
ImhDialableCharactersOnly = 0x100000,
1431
ImhEmailCharactersOnly = 0x200000,
1432
ImhUrlCharactersOnly = 0x400000,
1434
ImhExclusiveInputMask = 0xffff0000
1436
Q_DECLARE_FLAGS(InputMethodHints, InputMethodHint)
1396
1438
enum ToolButtonStyle {
1397
1439
ToolButtonIconOnly,
1398
1440
ToolButtonTextOnly,
1399
1441
ToolButtonTextBesideIcon,
1400
ToolButtonTextUnderIcon
1442
ToolButtonTextUnderIcon,
1443
ToolButtonFollowStyle
1403
1446
enum LayoutDirection {
1533
1589
BottomLeftSection,
1534
1590
TitleBarArea // For move
1593
enum Initialization {
1597
enum CoordinateSystem {
1602
enum TouchPointState {
1603
TouchPointPressed = 0x01,
1604
TouchPointMoved = 0x02,
1605
TouchPointStationary = 0x04,
1606
TouchPointReleased = 0x08,
1607
TouchPointStateMask = 0x0f,
1609
TouchPointPrimary = 0x10
1611
Q_DECLARE_FLAGS(TouchPointStates, TouchPointState)
1618
GestureFinished = 3,
1625
TapAndHoldGesture = 2,
1630
CustomGesture = 0x0100,
1632
LastGestureType = ~0u
1637
WidgetGesture = WidgetShortcut,
1638
WidgetWithChildrenGesture = WidgetWithChildrenShortcut,
1644
NavigationModeKeypadTabOrder,
1645
NavigationModeKeypadDirectional,
1646
NavigationModeCursorAuto,
1647
NavigationModeCursorForceVisible
1537
1655
#ifdef Q_MOC_RUN
1542
1659
Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::MouseButtons)
1543
1660
Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::Orientations)
1544
1661
Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::KeyboardModifiers)
1552
1669
Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::ItemFlags)
1553
1670
Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::MatchFlags)
1554
1671
Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::TextInteractionFlags)
1672
Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::InputMethodHints)
1673
Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::TouchPointStates)
1556
1675
typedef bool (*qInternalCallback)(void **);