summaryrefslogtreecommitdiff
path: root/src/bookmarks/bookmarksmanager.h
diff options
context:
space:
mode:
authorJon Ander Peñalba <jonan88@gmail.com>2010-08-17 22:32:35 +0200
committerJon Ander Peñalba <jonan88@gmail.com>2010-08-19 12:53:52 +0200
commit63dac5edf257b0c5bdee44212769da132220c0a0 (patch)
tree43584d8a98d0f69fad2da476da2b70bda38fa45c /src/bookmarks/bookmarksmanager.h
parentMinor improvements in the insertion and deletion of bookmarks code (diff)
downloadrekonq-63dac5edf257b0c5bdee44212769da132220c0a0.tar.xz
Create and store all bookmark actions in BookmarkOwner
Diffstat (limited to 'src/bookmarks/bookmarksmanager.h')
-rw-r--r--src/bookmarks/bookmarksmanager.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/bookmarks/bookmarksmanager.h b/src/bookmarks/bookmarksmanager.h
index 19bfe5d2..af2cb158 100644
--- a/src/bookmarks/bookmarksmanager.h
+++ b/src/bookmarks/bookmarksmanager.h
@@ -77,6 +77,26 @@ public:
BookmarkOwner(QObject *parent = 0);
virtual ~BookmarkOwner() {}
+ enum BookmarkAction
+ {
+ OPEN = 0,
+ OPEN_IN_TAB,
+ OPEN_IN_WINDOW,
+ OPEN_FOLDER,
+ BOOKMARK_PAGE,
+ NEW_FOLDER,
+ NEW_SEPARATOR,
+ COPY,
+ EDIT,
+ DELETE,
+ NUM_ACTIONS
+ };
+
+ /**
+ * @return the action or 0 if it doesn't exist.
+ */
+ KAction* action(const BookmarkAction &bmAction);
+
/**
* This function is called when a bookmark is selected and belongs to
* the ancestor class.
@@ -158,6 +178,14 @@ signals:
*
*/
void openUrl(const KUrl &, const Rekonq::OpenType &);
+
+private:
+ QVector<KAction*> actions;
+
+ void setupActions();
+ void createAction(const BookmarkAction &action,
+ const QString &text, const QString &icon,
+ const QString &help, const char *slot);
};