#include <kitemviews/kfileitemlistview.h>
#include <kitemviews/kitemlistcontainer.h>
+#include <settings/viewmodes/viewmodesettings.h>
#include <libdolphin_export.h>
-class KDirLister;
class KFileItemListView;
/**
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;
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;