diff options
| author | Peter Penz <[email protected]> | 2007-03-27 19:08:44 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-03-27 19:08:44 +0000 |
| commit | fd060ce7f67a95b1e3f41d3ff091595f34704920 (patch) | |
| tree | b5735e2c268b8461ede653ab2dfe83318122e42e /src/dolphinview.h | |
| parent | 3546be263253a3982077122fb861ebfb64d7de1d (diff) | |
Initial version for a column view support (thanks a lot to Benjamin Meyer for QColumnView in Qt4.3!). Currently there is a problem when using the DolphinSortFilterProxyModel: some items get duplicated, but I doubt it's an issue in QColumnView (the same issue occurs when using QTreeView) -> further investigations necessary...
svn path=/trunk/KDE/kdebase/apps/; revision=647234
Diffstat (limited to 'src/dolphinview.h')
| -rw-r--r-- | src/dolphinview.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/dolphinview.h b/src/dolphinview.h index 14c8372d3..6aabf2d34 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -43,6 +43,7 @@ class KFileItemDelegate; class KUrl; class KDirModel; class UrlNavigator; +class DolphinColumnView; class DolphinDetailsView; class DolphinDirLister; class DolphinIconsView; @@ -58,11 +59,12 @@ class ViewProperties; * @short Represents a view for the directory content * including the navigation bar, filter bar and status bar. * - * View modes for icons and details are supported. Currently + * View modes for icons, details and columns are supported. Currently * Dolphin allows to have up to two views inside the main window. * * @see DolphinIconsView * @see DolphinDetailsView + * @see DolphinColumnView * @see UrlNavigator * @see DolphinStatusBar */ @@ -90,7 +92,12 @@ public: * for date, group and permissions. */ DetailsView = 1, - MaxModeEnum = DetailsView + + /** + * Each folder is shown in a separate column. + */ + ColumnView = 2, + MaxModeEnum = ColumnView }; /** Defines the sort order for the items of a directory. */ @@ -542,6 +549,13 @@ private: /** Applies an item effect to all cut items. */ void applyCutItemEffect(); + /** + * Returns true, if the ColumnView is activated. As the column view + * requires some special handling for iterating through directories, + * this method has been introduced for convenience. + */ + bool isColumnViewActive() const { return m_columnView != 0; } + private: /** * Remembers the original pixmap for an item before @@ -567,6 +581,7 @@ private: DolphinController* m_controller; DolphinIconsView* m_iconsView; DolphinDetailsView* m_detailsView; + DolphinColumnView* m_columnView; KFileItemDelegate* m_fileItemDelegate; FilterBar* m_filterBar; |
