| 1 | // Copyright (C) 2017 The Qt Company Ltd. |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
| 3 | |
| 4 | #ifndef QQUICKPOPUP_P_P_H |
| 5 | #define |
| 6 | |
| 7 | // |
| 8 | // W A R N I N G |
| 9 | // ------------- |
| 10 | // |
| 11 | // This file is not part of the Qt API. It exists purely as an |
| 12 | // implementation detail. This header file may change from version to |
| 13 | // version without notice, or even be removed. |
| 14 | // |
| 15 | // We mean it. |
| 16 | // |
| 17 | |
| 18 | #include <QtQuickTemplates2/private/qquickpopup_p.h> |
| 19 | #include <QtQuickTemplates2/private/qquickcontrol_p.h> |
| 20 | #include <QtQuickTemplates2/private/qquicktheme_p.h> |
| 21 | |
| 22 | #include <QtCore/private/qobject_p.h> |
| 23 | #include <QtQuick/qquickitem.h> |
| 24 | #include <QtQuick/private/qquickitemchangelistener_p.h> |
| 25 | #include <QtQuick/private/qquicktransitionmanager_p_p.h> |
| 26 | #include <QtQuick/private/qquickitem_p.h> |
| 27 | |
| 28 | #include <QtCore/qpointer.h> |
| 29 | |
| 30 | QT_BEGIN_NAMESPACE |
| 31 | |
| 32 | class QQuickTransition; |
| 33 | class QQuickTransitionManager; |
| 34 | class ; |
| 35 | class ; |
| 36 | class ; |
| 37 | class ; |
| 38 | class QQuickPopupPrivate; |
| 39 | class ; |
| 40 | |
| 41 | class Q_QUICKTEMPLATES2_EXPORT : public QQuickTransitionManager |
| 42 | { |
| 43 | public: |
| 44 | (QQuickPopupPrivate *); |
| 45 | |
| 46 | void (); |
| 47 | void (); |
| 48 | |
| 49 | protected: |
| 50 | void () override; |
| 51 | |
| 52 | private: |
| 53 | QQuickPopupPrivate * = nullptr; |
| 54 | }; |
| 55 | |
| 56 | class Q_QUICKTEMPLATES2_EXPORT |
| 57 | : public QObjectPrivate |
| 58 | , public QQuickItemChangeListener |
| 59 | , public QQuickPaletteProviderPrivateBase<QQuickPopup, QQuickPopupPrivate> |
| 60 | { |
| 61 | public: |
| 62 | Q_DECLARE_PUBLIC(QQuickPopup) |
| 63 | |
| 64 | (); |
| 65 | |
| 66 | static QQuickPopupPrivate *(QQuickPopup *) |
| 67 | { |
| 68 | return popup->d_func(); |
| 69 | } |
| 70 | |
| 71 | QQmlListProperty<QObject> (); |
| 72 | QQmlListProperty<QQuickItem> (); |
| 73 | |
| 74 | void (); |
| 75 | void (); |
| 76 | bool (const QPointF &pos, QQuickPopup::ClosePolicy flags); |
| 77 | |
| 78 | bool (const QPointF &scenePos) const; |
| 79 | |
| 80 | #if QT_CONFIG(quicktemplates2_multitouch) |
| 81 | virtual bool (const QTouchEvent::TouchPoint &point); |
| 82 | #endif |
| 83 | virtual bool (QQuickItem *item, const QPointF &point) const; |
| 84 | |
| 85 | virtual bool handlePress(QQuickItem* item, const QPointF &point, ulong timestamp); |
| 86 | virtual bool handleMove(QQuickItem* item, const QPointF &point, ulong timestamp); |
| 87 | virtual bool handleRelease(QQuickItem* item, const QPointF &point, ulong timestamp); |
| 88 | virtual bool handleReleaseWithoutGrab(const QEventPoint &) { return false; } |
| 89 | virtual void handleUngrab(); |
| 90 | |
| 91 | bool handleMouseEvent(QQuickItem *item, QMouseEvent *event); |
| 92 | bool handleHoverEvent(QQuickItem *item, QHoverEvent *event); |
| 93 | #if QT_CONFIG(quicktemplates2_multitouch) |
| 94 | bool handleTouchEvent(QQuickItem *item, QTouchEvent *event); |
| 95 | #endif |
| 96 | |
| 97 | QMarginsF () const; |
| 98 | QPointF () const; |
| 99 | void (const QPointF &windowPos); |
| 100 | void (); |
| 101 | |
| 102 | bool () const; |
| 103 | void adjustPopupItemParentAndWindow(); |
| 104 | void (); |
| 105 | QQuickItem *(QQmlComponent *component, QQuickPopup *, QQuickItem *parent) const; |
| 106 | void (); |
| 107 | void (); |
| 108 | void (const QPalette& parentPalette); |
| 109 | |
| 110 | virtual QQuickPopup::PopupType () const; |
| 111 | |
| 112 | virtual void (); |
| 113 | virtual void (); |
| 114 | virtual void (); |
| 115 | |
| 116 | virtual bool (); |
| 117 | virtual bool (); |
| 118 | virtual void (); |
| 119 | virtual void (); |
| 120 | |
| 121 | virtual void (); |
| 122 | |
| 123 | virtual Qt::WindowFlags () const; |
| 124 | |
| 125 | QMarginsF () const; |
| 126 | |
| 127 | void (qreal value, bool reset = false); |
| 128 | void (qreal value, bool reset = false); |
| 129 | void (qreal value, bool reset = false); |
| 130 | void (qreal value, bool reset = false); |
| 131 | |
| 132 | QQuickPopupAnchors *(); |
| 133 | virtual QQuickPopupPositioner *(); |
| 134 | |
| 135 | void (QQuickWindow *window); |
| 136 | void (QQuickItem *item) override; |
| 137 | |
| 138 | QPalette () const override; |
| 139 | |
| 140 | void (const QPalette &parentPalette) override; |
| 141 | |
| 142 | enum { |
| 143 | , , |
| 144 | }; |
| 145 | |
| 146 | static const QQuickPopup::ClosePolicy ; |
| 147 | |
| 148 | bool = false; |
| 149 | bool = false; |
| 150 | bool = false; |
| 151 | bool = false; |
| 152 | bool = false; |
| 153 | bool = true; |
| 154 | bool = false; |
| 155 | bool = false; |
| 156 | bool = false; |
| 157 | bool = false; |
| 158 | bool = false; |
| 159 | bool = false; |
| 160 | bool = false; |
| 161 | bool = false; |
| 162 | bool = false; |
| 163 | bool = false; |
| 164 | bool = true; |
| 165 | bool = true; |
| 166 | bool = true; |
| 167 | bool = true; |
| 168 | bool = false; |
| 169 | bool = true; |
| 170 | bool = false; |
| 171 | bool = false; |
| 172 | bool = false; |
| 173 | bool = false; |
| 174 | bool = false; |
| 175 | bool = false; |
| 176 | int = -1; |
| 177 | qreal = 0; |
| 178 | qreal = 0; |
| 179 | QPointF ; |
| 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 | QQuickPopupWindow * = nullptr; |
| 195 | QQuickPopupPositioner * = nullptr; |
| 196 | QList<QQuickStateAction> ; |
| 197 | QList<QQuickStateAction> ; |
| 198 | QQuickPopupTransitionManager ; |
| 199 | QQuickPopupAnchors * = nullptr; |
| 200 | qreal = 0; |
| 201 | qreal = 0; |
| 202 | qreal = 0; |
| 203 | QString ; |
| 204 | QQuickPopup::PopupType = QQuickPopup::Item; |
| 205 | |
| 206 | friend class QQuickPopupTransitionManager; |
| 207 | }; |
| 208 | |
| 209 | QT_END_NAMESPACE |
| 210 | |
| 211 | #endif // QQUICKPOPUP_P_P_H |
| 212 | |