summaryrefslogtreecommitdiff
path: root/src/bookmarks/bookmarksmanager.h
diff options
context:
space:
mode:
authorYoann Laissus <yoann.laissus@gmail.com>2010-04-06 12:43:21 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-04-08 00:56:40 +0200
commita48a5a4157e9af22adb3a7673203ed8ced5ceeab (patch)
tree0a5763a08fda4f3bc5101455f788d069a6947bb8 /src/bookmarks/bookmarksmanager.h
parentDo not update downloads history when private browsing is enabled. (diff)
downloadrekonq-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.h27
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