X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/81fcd720a2cc095262e52b8a40dd1472d774a415..093efca22dfd247f06e2a669ad968300e71ef08d:/src/dolphinviewcontainer.h diff --git a/src/dolphinviewcontainer.h b/src/dolphinviewcontainer.h index 95be9134c..3cfa907c7 100644 --- a/src/dolphinviewcontainer.h +++ b/src/dolphinviewcontainer.h @@ -23,7 +23,6 @@ #include "dolphinview.h" -#include #include #include #include @@ -38,7 +37,7 @@ class FilterBar; class KUrl; -class KDirModel; +class DolphinModel; class KUrlNavigator; class DolphinDirLister; class DolphinMainWindow; @@ -151,6 +150,11 @@ private slots: */ void updateItemCount(); + /** + * Handles clicking on an item + */ + void slotItemTriggered(const KFileItem& item); + /** * Shows the information for the item \a item inside the statusbar. If the * item is null, the default statusbar information is shown. @@ -172,7 +176,7 @@ private slots: 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. @@ -197,6 +201,18 @@ private slots: */ 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 @@ -226,7 +242,7 @@ private: FilterBar* m_filterBar; DolphinStatusBar* m_statusBar; - KDirModel* m_dirModel; + DolphinModel* m_dolphinModel; DolphinDirLister* m_dirLister; DolphinSortFilterProxyModel* m_proxyModel; };