┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinview.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-01-15 06:43:17 +0000
committerPeter Penz <[email protected]>2007-01-15 06:43:17 +0000
commita58ce6d0b7494982a7dbc37a8a3e3ef849af323e (patch)
treef25ac168b63649612424f594796c48311519c8a7 /src/dolphinview.h
parentde4ffa3322c8d919ebdb0cdb51115bace8aa8d11 (diff)
Use a QTreeView for the representation of the details view (previously a QListView has been used).
svn path=/trunk/playground/utils/dolphin/; revision=623643
Diffstat (limited to 'src/dolphinview.h')
-rw-r--r--src/dolphinview.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/dolphinview.h b/src/dolphinview.h
index cd3df38b3..c28a47e6e 100644
--- a/src/dolphinview.h
+++ b/src/dolphinview.h
@@ -46,6 +46,7 @@ class Q3IconViewItem;
class Q3ListViewItem;
class Q3VBoxLayout;
class DolphinMainWindow;
+class DolphinDetailsView;
class DolphinDirLister;
class DolphinStatusBar;
class DolphinIconsView;
@@ -54,6 +55,7 @@ class DolphinSortFilterProxyModel;
class ViewProperties;
class KProgress;
class KDirModel;
+class KMimeTypeResolver;
class FilterBar;
class QModelIndex;
@@ -456,10 +458,10 @@ private:
QString renameIndexPresentation(int index, int itemCount) const;
/**
- * Applies the current view mode m_mode to the
- * view implementation.
+ * Creates a new view representing the given view mode (DolphinView::viewMode()).
+ * The current view will get deleted.
*/
- void applyModeToView();
+ void createView();
/**
* Returns the column index used in the KDirModel depending on \a sorting.
@@ -472,6 +474,12 @@ private:
*/
void selectAll(QItemSelectionModel::SelectionFlags flags);
+ /**
+ * Returns a pointer to the currently used item view, which is either
+ * a ListView or a TreeView.
+ */
+ QAbstractItemView* itemView() const;
+
private:
bool m_refreshing;
bool m_showProgress;
@@ -484,13 +492,17 @@ private:
DolphinMainWindow* m_mainWindow;
QVBoxLayout* m_topLayout;
UrlNavigator* m_urlNavigator;
+
DolphinIconsView* m_iconsView;
+ DolphinDetailsView* m_detailsView;
+
FilterBar *m_filterBar;
DolphinStatusBar* m_statusBar;
KDirModel* m_dirModel;
DolphinDirLister* m_dirLister;
DolphinSortFilterProxyModel* m_proxyModel;
+ KMimeTypeResolver* m_mimeTypeResolver;
};