summaryrefslogtreecommitdiff
path: root/src/bookmarks/bookmarkspanel.h
diff options
context:
space:
mode:
authorYoann Laissus <yoann.laissus@gmail.com>2010-03-23 22:56:26 +0100
committerYoann Laissus <yoann.laissus@gmail.com>2010-03-23 22:56:26 +0100
commite9670c51fef2c8447a04a30778a24646df4ef915 (patch)
tree0a6fcb5bc2696cfb3a4ed313e5bbb57a7a704f1d /src/bookmarks/bookmarkspanel.h
parentDoing "load finished" operations just on ok loading is really NOT (diff)
downloadrekonq-e9670c51fef2c8447a04a30778a24646df4ef915.tar.xz
A lot of fix and improvements for the bookmark and the history panels
Diffstat (limited to 'src/bookmarks/bookmarkspanel.h')
-rw-r--r--src/bookmarks/bookmarkspanel.h36
1 files changed, 34 insertions, 2 deletions
diff --git a/src/bookmarks/bookmarkspanel.h b/src/bookmarks/bookmarkspanel.h
index f5376d98..ea33e265 100644
--- a/src/bookmarks/bookmarkspanel.h
+++ b/src/bookmarks/bookmarkspanel.h
@@ -31,10 +31,17 @@
// Local Includes
#include "rekonqprivate_export.h"
+#include "application.h"
+#include "urltreeview.h"
// Qt Includes
#include <QDockWidget>
+// KDE Includes
+#include <KBookmark>
+#include <KActionCollection>
+#include <KMenu>
+
// Forward Declarations
class KUrl;
class QModelIndex;
@@ -49,13 +56,38 @@ public:
~BookmarksPanel();
signals:
- void openUrl(const KUrl &);
+ void openUrl(const KUrl &, const Rekonq::OpenType &);
+ void itemHovered(const QString &);
+ void saveExpFinished(const QString &);
+ void saveRequested();
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 openAll();
+ void editBookmark();
+ void newBookmark();
+ void newBookmarkGroup();
+ void newSeparator();
+ void bookmarkPage();
+ void autoExpand(const QModelIndex &root = QModelIndex());
+ void onCollapse(const QModelIndex &index);
+ void onExpand(const QModelIndex &index);
+ void callAutoExpand();
private:
void setup();
+ void setupActions();
+ void contextMenuSeparator(const QPoint &pos);
+ KBookmark bookmarkForIndex(const QModelIndex &index);
+
+ UrlTreeView *m_treeView;
+ QStringList m_expList;
+ KActionCollection m_ac;
+ KMenu *menu;
+ bool expandLock;
};
#endif // BOOKMARKSPANEL_H