#ifndef DOLPHINCOLUMNWIDGET_H
#define DOLPHINCOLUMNWIDGET_H
+#include "dolphinview.h"
+
+#include <QFont>
#include <QListView>
+#include <QSize>
#include <QStyleOption>
#include <kurl.h>
class DolphinColumnView;
class DolphinModel;
class DolphinSortFilterProxyModel;
+class IconManager;
class KDirLister;
+class KJob;
class KFileItem;
class KFileItemList;
class QPixmap;
/** Reloads the directory DolphinColumnWidget::url(). */
void reload();
+ void setSorting(DolphinView::Sorting sorting);
+ void setSortOrder(Qt::SortOrder order);
void setShowHiddenFiles(bool show);
void setShowPreview(bool show);
virtual void mousePressEvent(QMouseEvent* event);
virtual void keyPressEvent(QKeyEvent* event);
virtual void contextMenuEvent(QContextMenuEvent* event);
+ virtual void wheelEvent(QWheelEvent* event);
virtual void selectionChanged(const QItemSelection& selected, const QItemSelection& deselected);
private slots:
*/
void triggerItem(const QModelIndex& index);
- /**
- * Generates a preview image for each file item in \a items.
- * The current preview settings (maximum size, 'Show Preview' menu)
- * are respected.
- */
- void generatePreviews(const KFileItemList& items);
-
- /**
- * Replaces the icon of the item \a item by the preview pixmap
- * \a pixmap.
- */
- void showPreview(const KFileItem& item, const QPixmap& pixmap);
-
void slotEntered(const QModelIndex& index);
+ void requestActivation();
+
private:
/** Used by DolphinColumnWidget::setActive(). */
void activate();
/** Used by DolphinColumnWidget::setActive(). */
void deactivate();
- /**
- * Returns true, if the item \a item has been cut into
- * the clipboard.
- */
- bool isCutItem(const KFileItem& item) const;
-
KFileItem itemForIndex(const QModelIndex& index) const;
private:
bool m_active;
- bool m_showPreview;
DolphinColumnView* m_view;
KUrl m_url; // URL of the directory that is shown
KUrl m_childUrl; // URL of the next column that is shown
- QStyleOptionViewItem m_viewOptions;
+
+ QFont m_font;
+ QSize m_decorationSize;
+
KDirLister* m_dirLister;
DolphinModel* m_dolphinModel;
DolphinSortFilterProxyModel* m_proxyModel;
+ IconManager* m_iconManager;
+
bool m_dragging; // TODO: remove this property when the issue #160611 is solved in Qt 4.4
QRect m_dropRect; // TODO: remove this property when the issue #160611 is solved in Qt 4.4
};
return m_url;
}
-inline QStyleOptionViewItem DolphinColumnWidget::viewOptions() const
-{
- return m_viewOptions;
-}
-
#endif