]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphindetailsview.h
Group classes into folders, Dolphin is too big in the meantime for having a flat...
[dolphin.git] / src / dolphindetailsview.h
index 0f99db5195bc3c9410da992cf468b1f4cffc0e3f..7707c077319394d801c0788b457c88ed4e51c70c 100644 (file)
@@ -27,6 +27,7 @@
 
 class DolphinController;
 class SelectionManager;
+class DolphinViewAutoScroller;
 
 /**
  * @brief Represents the details view which shows the name, size,
@@ -111,7 +112,7 @@ private slots:
     QRect elasticBandRect() const;
 
     void setZoomLevel(int level);
-    
+
     void slotShowPreviewChanged();
 
     /**
@@ -127,7 +128,7 @@ private slots:
      * with the mouse.
      */
     void slotHeaderSectionResized(int logicalIndex, int oldSize, int newSize);
-    
+
     /**
      * Changes the alternating row colors setting depending from
      * the activation state \a active.
@@ -145,8 +146,8 @@ private slots:
     void updateFont();
 
     /**
-     * If the elastic band is currently shown, update the elastic band based on 
-     * the current mouse position and ensure that the selection is the set of items 
+     * If the elastic band is currently shown, update the elastic band based on
+     * the current mouse position and ensure that the selection is the set of items
      * intersecting it.
      */
     void updateElasticBandSelection();
@@ -160,9 +161,6 @@ private:
      */
     void updateDecorationSize(bool showPreview);
 
-    /** Return the upper left position in pixels of the viewport content. */
-    QPoint contentsPos() const;
-
     KFileItemDelegate::Information infoForColumn(int columnIndex) const;
 
     /**
@@ -181,6 +179,7 @@ private:
 
     DolphinController* m_controller;
     SelectionManager* m_selectionManager;
+    DolphinViewAutoScroller* m_autoScroller;
 
     QFont m_font;
     QSize m_decorationSize;
@@ -190,7 +189,7 @@ private:
     struct ElasticBand
     {
         ElasticBand();
-        
+
         // Elastic band origin and destination coordinates are relative to t
         // he origin of the view, not the viewport.
         bool show;
@@ -202,10 +201,10 @@ private:
         // on the last elastic band shape.
         QPoint lastSelectionOrigin;
         QPoint lastSelectionDestination;
-        
+
         // If true, compute the set of selected elements from scratch (slower)
         bool ignoreOldInfo;
-        
+
         // Edges of the filenames that are closest to the edges of oldSelectionRect.
         // Used to decide whether horizontal changes in the elastic band are likely
         // to require us to re-check which items are selected.