]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/bookmarkssidebarpage.h
Patch by Luca Gugelmann: get rid of any mainwindow dependency from the sidebars.
[dolphin.git] / src / bookmarkssidebarpage.h
index 3eb9a55a0df9fcfee0d8aefb0ea21cb4be46f5a5..c50585ccbbd98141c53edac23dae4d3fb5101d50 100644 (file)
 #ifndef _BOOKMARKSSIDEBARPAGE_H_
 #define _BOOKMARKSSIDEBARPAGE_H_
 
-#include <sidebarpage.h>
 #include <q3listbox.h>
 //Added by qt3to4:
 #include <QPaintEvent>
 #include <QPixmap>
 
+#include "sidebarpage.h"
+
 class KUrl;
 class BookmarksListBox;
 
@@ -41,12 +42,11 @@ class BookmarksSidebarPage : public SidebarPage
         Q_OBJECT
 
 public:
-    BookmarksSidebarPage(DolphinMainWindow *mainWindow, QWidget* parent=0);
+    BookmarksSidebarPage(QWidget* parent=0);
     virtual ~BookmarksSidebarPage();
 
-protected:
-    /** @see SidebarPage::activeViewChanged() */
-    virtual void activeViewChanged();
+public slots:
+       void setUrl(const KUrl& url);
 
 private slots:
     /** Fills the listbox with the bookmarks stored in DolphinSettings. */
@@ -61,12 +61,6 @@ private slots:
     /** @see QListBox::slotContextMenuRequested */
     void slotContextMenuRequested(Q3ListBoxItem* item, const QPoint& pos);
 
-    /**
-     * Is invoked whenever the Url of the active view has been changed. Adjusts
-     * the selection of the listbox to the bookmark which is part of the current Url.
-     */
-    void slotUrlChanged(const KUrl& url);
-
 private:
     /**
      * Updates the selection dependent from the given Url \a url. The
@@ -77,12 +71,6 @@ private:
      */
     void adjustSelection(const KUrl& url);
 
-    /**
-     * Connects to signals from the currently active Dolphin view to get
-     * informed about Url and bookmark changes.
-     */
-    void connectToActiveView();
-
     BookmarksListBox* m_bookmarksList;
 };