summaryrefslogtreecommitdiff
path: root/src/bookmarks.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-01-28 15:58:37 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-01-28 15:58:37 +0100
commitd467ccf90fb3e8c851db97c44f551aeaa9fa289f (patch)
tree3f5e572c43101d680d20abcd6ffaabb7a3248aa7 /src/bookmarks.h
parentupdated TODO (diff)
downloadrekonq-d467ccf90fb3e8c851db97c44f551aeaa9fa289f.tar.xz
New BookmarkBar!! 1st version, Yeah!!
Diffstat (limited to 'src/bookmarks.h')
-rw-r--r--src/bookmarks.h25
1 files changed, 8 insertions, 17 deletions
diff --git a/src/bookmarks.h b/src/bookmarks.h
index 5aa384a1..2bdfab0a 100644
--- a/src/bookmarks.h
+++ b/src/bookmarks.h
@@ -26,6 +26,7 @@
#include <KBookmarkMenu>
#include <KUrl>
+#include <KMenu>
#include <KActionCollection>
#include <KMainWindow>
@@ -35,7 +36,7 @@ class OwnBookMarks : public QObject , public KBookmarkOwner
{
Q_OBJECT
public:
- OwnBookMarks(KMainWindow * );
+ OwnBookMarks(KMainWindow *);
virtual void openBookmark (const KBookmark & , Qt::MouseButtons , Qt::KeyboardModifiers );
@@ -52,29 +53,19 @@ private:
// ------------------------------------------------------------------------------
-class BookmarksMenu : public KMenu
+class BookmarksProvider : public QObject
{
Q_OBJECT
public:
- BookmarksMenu(KMainWindow*, KBookmarkManager *);
+ BookmarksProvider(KMainWindow*);
-private:
- OwnBookMarks *m_owner;
- KActionCollection *m_ac;
- KBookmarkMenu *m_menu;
-};
-
-// ------------------------------------------------------------------------------
-
-class BookmarksLine : public QObject
-{
-Q_OBJECT
-public:
- BookmarksLine(KBookmarkManager *, KToolBar *toolbar);
+ void provideBmToolbar(KToolBar*);
+ KMenu *bookmarksMenu();
private:
+ KMainWindow *m_parent;
OwnBookMarks *m_owner;
+ KBookmarkManager *m_manager;
KActionCollection *m_ac;
};
-
#endif