┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels/folders/folderspanel.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2011-11-20 19:32:52 +0100
committerPeter Penz <[email protected]>2011-11-20 19:35:01 +0100
commitb27e599429731337af4bb18b986933c968bea279 (patch)
treee807863400a9c3f6f48194a0f69f4c3d450ca092 /src/panels/folders/folderspanel.h
parent693f254252da3932d1307f65bc2a1bcaaad566ac (diff)
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.
Diffstat (limited to 'src/panels/folders/folderspanel.h')
-rw-r--r--src/panels/folders/folderspanel.h23
1 files changed, 10 insertions, 13 deletions
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 <panels/panel.h>
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;
};