]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinview.h
don't lose the history of the URL navigator if the settings of the Icons View, Detail...
[dolphin.git] / src / dolphinview.h
index ec7fcf85bc8399d2b18824f65abfe8f942cff0ef..b3b20600216b031182ed37e437d6dc47a27a3b49 100644 (file)
 
 #include <kurlnavigator.h>
 
-#include <QDropEvent>
-#include <QLinkedList>
-#include <QListView>
-#include <QMouseEvent>
-#include <QVBoxLayout>
-#include <QWidget>
+#include <QtGui/QKeyEvent>
+#include <QtCore/QLinkedList>
+#include <QtGui/QListView>
+#include <QtGui/QBoxLayout>
+#include <QtGui/QWidget>
 
 class DolphinController;
 class FilterBar;
@@ -351,6 +350,13 @@ public:
     /** Reloads the current directory. */
     void reload();
 
+    /**
+     * Refreshs the view to get synchronized with the (updated) Dolphin settings.
+     * This method only needs to get invoked if the view settings for the Icons View,
+     * Details View or Columns View have been changed.
+     */
+    void refresh();
+
 public slots:
     /**
      * Popups the filter bar above the status bar if \a show is true.
@@ -371,7 +377,7 @@ public slots:
     void requestActivation();
 
     /**
-     * Request of a selection change. The view will do its best to accomodate
+     * Request of a selection change. The view will do its best to accommodate
      * the request, but it is not guaranteed that all items in \a selection
      * will actually get selected. The view will e.g. not select items which
      * are not in the currently displayed folder.
@@ -451,7 +457,7 @@ private slots:
      * Replaces the icon of the item \a item by the preview pixmap
      * \a pixmap.
      */
-    void showPreview(const KFileItem* item, const QPixmap& pixmap);
+    void showPreview(const KFileItem& item, const QPixmap& pixmap);
 
     /**
      * Restores the x- and y-position of the contents if the
@@ -593,6 +599,7 @@ private:
 
     bool m_showProgress;
     bool m_blockContentsMovedSignal;
+    bool m_initializeColumnView;
     Mode m_mode;
 
     int m_iconSize;