diff options
author | Yoann Laissus <yoann.laissus@gmail.com> | 2010-04-06 12:43:21 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-04-08 00:56:40 +0200 |
commit | a48a5a4157e9af22adb3a7673203ed8ced5ceeab (patch) | |
tree | 0a5763a08fda4f3bc5101455f788d069a6947bb8 /src/bookmarks/bookmarksmanager.h | |
parent | Do not update downloads history when private browsing is enabled. (diff) | |
download | rekonq-a48a5a4157e9af22adb3a7673203ed8ced5ceeab.tar.xz |
- Enable context menu for folders and separators of the bookmark bar
- Use the same context menu for the bookmark panel and the bookmark bar
- Use a list to store the different bookmark bars
- Fix the different crashes when there are more than one window
- When the bookmarks are changed, all the bars are refreshed
Diffstat (limited to 'src/bookmarks/bookmarksmanager.h')
-rw-r--r-- | src/bookmarks/bookmarksmanager.h | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/src/bookmarks/bookmarksmanager.h b/src/bookmarks/bookmarksmanager.h index ace06e95..3c21bc67 100644 --- a/src/bookmarks/bookmarksmanager.h +++ b/src/bookmarks/bookmarksmanager.h @@ -194,6 +194,7 @@ public: */ void setupBookmarkBar(KToolBar *); + void removeToolBar(KToolBar*); /** * @short Get action by name @@ -220,7 +221,7 @@ public: KCompletion *completionObject() const; QString titleForBookmarkUrl(QString url); - + signals: /** * @short This signal is emitted when an url has to be loaded @@ -256,8 +257,30 @@ private: BookmarkOwner *m_owner; KActionCollection *m_actionCollection; BookmarkMenu *m_bookmarkMenu; - KToolBar *m_bookmarkToolBar; + QList<KToolBar*> m_bookmarkToolBars; KCompletion *m_completion; }; + +// ------------------------------------------------------------------------------------------ + + +class BookmarkActionMenu : public KBookmarkActionMenu +{ + Q_OBJECT + +public: + BookmarkActionMenu (const KBookmarkGroup &bm, QObject *parent); + void addFolderActions(); + +private slots: + void openActionInTabs(); + void bookmarkCurrentPage(); + +private: + KBookmarkGroup m_group; + +}; + + #endif |