From b27e599429731337af4bb18b986933c968bea279 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 20 Nov 2011 19:32:52 +0100 Subject: Initial draft for bringing back the "Folders" panel The folders panel has been adjusted to use the new view-engine. A lot of things don't work yet, but are mostly minor issues that should be fixable during the next 10 days. --- src/panels/folders/folderspanel.h | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'src/panels/folders/folderspanel.h') diff --git a/src/panels/folders/folderspanel.h b/src/panels/folders/folderspanel.h index 727fc7c71..70390da60 100644 --- a/src/panels/folders/folderspanel.h +++ b/src/panels/folders/folderspanel.h @@ -24,11 +24,8 @@ #include class KDirLister; -class DolphinModel; - -class DolphinSortFilterProxyModel; -class PanelTreeView; -class QModelIndex; +class KFileItemModel; +class KItemListController; /** * @brief Shows a tree view of the directories starting from @@ -77,28 +74,28 @@ private slots: * Updates the active view to the URL * which is given by the item with the index \a index. */ - void updateActiveView(const QModelIndex& index); + //void updateActiveView(const QModelIndex& index); /** * Is emitted if URLs have been dropped * to the index \a index. */ - void dropUrls(const QModelIndex& index, QDropEvent* event); + //void dropUrls(const QModelIndex& index, QDropEvent* event); /** * Expands the treeview to show the directory * specified by \a index. */ - void expandToDir(const QModelIndex& index); + //void expandToDir(const QModelIndex& index); /** * Assures that the leaf folder gets visible. */ - void scrollToLeaf(); + //void scrollToLeaf(); void updateMouseButtons(); - void slotDirListerCompleted(); + void slotLoadingCompleted(); void slotHorizontalScrollBarMoved(int value); @@ -119,13 +116,13 @@ private: */ void selectLeafDirectory(); + KFileItemModel* fileItemModel() const; + private: bool m_setLeafVisible; Qt::MouseButtons m_mouseButtons; KDirLister* m_dirLister; - //DolphinModel* m_dolphinModel; - //DolphinSortFilterProxyModel* m_proxyModel; - PanelTreeView* m_treeView; + KItemListController* m_controller; KUrl m_leafDir; }; -- cgit v1.3.1