diff options
| author | Peter Penz <[email protected]> | 2010-03-30 20:19:32 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2010-03-30 20:19:32 +0000 |
| commit | 47d31139224f9bfded4626803626a58afe3eb748 (patch) | |
| tree | d07122b133b9865bb982177706376478651d1ea7 /src/dolphinview.h | |
| parent | 25ffe18e65543cacd07be2628a60f10316375dd3 (diff) | |
Split the class DolphinController into the two classes DolphinViewController and ViewModeController.
The ViewModeController offers a defined interface to control view mode implementations like icons view, details view and column view. The DolphinViewController allows those view mode implementations to control the parent DolphinView in a limited way.
svn path=/trunk/KDE/kdebase/apps/; revision=1109228
Diffstat (limited to 'src/dolphinview.h')
| -rw-r--r-- | src/dolphinview.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/dolphinview.h b/src/dolphinview.h index cab9fa560..07c6e32c4 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; @@ -132,7 +133,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 +728,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 +790,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 |
