summaryrefslogtreecommitdiff
path: root/src/bookmarks.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-02-25 12:05:15 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-02-25 12:05:15 +0100
commit5e6be36618dd2e9f9dd64ffd2ed899ec4dc55f2c (patch)
tree2f92d9aae4fccc7145355986a50c49888ec86126 /src/bookmarks.h
parentDocumented API bookmarks && download classes. (diff)
downloadrekonq-5e6be36618dd2e9f9dd64ffd2ed899ec4dc55f2c.tar.xz
1st fixes to bookmarks system, toolbar and menu. Needs care and docs..
Diffstat (limited to 'src/bookmarks.h')
-rw-r--r--src/bookmarks.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/bookmarks.h b/src/bookmarks.h
index 825c0d3a..f9f3e91c 100644
--- a/src/bookmarks.h
+++ b/src/bookmarks.h
@@ -99,6 +99,26 @@ private:
// ------------------------------------------------------------------------------
+/**
+ * This class represent the rekonq bookmarks menu.
+ * It's just a simple class inherited from KBookmarkMenu
+ *
+ * @author Andrea Diamantini <adjam7@gmail.com>
+ * @since 4.x
+ *
+ */
+class BookmarksMenu : public KBookmarkMenu
+{
+Q_OBJECT
+
+public:
+ BookmarksMenu( KBookmarkManager* manager, KBookmarkOwner* owner, KMenu* menu, KActionCollection* ac);
+
+ KMenu *viewContextMenu(QAction* action);
+};
+
+// ------------------------------------------------------------------------------
+
/**
* This class represent the interface to rekonq bookmarks system.
@@ -139,10 +159,16 @@ public:
*/
KMenu *bookmarksMenu();
+public slots:
+ void contextMenu(const QPoint & point);
+
private:
KMainWindow *m_parent;
OwnBookMarks *m_owner;
KBookmarkManager *m_manager;
KActionCollection *m_ac;
+ BookmarksMenu *m_bmMenu;
+ KToolBar *m_bmToolbar;
};
+
#endif