Qt 4.8
qt-4.8.6
src
gui
embedded
qwsevent_qws.cpp
Go to the documentation of this file.
1
/****************************************************************************
2
**
3
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
4
** Contact: http://www.qt-project.org/legal
5
**
6
** This file is part of the QtGui module of the Qt Toolkit.
7
**
8
** $QT_BEGIN_LICENSE:LGPL$
9
** Commercial License Usage
10
** Licensees holding valid commercial Qt licenses may use this file in
11
** accordance with the commercial license agreement provided with the
12
** Software or, alternatively, in accordance with the terms contained in
13
** a written agreement between you and Digia. For licensing terms and
14
** conditions see http://qt.digia.com/licensing. For further information
15
** use the contact form at http://qt.digia.com/contact-us.
16
**
17
** GNU Lesser General Public License Usage
18
** Alternatively, this file may be used under the terms of the GNU Lesser
19
** General Public License version 2.1 as published by the Free Software
20
** Foundation and appearing in the file LICENSE.LGPL included in the
21
** packaging of this file. Please review the following information to
22
** ensure the GNU Lesser General Public License version 2.1 requirements
23
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
24
**
25
** In addition, as a special exception, Digia gives you certain additional
26
** rights. These rights are described in the Digia Qt LGPL Exception
27
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
28
**
29
** GNU General Public License Usage
30
** Alternatively, this file may be used under the terms of the GNU
31
** General Public License version 3.0 as published by the Free Software
32
** Foundation and appearing in the file LICENSE.GPL included in the
33
** packaging of this file. Please review the following information to
34
** ensure the GNU General Public License version 3.0 requirements will be
35
** met: http://www.gnu.org/copyleft/gpl.html.
36
**
37
**
38
** $QT_END_LICENSE$
39
**
40
****************************************************************************/
41
42
#include "
qwsevent_qws.h
"
43
44
QT_BEGIN_NAMESPACE
45
46
QWSEvent
*
QWSEvent::factory
(
int
type
)
47
{
48
QWSEvent
*
event
= 0;
49
switch
(type) {
50
case
QWSEvent::Connected
:
51
event
=
new
QWSConnectedEvent
;
52
break
;
53
case
QWSEvent::MaxWindowRect
:
54
event
=
new
QWSMaxWindowRectEvent
;
55
break
;
56
case
QWSEvent::Mouse
:
57
event
=
new
QWSMouseEvent
;
58
break
;
59
case
QWSEvent::Focus
:
60
event
=
new
QWSFocusEvent
;
61
break
;
62
case
QWSEvent::Key
:
63
event
=
new
QWSKeyEvent
;
64
break
;
65
case
QWSEvent::Region
:
66
event
=
new
QWSRegionEvent
;
67
break
;
68
case
QWSEvent::Creation
:
69
event
=
new
QWSCreationEvent
;
70
break
;
71
#ifndef QT_NO_QWS_PROPERTIES
72
case
QWSEvent::PropertyNotify
:
73
event
=
new
QWSPropertyNotifyEvent
;
74
break
;
75
case
QWSEvent::PropertyReply
:
76
event
=
new
QWSPropertyReplyEvent
;
77
break
;
78
#endif // QT_NO_QWS_PROPERTIES
79
case
QWSEvent::SelectionClear
:
80
event
=
new
QWSSelectionClearEvent
;
81
break
;
82
case
QWSEvent::SelectionRequest
:
83
event
=
new
QWSSelectionRequestEvent
;
84
break
;
85
case
QWSEvent::SelectionNotify
:
86
event
=
new
QWSSelectionNotifyEvent
;
87
break
;
88
#ifndef QT_NO_COP
89
case
QWSEvent::QCopMessage
:
90
event
=
new
QWSQCopMessageEvent
;
91
break
;
92
#endif
93
case
QWSEvent::WindowOperation
:
94
event
=
new
QWSWindowOperationEvent
;
95
break
;
96
97
#ifndef QT_NO_QWS_INPUTMETHODS
98
case
QWSEvent::IMEvent
:
99
event
=
new
QWSIMEvent
;
100
break
;
101
case
QWSEvent::IMQuery
:
102
event
=
new
QWSIMQueryEvent
;
103
break
;
104
case
QWSEvent::IMInit
:
105
event
=
new
QWSIMInitEvent
;
106
break
;
107
#endif
108
#ifndef QT_NO_QWSEMBEDWIDGET
109
case
QWSEvent::Embed
:
110
event
=
new
QWSEmbedEvent
;
111
break
;
112
#endif
113
case
QWSEvent::Font
:
114
event
=
new
QWSFontEvent
;
115
break
;
116
case
QWSEvent::ScreenTransformation
:
117
event
=
new
QWSScreenTransformationEvent
;
118
break
;
119
default
:
120
qCritical
(
"QWSEvent::factory() : Unknown event type %08x!"
, type);
121
}
122
return
event
;
123
}
124
222
QT_END_NAMESPACE
QWSEvent::SelectionNotify
Definition:
qwsevent_qws.h:77
type
int type
Definition:
qmetatype.cpp:239
QWSEvent::SelectionClear
Definition:
qwsevent_qws.h:75
QT_END_NAMESPACE
#define QT_END_NAMESPACE
This macro expands to.
Definition:
qglobal.h:90
qwsevent_qws.h
event
EventRef event
Definition:
qapplication_mac.mm:880
QWSPropertyNotifyEvent
Definition:
qwsevent_qws.h:176
QWSIMEvent
Definition:
qwsevent_qws.h:373
QWSEvent::PropertyNotify
Definition:
qwsevent_qws.h:73
QWSEvent::IMEvent
Definition:
qwsevent_qws.h:81
QWSEvent::ScreenTransformation
Definition:
qwsevent_qws.h:86
QWSWindowOperationEvent
Definition:
qwsevent_qws.h:359
QWSEvent::PropertyReply
Definition:
qwsevent_qws.h:74
QWSEvent::Region
Definition:
qwsevent_qws.h:71
QWSIMQueryEvent
Definition:
qwsevent_qws.h:410
QWSEvent::SelectionRequest
Definition:
qwsevent_qws.h:76
QWSCreationEvent
Definition:
qwsevent_qws.h:165
QWSEvent
The QWSEvent class encapsulates an event in Qt for Embedded Linux.
Definition:
qwsevent_qws.h:59
QT_BEGIN_NAMESPACE
#define QT_BEGIN_NAMESPACE
This macro expands to.
Definition:
qglobal.h:89
QWSMouseEvent
Definition:
qwsevent_qws.h:129
QWSEmbedEvent
Definition:
qwsevent_qws.h:269
QWSSelectionNotifyEvent
Definition:
qwsevent_qws.h:214
QWSEvent::Focus
Definition:
qwsevent_qws.h:69
QWSConnectedEvent
Definition:
qwsevent_qws.h:100
QWSKeyEvent
Definition:
qwsevent_qws.h:150
QWSFontEvent
Definition:
qwsevent_qws.h:424
QWSEvent::IMQuery
Definition:
qwsevent_qws.h:82
QWSPropertyReplyEvent
Definition:
qwsevent_qws.h:304
QWSEvent::Key
Definition:
qwsevent_qws.h:70
QWSEvent::Connected
Definition:
qwsevent_qws.h:67
QWSQCopMessageEvent
Definition:
qwsevent_qws.h:324
QWSRegionEvent
Definition:
qwsevent_qws.h:228
QWSEvent::Creation
Definition:
qwsevent_qws.h:72
QWSEvent::factory
static QWSEvent * factory(int type)
Definition:
qwsevent_qws.cpp:46
QWSMaxWindowRectEvent
Definition:
qwsevent_qws.h:120
QWSEvent::QCopMessage
Definition:
qwsevent_qws.h:79
QWSEvent::MaxWindowRect
Definition:
qwsevent_qws.h:78
QWSEvent::Embed
Definition:
qwsevent_qws.h:84
QWSEvent::Font
Definition:
qwsevent_qws.h:85
QWSSelectionRequestEvent
Definition:
qwsevent_qws.h:201
QWSFocusEvent
Definition:
qwsevent_qws.h:140
QWSEvent::IMInit
Definition:
qwsevent_qws.h:83
QWSSelectionClearEvent
Definition:
qwsevent_qws.h:192
QWSEvent::Mouse
Definition:
qwsevent_qws.h:68
qCritical
Q_CORE_EXPORT void qCritical(const char *,...)
QWSEvent::WindowOperation
Definition:
qwsevent_qws.h:80
QWSIMInitEvent
Definition:
qwsevent_qws.h:392
QWSScreenTransformationEvent
Definition:
qwsevent_qws.h:444
Qt 4.8 Source Code Browser