X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/df6bc98ded7d55b506ba3498490e5894b0b99b23..258bbc01223ce35e6c81733be49eb50b45107b39:/src/dolphinview.h diff --git a/src/dolphinview.h b/src/dolphinview.h index cab9fa560..352841f4a 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -41,17 +41,18 @@ typedef KIO::FileUndoManager::CommandType CommandType; -class DolphinController; class DolphinColumnViewContainer; class DolphinDetailsView; class DolphinIconsView; class DolphinModel; class DolphinSortFilterProxyModel; +class DolphinViewController; class KFilePreviewGenerator; class KAction; class KActionCollection; class KDirLister; class KUrl; +class ViewModeController; class ViewProperties; class DolphinDetailsViewExpander; @@ -112,7 +113,9 @@ public: SortByOwner, SortByGroup, SortByType, - MaxSortEnum = SortByType + SortByDestination, + SortByPath, + MaxSortingEnum = SortByPath }; /** @@ -132,7 +135,7 @@ public: * Returns the current active URL, where all actions are applied. * The URL navigator is synchronized with this URL. */ - const KUrl& url() const; + KUrl url() const; /** * Returns the root URL of the view, which is defined as the first @@ -727,7 +730,10 @@ private: ViewAccessor(DolphinSortFilterProxyModel* proxyModel); ~ViewAccessor(); - void createView(QWidget* parent, DolphinController* controller, Mode mode); + void createView(QWidget* parent, + DolphinViewController* dolphinViewController, + const ViewModeController* viewModeController, + Mode mode); void deleteView(); /** @@ -786,7 +792,8 @@ private: QVBoxLayout* m_topLayout; - DolphinController* m_controller; + DolphinViewController* m_dolphinViewController; + ViewModeController* m_viewModeController; ViewAccessor m_viewAccessor; QItemSelectionModel* m_selectionModel; // allow to switch views without losing the selection