| 1 | // Copyright (C) 2024 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 QQUICKSIDEBAR_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 <QtQml/qqmlcomponent.h> |
| 19 | #include <QtQuickTemplates2/private/qquickcontainer_p.h> |
| 20 | #include <QtCore/qstandardpaths.h> |
| 21 | |
| 22 | #include "qquickfiledialogimpl_p.h" |
| 23 | |
| 24 | QT_BEGIN_NAMESPACE |
| 25 | |
| 26 | class ; |
| 27 | |
| 28 | class Q_QUICKDIALOGS2QUICKIMPL_EXPORT : public QQuickContainer |
| 29 | { |
| 30 | Q_OBJECT |
| 31 | Q_PROPERTY(QQuickDialog *dialog READ dialog WRITE setDialog NOTIFY dialogChanged FINAL) |
| 32 | Q_PROPERTY(QList<QStandardPaths::StandardLocation> folderPaths READ folderPaths WRITE setFolderPaths NOTIFY folderPathsChanged FINAL) |
| 33 | Q_PROPERTY(QList<QStandardPaths::StandardLocation> effectiveFolderPaths READ effectiveFolderPaths NOTIFY effectiveFolderPathsChanged FINAL) |
| 34 | Q_PROPERTY(QList<QUrl> favoritePaths READ favoritePaths NOTIFY favoritePathsChanged FINAL) |
| 35 | Q_PROPERTY(QQmlComponent *buttonDelegate READ buttonDelegate WRITE setButtonDelegate NOTIFY buttonDelegateChanged FINAL) |
| 36 | Q_PROPERTY(QQmlComponent *separatorDelegate READ separatorDelegate WRITE setSeparatorDelegate NOTIFY separatorDelegateChanged FINAL) |
| 37 | Q_PROPERTY(QQmlComponent *addFavoriteDelegate READ addFavoriteDelegate WRITE setAddFavoriteDelegate NOTIFY addFavoriteDelegateChanged FINAL) |
| 38 | QML_NAMED_ELEMENT(SideBar) |
| 39 | QML_ADDED_IN_VERSION(6, 9) |
| 40 | |
| 41 | public: |
| 42 | explicit (QQuickItem *parent = nullptr); |
| 43 | (); |
| 44 | |
| 45 | QQuickDialog *() const; |
| 46 | void (QQuickDialog *dialog); |
| 47 | |
| 48 | QList<QStandardPaths::StandardLocation> () const; |
| 49 | void setFolderPaths(const QList<QStandardPaths::StandardLocation>& folderPaths); |
| 50 | |
| 51 | QList<QStandardPaths::StandardLocation> () const; |
| 52 | |
| 53 | QList<QUrl> () const; |
| 54 | |
| 55 | QQmlComponent *() const; |
| 56 | void (QQmlComponent *delegate); |
| 57 | |
| 58 | QQmlComponent *() const; |
| 59 | void (QQmlComponent *delegate); |
| 60 | |
| 61 | QQmlComponent *() const; |
| 62 | void (QQmlComponent *delegate); |
| 63 | |
| 64 | |
| 65 | Q_SIGNALS: |
| 66 | void (); |
| 67 | void (); |
| 68 | void (); |
| 69 | void (); |
| 70 | void (); |
| 71 | void (); |
| 72 | void (); |
| 73 | |
| 74 | protected: |
| 75 | void () override; |
| 76 | |
| 77 | private: |
| 78 | void (const QList<QUrl>& favoritePaths); |
| 79 | |
| 80 | Q_DISABLE_COPY() |
| 81 | Q_DECLARE_PRIVATE(QQuickSideBar) |
| 82 | }; |
| 83 | |
| 84 | QT_END_NAMESPACE |
| 85 | |
| 86 | #endif // QQUICKSIDEBAR_P_H |
| 87 | |