]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/sidebarpage.cpp
There are some extractable strings in subdirs too.
[dolphin.git] / src / sidebarpage.cpp
index 5a57ad2824bdb4df6a58955c25250efae0115c41..594f59f24bcad6df0d01b407d0a43aef4b8a330e 100644 (file)
@@ -1,5 +1,6 @@
 /***************************************************************************
  *   Copyright (C) 2006 by Cvetoslav Ludmiloff <ludmiloff@gmail.com>       *
+ *   Copyright (C) 2006 by Peter Penz <peter.penz@gmx.at>                  *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
  *   it under the terms of the GNU General Public License as published by  *
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program; if not, write to the                         *
  *   Free Software Foundation, Inc.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA          *
  ***************************************************************************/
 
 #include "sidebarpage.h"
-#include "dolphinmainwindow.h"
+#include <QtGui/QWidget>
+#include <kfileitem.h>
+#include <kurl.h>
 
-SidebarPage::SidebarPage(DolphinMainWindow *mainWindow, QWidget* parent) :
+SidebarPage::SidebarPage(QWidget* parent) :
     QWidget(parent),
-    m_mainWindow(mainWindow)
+    m_url(KUrl())
 {
-    connect(mainWindow, SIGNAL(activeViewChanged()),
-            this, SLOT(activeViewChanged()));
 }
 
 SidebarPage::~SidebarPage()
 {
 }
 
-void SidebarPage::activeViewChanged()
+const KUrl& SidebarPage::url() const
 {
+    return m_url;
 }
 
-DolphinMainWindow* SidebarPage::mainWindow() const {
-    return m_mainWindow;
+void SidebarPage::setUrl(const KUrl& url)
+{
+    m_url = url;
 }
 
 #include "sidebarpage.moc"