KDirLister* dirLister,
KDirModel* dirModel,
DolphinSortFilterProxyModel* proxyModel,
- Mode mode = IconsView,
- bool showHiddenFiles = false);
+ Mode mode);
virtual ~DolphinView();
KFileItem* fileItem(const QModelIndex index) const;
/**
- * Returns the x-position of the view content.
- * The content of the view might be larger than the visible area
+ * Sets the upper left position of the view content
+ * to (x,y). The content of the view might be larger than the visible area
* and hence a scrolling must be done.
*/
- int contentsX() const;
+ void setContentsPosition(int x, int y);
- /**
- * Returns the y-position of the view content.
- * The content of the view might be larger than the visible area
- * and hence a scrolling must be done.
- */
- int contentsY() const;
+ /** Returns the upper left position of the view content. */
+ QPoint contentsPosition() const;
/** Increases the size of the current set view mode. */
void zoomIn();
/** Is emitted if the sort order (ascending or descending) has been changed. */
void sortOrderChanged(Qt::SortOrder order);
- /** Is emitted if the addtional information for an item has been changed. */
+ /** Is emitted if the additional information for an item has been changed. */
void additionalInfoChanged(KFileItemDelegate::AdditionalInformation info);
/**
*/
void selectionChanged(const KFileItemList& selection);
- /**
- * Is emitted whenever the filter bar has been turned show or hidden.
- */
- void showFilterBarChanged(bool shown);
-
/**
* Is emitted if a context menu is requested for the item \a item,
* which is part of \a url. If the item is 0, the context menu
*/
void urlsDropped(const KUrl::List& urls, const KUrl& destination);
+ /**
+ * Is emitted if an information message with the content \a msg
+ * should be shown.
+ */
+ void infoMessage(const QString& msg);
+
+ /**
+ * Is emitted if an error message with the content \a msg
+ * should be shown.
+ */
+ void errorMessage(const QString& msg);
+
protected:
/** @see QWidget::mouseReleaseEvent */
virtual void mouseReleaseEvent(QMouseEvent* event);
*/
void showPreview(const KFileItem& item, const QPixmap& pixmap);
- /**
- * Restores the x- and y-position of the contents if the
- * current view is part of the history.
- */
- void restoreContentsPos();
-
void emitSelectionChangedSignal();
/**
};
bool m_active;
- bool m_blockContentsMovedSignal;
+ bool m_loadingDirectory;
bool m_initializeColumnView;
Mode m_mode;