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 kbookmarkcontextmenu.h KBookmarkContextMenu |
22 | * |
23 | * A context menu for a bookmark. |
24 | */ |
25 | class KBOOKMARKSWIDGETS_EXPORT : public QMenu |
26 | { |
27 | Q_OBJECT |
28 | |
29 | public: |
30 | (const KBookmark &bm, KBookmarkManager *manager, KBookmarkOwner *owner, QWidget *parent = nullptr); |
31 | () override; |
32 | virtual void (); |
33 | |
34 | /** |
35 | * Set this to true to make any "Edit Bookmarks" dialog |
36 | * show UI elements that are specific to browsers. |
37 | * |
38 | * @since 6.0 |
39 | */ |
40 | void (bool browserMode); |
41 | |
42 | /** |
43 | * Whether any "Edit Bookmarks" dialog shows UI elements |
44 | * that are specific to browsers. |
45 | * |
46 | * @since 6.0 |
47 | */ |
48 | bool () const; |
49 | |
50 | public Q_SLOTS: |
51 | void (); |
52 | void (); |
53 | void (); |
54 | void (); |
55 | void (); |
56 | void (); |
57 | |
58 | protected: |
59 | void (); |
60 | void (); |
61 | void (); |
62 | void (); |
63 | void (); |
64 | |
65 | KBookmarkManager *() const; |
66 | KBookmarkOwner *() const; |
67 | KBookmark () const; |
68 | |
69 | private Q_SLOTS: |
70 | KBOOKMARKS_NO_EXPORT void (); |
71 | |
72 | private: |
73 | // TODO KF6 dptr it |
74 | const KBookmark ; |
75 | KBookmarkManager *const ; |
76 | KBookmarkOwner *const ; |
77 | bool = false; |
78 | }; |
79 | |
80 | #endif |
81 | |