1 | /**************************************************************************** |
2 | ** |
3 | ** Copyright (C) 2017 The Qt Company Ltd. |
4 | ** Contact: http://www.qt.io/licensing/ |
5 | ** |
6 | ** This file is part of the Qt Quick Templates 2 module of the Qt Toolkit. |
7 | ** |
8 | ** $QT_BEGIN_LICENSE:LGPL3$ |
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 The Qt Company. For licensing terms |
14 | ** and conditions see http://www.qt.io/terms-conditions. For further |
15 | ** information use the contact form at http://www.qt.io/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 3 as published by the Free Software |
20 | ** Foundation and appearing in the file LICENSE.LGPLv3 included in the |
21 | ** packaging of this file. Please review the following information to |
22 | ** ensure the GNU Lesser General Public License version 3 requirements |
23 | ** will be met: https://www.gnu.org/licenses/lgpl.html. |
24 | ** |
25 | ** GNU General Public License Usage |
26 | ** Alternatively, this file may be used under the terms of the GNU |
27 | ** General Public License version 2.0 or later as published by the Free |
28 | ** Software Foundation and appearing in the file LICENSE.GPL included in |
29 | ** the packaging of this file. Please review the following information to |
30 | ** ensure the GNU General Public License version 2.0 requirements will be |
31 | ** met: http://www.gnu.org/licenses/gpl-2.0.html. |
32 | ** |
33 | ** $QT_END_LICENSE$ |
34 | ** |
35 | ****************************************************************************/ |
36 | |
37 | #ifndef QQUICKPOPUP_P_P_H |
38 | #define |
39 | |
40 | // |
41 | // W A R N I N G |
42 | // ------------- |
43 | // |
44 | // This file is not part of the Qt API. It exists purely as an |
45 | // implementation detail. This header file may change from version to |
46 | // version without notice, or even be removed. |
47 | // |
48 | // We mean it. |
49 | // |
50 | |
51 | #include <QtQuickTemplates2/private/qquickpopup_p.h> |
52 | #include <QtQuickTemplates2/private/qquickcontrol_p.h> |
53 | |
54 | #include <QtCore/private/qobject_p.h> |
55 | #include <QtQuick/qquickitem.h> |
56 | #include <QtQuick/private/qquickitemchangelistener_p.h> |
57 | #include <QtQuick/private/qquicktransitionmanager_p_p.h> |
58 | |
59 | QT_BEGIN_NAMESPACE |
60 | |
61 | class QQuickTransition; |
62 | class QQuickTransitionManager; |
63 | class ; |
64 | class ; |
65 | class ; |
66 | class QQuickPopupPrivate; |
67 | class ; |
68 | |
69 | class : public QQuickTransitionManager |
70 | { |
71 | public: |
72 | (QQuickPopupPrivate *); |
73 | |
74 | void (); |
75 | void (); |
76 | |
77 | protected: |
78 | void () override; |
79 | |
80 | private: |
81 | QQuickPopupPrivate * = nullptr; |
82 | }; |
83 | |
84 | class Q_AUTOTEST_EXPORT : public QObjectPrivate, public QQuickItemChangeListener |
85 | { |
86 | Q_DECLARE_PUBLIC(QQuickPopup) |
87 | |
88 | public: |
89 | (); |
90 | |
91 | static QQuickPopupPrivate *(QQuickPopup *) |
92 | { |
93 | return popup->d_func(); |
94 | } |
95 | |
96 | QQmlListProperty<QObject> (); |
97 | QQmlListProperty<QQuickItem> (); |
98 | |
99 | void (); |
100 | void (); |
101 | bool (const QPointF &pos, QQuickPopup::ClosePolicy flags); |
102 | |
103 | bool (const QPointF &scenePos) const; |
104 | |
105 | #if QT_CONFIG(quicktemplates2_multitouch) |
106 | virtual bool (const QTouchEvent::TouchPoint &point); |
107 | #endif |
108 | virtual bool (QQuickItem *item, const QPointF &point) const; |
109 | |
110 | virtual bool handlePress(QQuickItem* item, const QPointF &point, ulong timestamp); |
111 | virtual bool handleMove(QQuickItem* item, const QPointF &point, ulong timestamp); |
112 | virtual bool handleRelease(QQuickItem* item, const QPointF &point, ulong timestamp); |
113 | virtual void handleUngrab(); |
114 | |
115 | bool handleMouseEvent(QQuickItem *item, QMouseEvent *event); |
116 | #if QT_CONFIG(quicktemplates2_multitouch) |
117 | bool handleTouchEvent(QQuickItem *item, QTouchEvent *event); |
118 | #endif |
119 | |
120 | void (); |
121 | |
122 | void (); |
123 | void (); |
124 | void (); |
125 | virtual void (); |
126 | virtual void (); |
127 | virtual void (); |
128 | |
129 | virtual bool (); |
130 | virtual bool (); |
131 | virtual void (); |
132 | virtual void (); |
133 | |
134 | QMarginsF () const; |
135 | |
136 | void (qreal value, bool reset = false); |
137 | void (qreal value, bool reset = false); |
138 | void (qreal value, bool reset = false); |
139 | void (qreal value, bool reset = false); |
140 | |
141 | QQuickPopupAnchors *(); |
142 | virtual QQuickPopupPositioner *(); |
143 | |
144 | void (QQuickWindow *window); |
145 | void (QQuickItem *item) override; |
146 | |
147 | enum { |
148 | , , |
149 | }; |
150 | |
151 | static const QQuickPopup::ClosePolicy ; |
152 | |
153 | bool = false; |
154 | bool = false; |
155 | bool = false; |
156 | bool = false; |
157 | bool = false; |
158 | bool = true; |
159 | bool = false; |
160 | bool = false; |
161 | bool = false; |
162 | bool = false; |
163 | bool = false; |
164 | bool = false; |
165 | bool = false; |
166 | bool = false; |
167 | bool = false; |
168 | bool = true; |
169 | bool = true; |
170 | bool = true; |
171 | bool = true; |
172 | bool = false; |
173 | bool = true; |
174 | bool = false; |
175 | int = -1; |
176 | qreal = 0; |
177 | qreal = 0; |
178 | qreal = 0; |
179 | qreal = 0; |
180 | qreal = -1; |
181 | qreal = 0; |
182 | qreal = 0; |
183 | qreal = 0; |
184 | qreal = 0; |
185 | QPointF ; |
186 | TransitionState = NoTransition; |
187 | QQuickPopup::ClosePolicy = DefaultClosePolicy; |
188 | QQuickItem * = nullptr; |
189 | QQuickItem * = nullptr; |
190 | QPointer<QQuickWindow> ; |
191 | QQuickTransition * = nullptr; |
192 | QQuickTransition * = nullptr; |
193 | QQuickPopupItem * = nullptr; |
194 | QQuickPopupPositioner * = nullptr; |
195 | QList<QQuickStateAction> ; |
196 | QList<QQuickStateAction> ; |
197 | QQuickPopupTransitionManager ; |
198 | QQuickPopupAnchors * = nullptr; |
199 | qreal = 0; |
200 | qreal = 0; |
201 | |
202 | friend class QQuickPopupTransitionManager; |
203 | }; |
204 | |
205 | QT_END_NAMESPACE |
206 | |
207 | #endif // QQUICKPOPUP_P_P_H |
208 | |