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/dolphindetailsview.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/dolphindetailsview.h')
| -rw-r--r-- | src/dolphindetailsview.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/dolphindetailsview.h b/src/dolphindetailsview.h index 47af2f55d..1dff8fe59 100644 --- a/src/dolphindetailsview.h +++ b/src/dolphindetailsview.h @@ -25,7 +25,7 @@ #include <QTreeView> #include <libdolphin_export.h> -class DolphinController; +class DolphinViewController; class DolphinSortFilterProxyModel; class ViewExtensionsFactory; @@ -42,8 +42,18 @@ class LIBDOLPHINPRIVATE_EXPORT DolphinDetailsView : public QTreeView Q_OBJECT public: + /** + * @param parent Parent widget. + * @param dolphinViewController Allows the DolphinDetailsView to control the + * DolphinView in a limited way. + * @param viewModeController Controller that is used by the DolphinView + * to control the DolphinDetailsView. The DolphinDetailsView + * only has read access to the controller. + * @param model Directory that is shown. + */ explicit DolphinDetailsView(QWidget* parent, - DolphinController* controller, + DolphinViewController* dolphinViewController, + const ViewModeController* viewModeController, DolphinSortFilterProxyModel* model); virtual ~DolphinDetailsView(); @@ -226,7 +236,8 @@ private: bool m_useDefaultIndexAt : 1; // true, if QTreeView::indexAt() should be used bool m_ignoreScrollTo : 1; // true if calls to scrollTo(...) should do nothing. - DolphinController* m_controller; + DolphinViewController* m_dolphinViewController; + const ViewModeController* m_viewModeController; ViewExtensionsFactory* m_extensionsFactory; QAction* m_expandableFoldersAction; |
