#include "dolphinview.h"
-#include <kparts/part.h>
#include <kfileitem.h>
#include <kfileitemdelegate.h>
#include <kio/job.h>
class FilterBar;
class KUrl;
-class KDirModel;
+class DolphinModel;
class KUrlNavigator;
class DolphinDirLister;
class DolphinMainWindow;
void changeNameFilter(const QString& nameFilter);
/**
- * Opens the context menu on the current mouse postition.
+ * Opens the context menu on the current mouse position.
* @item File item context. If item is 0, the context menu
* should be applied to \a url.
* @url URL which contains \a item.
*/
void activate();
+ /**
+ * Restores the current view to show \a url and assures
+ * that the root URL of the view is respected.
+ */
+ void restoreView(const KUrl& url);
+
+ /**
+ * Saves the root URL of the current URL \a url
+ * into the URL navigator.
+ */
+ void saveRootUrl(const KUrl& url);
+
private:
/**
* Returns the default text of the status bar, if no item is
FilterBar* m_filterBar;
DolphinStatusBar* m_statusBar;
- KDirModel* m_dirModel;
+ DolphinModel* m_dolphinModel;
DolphinDirLister* m_dirLister;
DolphinSortFilterProxyModel* m_proxyModel;
};