summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/webwindow/rekonqui.rc27
-rw-r--r--src/webwindow/webwindow.cpp42
-rw-r--r--src/webwindow/webwindow.h2
3 files changed, 58 insertions, 13 deletions
diff --git a/src/webwindow/rekonqui.rc b/src/webwindow/rekonqui.rc
index 798f6d4e..c6d28455 100644
--- a/src/webwindow/rekonqui.rc
+++ b/src/webwindow/rekonqui.rc
@@ -1,14 +1,18 @@
<?xml version="1.0"?>
<!DOCTYPE gui SYSTEM "kpartgui.dtd">
-<gui name="rekonq" version="65">
+<gui name="rekonq" version="66">
<!--- =========== Rekonq Menu ============= -->
<Menu name="rekonqMenu" noMerge="1">
- <Action name="new_tab" />
- <Action name="new_window" />
- <Action name="private_browsing" />
+ <Menu name="openMenu" noMerge="1">
+ <text>&amp;Open</text>
+ <Action name="new_tab" />
+ <Action name="new_window" />
+ <Action name="private_browsing" />
+ <Separator/>
+ <Action name="file_open" />
+ </Menu>
<Separator/>
- <Action name="file_open" />
<Action name="file_save_as" />
<Action name="file_print" />
<Action name="edit_find" />
@@ -37,7 +41,16 @@
</Menu>
<Separator/>
- <Action name="show_bookmarks_toolbar" />
+ <Menu name="bookmarksMenu" icon="bookmarks" noMerge="1">
+ <text>&amp;Bookmarks</text>
+ <Action name="bookmark_add" />
+ <Separator/>
+ <Action name="open_bookmarks_page" />
+ <Action name="show_bookmarks_toolbar" />
+ <Action name="bookmark_edit" />
+ <!-- TODO: would we list all bookmarks, after a separator, here?? -->
+ </Menu>
+ <Action name="open_history_page" />
<Action name="open_downloads_page" />
<Separator/>
<Action name="fullscreen" />
@@ -57,6 +70,8 @@
</Menu>
<Action name="options_configure" />
+ <Separator/>
+ <Action name="file_quit" />
</Menu>
<!--- ====================================== -->
diff --git a/src/webwindow/webwindow.cpp b/src/webwindow/webwindow.cpp
index 697ecba7..06f0ffac 100644
--- a/src/webwindow/webwindow.cpp
+++ b/src/webwindow/webwindow.cpp
@@ -209,21 +209,34 @@ void WebWindow::setupActions()
KStandardAction::quit(rApp, SLOT(queryQuit()), actionCollection());
// Bookmark Toolbar
- a = new KAction(KIcon("bookmarks-bar"), i18n("Bookmarks Toolbar"), this);
+ a = new KAction(KIcon("bookmark-toolbar"), i18n("Bookmarks Toolbar"), this);
a->setCheckable(true);
a->setChecked(ReKonfig::showBookmarksToolbar());
actionCollection()->addAction(QL1S("show_bookmarks_toolbar"), a);
connect(a, SIGNAL(toggled(bool)), this, SLOT(toggleBookmarksToolbar(bool)));
- // Open Downloads page
- a = new KAction(KIcon("download"), i18n("Downloads"), this);
+ // Open special pages
+ // Home
+ a = actionCollection()->addAction(KStandardAction::Home);
+ connect(a, SIGNAL(triggered(Qt::MouseButtons, Qt::KeyboardModifiers)), this, SLOT(openHomePage(Qt::MouseButtons, Qt::KeyboardModifiers)));
+
+ // Downloads
+ a = new KAction(KIcon("download"), i18n("Downloads page"), this);
a->setShortcut(KShortcut(Qt::CTRL + Qt::Key_J));
actionCollection()->addAction(QL1S("open_downloads_page"), a);
connect(a, SIGNAL(triggered(bool)), this, SLOT(openDownloadsPage()));
- // Open Home Page
- a = actionCollection()->addAction(KStandardAction::Home);
- connect(a, SIGNAL(triggered(Qt::MouseButtons, Qt::KeyboardModifiers)), this, SLOT(openHomePage(Qt::MouseButtons, Qt::KeyboardModifiers)));
+ // History
+ a = new KAction(KIcon("view-history"), i18n("History page"), this);
+ a->setShortcut(KShortcut(Qt::CTRL + Qt::Key_H));
+ actionCollection()->addAction(QL1S("open_history_page"), a);
+ connect(a, SIGNAL(triggered(bool)), this, SLOT(openHistoryPage()));
+
+ // Bookmarks
+ a = new KAction(KIcon("bookmarks"), i18n("Bookmarks page"), this);
+ a->setShortcut(KShortcut(Qt::CTRL + Qt::SHIFT + Qt::Key_B));
+ actionCollection()->addAction(QL1S("open_bookmarks_page"), a);
+ connect(a, SIGNAL(triggered(bool)), this, SLOT(openBookmarksPage()));
// find action
a = KStandardAction::find(m_findBar, SLOT(show()), actionCollection());
@@ -285,6 +298,9 @@ void WebWindow::setupActions()
KShortcut bkShortcut(Qt::CTRL + Qt::Key_D);
a->setShortcut(bkShortcut);
+ // Edit bookmarks
+ a = KStandardAction::editBookmarks(BookmarkManager::self(), SLOT(slotEditBookmarks()), actionCollection());
+
// User Agent
a = new KAction(KIcon("preferences-web-browser-identification"), i18n("Browser Identification"), this);
actionCollection()->addAction(QL1S("useragent"), a);
@@ -924,7 +940,19 @@ void WebWindow::checkFocus()
void WebWindow::openDownloadsPage()
{
- rApp->loadUrl( QUrl("about:downloads"), Rekonq::NewTab );
+ rApp->loadUrl( QUrl("about:downloads"), Rekonq::NewFocusedTab );
+}
+
+
+void WebWindow::openHistoryPage()
+{
+ rApp->loadUrl( QUrl("about:history"), Rekonq::NewFocusedTab );
+}
+
+
+void WebWindow::openBookmarksPage()
+{
+ rApp->loadUrl( QUrl("about:bookmarks"), Rekonq::NewFocusedTab );
}
diff --git a/src/webwindow/webwindow.h b/src/webwindow/webwindow.h
index ffd65477..c37704d5 100644
--- a/src/webwindow/webwindow.h
+++ b/src/webwindow/webwindow.h
@@ -128,6 +128,8 @@ private Q_SLOTS:
// special pages
void openDownloadsPage();
+ void openHistoryPage();
+ void openBookmarksPage();
void openHomePage(Qt::MouseButtons, Qt::KeyboardModifiers);
// Tools Menu slots