summaryrefslogtreecommitdiff
path: root/src/bookmarks/bookmarkspanel.h
diff options
context:
space:
mode:
authormegabigbug <megabigbug@arrakis.(none)>2010-03-29 18:36:34 +0200
committermegabigbug <megabigbug@arrakis.(none)>2010-03-29 18:36:34 +0200
commit3be011352dc0f354723269cbc8f07f4d5fbcc3d6 (patch)
treebe795a064f8723c0d58448d77094beebb536f5e6 /src/bookmarks/bookmarkspanel.h
parentMerge branch 'master' of git://gitorious.org/rekonq/mainline (diff)
parentrekonq 0.4.57 (diff)
downloadrekonq-3be011352dc0f354723269cbc8f07f4d5fbcc3d6.tar.xz
Merge branch 'master' of git://gitorious.org/rekonq/mainline
Diffstat (limited to 'src/bookmarks/bookmarkspanel.h')
-rw-r--r--src/bookmarks/bookmarkspanel.h32
1 files changed, 30 insertions, 2 deletions
diff --git a/src/bookmarks/bookmarkspanel.h b/src/bookmarks/bookmarkspanel.h
index f5376d98..f8528b71 100644
--- a/src/bookmarks/bookmarkspanel.h
+++ b/src/bookmarks/bookmarkspanel.h
@@ -31,10 +31,16 @@
// Local Includes
#include "rekonqprivate_export.h"
+#include "application.h"
+#include "urltreeview.h"
// Qt Includes
#include <QDockWidget>
+// KDE Includes
+#include <KBookmark>
+#include <KActionCollection>
+
// Forward Declarations
class KUrl;
class QModelIndex;
@@ -49,13 +55,35 @@ public:
~BookmarksPanel();
signals:
- void openUrl(const KUrl &);
+ void openUrl(const KUrl &, const Rekonq::OpenType &);
+ void itemHovered(const QString &);
+ void saveOnlyRequested();
private slots:
- void bookmarkActivated( const QModelIndex &index );
+ void contextMenuBk(const QPoint &pos);
+ void contextMenuBkGroup(const QPoint &pos, const bool emptyGroup = false);
+ void contextMenuBlank(const QPoint &pos);
+ void deleteBookmark();
+ void openFolderInTabs();
+ void editBookmark();
+ void newBookmarkGroup();
+ void newSeparator();
+ void onCollapse(const QModelIndex &index);
+ void onExpand(const QModelIndex &index);
+ void bookmarkCurrentPage();
+ void loadFoldedState(const QModelIndex &root);
+ void loadFoldedState();
+
private:
void setup();
+ void setupActions();
+ void contextMenuSeparator(const QPoint &pos);
+ KBookmark bookmarkForIndex(const QModelIndex &index);
+
+ UrlTreeView *m_treeView;
+ KActionCollection *m_ac;
+ bool m_loadingState;
};
#endif // BOOKMARKSPANEL_H