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;
SortByOwner,
SortByGroup,
SortByType,
- MaxSortEnum = SortByType
+ SortByDestination,
+ SortByPath,
+ MaxSortingEnum = SortByPath
};
/**
* 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
/** Is emitted if URL of the view has been changed to \a url. */
void urlChanged(const KUrl& url);
- /**
- * Is emitted if the view requests a changing of the current
- * URL to \a url (see DolphinController::triggerUrlChangeRequest()).
- */
- void requestUrlChange(const KUrl& url);
-
/**
* Is emitted when clicking on an item with the left mouse button.
*/
*/
void slotDeleteFileFinished(KJob* job);
- /**
- * Is emitted if the controller requests a changing of the current
- * URL to \a url
- */
- void slotRequestUrlChange(const KUrl& url);
-
/**
* Invoked when the directory lister has completed the loading of
* items. Assures that pasted items and renamed items get seleced.
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();
/**
QWidget* layoutTarget() const;
KUrl rootUrl() const;
- KDirLister* rootDirLister() const;
bool supportsCategorizedSorting() const;
bool itemsExpandable() const;
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