Changeset View
Changeset View
Standalone View
Standalone View
src/dolphinbookmarkhandler.h
Show All 30 Lines | |||||
31 | class QMenu; | 31 | class QMenu; | ||
32 | 32 | | |||
33 | class DolphinBookmarkHandler : public QObject, public KBookmarkOwner | 33 | class DolphinBookmarkHandler : public QObject, public KBookmarkOwner | ||
34 | { | 34 | { | ||
35 | Q_OBJECT | 35 | Q_OBJECT | ||
36 | public: | 36 | public: | ||
37 | DolphinBookmarkHandler(DolphinMainWindow *mainWindow, KActionCollection *collection, QMenu *menu, QObject *parent); | 37 | DolphinBookmarkHandler(DolphinMainWindow *mainWindow, KActionCollection *collection, QMenu *menu, QObject *parent); | ||
38 | ~DolphinBookmarkHandler() override; | 38 | ~DolphinBookmarkHandler() override; | ||
39 | void fillControlMenu(QMenu *menu, KActionCollection *collection); | 39 | | ||
40 | private: | 40 | private: | ||
41 | QString currentTitle() const override; | 41 | QString currentTitle() const override; | ||
42 | QUrl currentUrl() const override; | 42 | QUrl currentUrl() const override; | ||
43 | QString currentIcon() const override; | 43 | QString currentIcon() const override; | ||
44 | bool supportsTabs() const override; | 44 | bool supportsTabs() const override; | ||
45 | QList<FutureBookmark> currentBookmarkList() const override; | 45 | QList<FutureBookmark> currentBookmarkList() const override; | ||
46 | bool enableOption(BookmarkOption option) const override; | 46 | bool enableOption(BookmarkOption option) const override; | ||
47 | void openBookmark(const KBookmark &bookmark, Qt::MouseButtons, Qt::KeyboardModifiers) override; | 47 | void openBookmark(const KBookmark &bookmark, Qt::MouseButtons, Qt::KeyboardModifiers) override; | ||
48 | void openFolderinTabs(const KBookmarkGroup &bookmarkGroup) override; | 48 | void openFolderinTabs(const KBookmarkGroup &bookmarkGroup) override; | ||
49 | void openInNewTab(const KBookmark &bookmark) override; | 49 | void openInNewTab(const KBookmark &bookmark) override; | ||
50 | void openInNewWindow(const KBookmark &bookmark) override; | 50 | void openInNewWindow(const KBookmark &bookmark) override; | ||
51 | static QString title(DolphinViewContainer* viewContainer); | 51 | static QString title(DolphinViewContainer* viewContainer); | ||
52 | static QUrl url(DolphinViewContainer* viewContainer); | 52 | static QUrl url(DolphinViewContainer* viewContainer); | ||
53 | static QString icon(DolphinViewContainer* viewContainer); | 53 | static QString icon(DolphinViewContainer* viewContainer); | ||
54 | private: | 54 | private: | ||
55 | DolphinMainWindow* m_mainWindow; | 55 | DolphinMainWindow* m_mainWindow; | ||
56 | KBookmarkManager *m_bookmarkManager; | 56 | KBookmarkManager *m_bookmarkManager; | ||
57 | QScopedPointer<KBookmarkMenu> m_bookmarkMenu; | 57 | QScopedPointer<KBookmarkMenu> m_bookmarkMenu; | ||
58 | QScopedPointer<KBookmarkMenu> m_bookmarkControlMenu; | | |||
59 | }; | 58 | }; | ||
60 | 59 | | |||
61 | #endif // DOLPHINBOOKMARKHANDLER_H | 60 | #endif // DOLPHINBOOKMARKHANDLER_H |