| 1 | /* |
| 2 | This file is part of the KDE project |
| 3 | SPDX-FileCopyrightText: 1998, 1999 Torben Weis <weis@kde.org> |
| 4 | SPDX-FileCopyrightText: 2006 Daniel Teske <teske@squorn.de> |
| 5 | |
| 6 | SPDX-License-Identifier: LGPL-2.0-or-later |
| 7 | */ |
| 8 | |
| 9 | #ifndef KBOOKMARKCONTEXTMENU_H |
| 10 | #define |
| 11 | |
| 12 | #include <QMenu> |
| 13 | |
| 14 | #include "kbookmark.h" |
| 15 | #include <kbookmarkswidgets_export.h> |
| 16 | |
| 17 | class KBookmarkManager; |
| 18 | class KBookmarkOwner; |
| 19 | |
| 20 | /*! |
| 21 | * \class KBookmarkContextMenu |
| 22 | * \inmodule KBookmarksWidgets |
| 23 | * |
| 24 | * \brief A context menu for a bookmark. |
| 25 | */ |
| 26 | class KBOOKMARKSWIDGETS_EXPORT : public QMenu |
| 27 | { |
| 28 | Q_OBJECT |
| 29 | |
| 30 | public: |
| 31 | /*! |
| 32 | */ |
| 33 | (const KBookmark &bm, KBookmarkManager *manager, KBookmarkOwner *owner, QWidget *parent = nullptr); |
| 34 | () override; |
| 35 | |
| 36 | /*! |
| 37 | */ |
| 38 | virtual void (); |
| 39 | |
| 40 | /*! |
| 41 | * Set this to true to make any "Edit Bookmarks" dialog |
| 42 | * show UI elements that are specific to browsers. |
| 43 | * |
| 44 | * \since 6.0 |
| 45 | */ |
| 46 | void (bool browserMode); |
| 47 | |
| 48 | /*! |
| 49 | * Whether any "Edit Bookmarks" dialog shows UI elements |
| 50 | * that are specific to browsers. |
| 51 | * |
| 52 | * \since 6.0 |
| 53 | */ |
| 54 | bool () const; |
| 55 | |
| 56 | public Q_SLOTS: |
| 57 | /*! |
| 58 | */ |
| 59 | void (); |
| 60 | |
| 61 | /*! |
| 62 | */ |
| 63 | void (); |
| 64 | |
| 65 | /*! |
| 66 | */ |
| 67 | void (); |
| 68 | |
| 69 | /*! |
| 70 | */ |
| 71 | void (); |
| 72 | |
| 73 | /*! |
| 74 | */ |
| 75 | void (); |
| 76 | |
| 77 | /*! |
| 78 | */ |
| 79 | void (); |
| 80 | |
| 81 | protected: |
| 82 | /*! |
| 83 | */ |
| 84 | void (); |
| 85 | |
| 86 | /*! |
| 87 | */ |
| 88 | void (); |
| 89 | |
| 90 | /*! |
| 91 | */ |
| 92 | void (); |
| 93 | |
| 94 | /*! |
| 95 | */ |
| 96 | void (); |
| 97 | |
| 98 | /*! |
| 99 | */ |
| 100 | void (); |
| 101 | |
| 102 | /*! |
| 103 | */ |
| 104 | KBookmarkManager *() const; |
| 105 | |
| 106 | /*! |
| 107 | */ |
| 108 | KBookmarkOwner *() const; |
| 109 | |
| 110 | /*! |
| 111 | */ |
| 112 | KBookmark () const; |
| 113 | |
| 114 | private Q_SLOTS: |
| 115 | KBOOKMARKS_NO_EXPORT void (); |
| 116 | |
| 117 | private: |
| 118 | // TODO KF6 dptr it |
| 119 | const KBookmark ; |
| 120 | KBookmarkManager *const ; |
| 121 | KBookmarkOwner *const ; |
| 122 | bool = false; |
| 123 | }; |
| 124 | |
| 125 | #endif |
| 126 | |