]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/views/dolphinitemlistcontainer.h
Fixed the signal connection that emits completed in Dolphin's KPart
[dolphin.git] / src / views / dolphinitemlistcontainer.h
index 2b00380a905acff463bb7a082a6fbacaeefe0702..f3505b663687e5fc21e148054c1fa596a669da44 100644 (file)
 
 #include <kitemviews/kfileitemlistview.h>
 #include <kitemviews/kitemlistcontainer.h>
+#include <settings/viewmodes/viewmodesettings.h>
 
 #include <libdolphin_export.h>
 
-class KDirLister;
 class KFileItemListView;
 
 /**
@@ -43,20 +43,15 @@ class LIBDOLPHINPRIVATE_EXPORT DolphinItemListContainer : public KItemListContai
     Q_OBJECT
 
 public:
-    explicit DolphinItemListContainer(KDirLister* dirLister,
-                                      QWidget* parent = 0);
+    explicit DolphinItemListContainer(QWidget* parent = 0);
 
     virtual ~DolphinItemListContainer();
 
     void setPreviewsShown(bool show);
     bool previewsShown() const;
 
-    /**
-     * Sets the visible roles to \p roles. The integer-value defines
-     * the order of the visible role: Smaller values are ordered first.
-     */
-    void setVisibleRoles(const QHash<QByteArray, int>& roles);
-    QHash<QByteArray, int> visibleRoles() const;
+    void setVisibleRoles(const QList<QByteArray>& roles);
+    QList<QByteArray> visibleRoles() const;
 
     void setZoomLevel(int level);
     int zoomLevel() const;
@@ -67,8 +62,20 @@ public:
     void beginTransaction();
     void endTransaction();
 
+    void readSettings();
+    void writeSettings();
+
 private:
     void updateGridSize();
+    void updateFont();
+
+    /**
+     * Updates the auto activation delay of the itemlist controller
+     * dependent on the 'autoExpand' setting from the general settings.
+     */
+    void updateAutoActivationDelay();
+
+    ViewModeSettings::ViewMode viewMode() const;
 
 private:
     int m_zoomLevel;