]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphincolumnwidget.h
* Use Nepomuk for getting the meta data instead of KFileMetaInfo.
[dolphin.git] / src / dolphincolumnwidget.h
index 15a09c8f9602ef10548a4e67e52730002633ada3..916bfac2ed1a7c8e6b383a7322db5ba4396ee899 100644 (file)
 class DolphinColumnView;
 class DolphinModel;
 class DolphinSortFilterProxyModel;
-class KDirLister;
+class DolphinDirLister;
+class DolphinViewAutoScroller;
 class KFilePreviewGenerator;
 class KJob;
 class KFileItem;
 class KFileItemList;
 class SelectionManager;
+class ToolTipManager;
 class QPixmap;
 
 /**
@@ -112,6 +114,11 @@ public:
 
     KFileItemList selectedItems() const;
 
+    /**
+     * Returns the MIME data for the selected items.
+     */
+    QMimeData* selectionMimeData() const;
+
 protected:
     virtual QStyleOptionViewItem viewOptions() const;
     virtual void startDrag(Qt::DropActions supportedActions);
@@ -126,9 +133,12 @@ protected:
     virtual void wheelEvent(QWheelEvent* event);
     virtual void leaveEvent(QEvent* event);
     virtual void selectionChanged(const QItemSelection& selected, const QItemSelection& deselected);
+    virtual void currentChanged(const QModelIndex& current, const QModelIndex& previous);
 
 private slots:
     void slotEntered(const QModelIndex& index);
+    void slotClicked(const QModelIndex& index);
+    void slotDoubleClicked(const QModelIndex& index);
     void requestActivation();
     void updateFont();
 
@@ -143,18 +153,21 @@ private:
     bool m_active;
     DolphinColumnView* m_view;
     SelectionManager* m_selectionManager;
+    DolphinViewAutoScroller* m_autoScroller;
     KUrl m_url;      // URL of the directory that is shown
     KUrl m_childUrl; // URL of the next column that is shown
 
     QFont m_font;
     QSize m_decorationSize;
 
-    KDirLister* m_dirLister;
+    DolphinDirLister* m_dirLister;
     DolphinModel* m_dolphinModel;
     DolphinSortFilterProxyModel* m_proxyModel;
 
     KFilePreviewGenerator* m_previewGenerator;
 
+    ToolTipManager* m_toolTipManager;
+
     QRect m_dropRect;
 
     friend class DolphinColumnView;