* view mode is automatically updated if the directory itself
* defines a view mode (see class ViewProperties for details).
*/
* view mode is automatically updated if the directory itself
* defines a view mode (see class ViewProperties for details).
*/
* Marks the item indicated by \p url to be scrolled to and as the
* current item after directory DolphinView::url() has been loaded.
*/
* Marks the item indicated by \p url to be scrolled to and as the
* current item after directory DolphinView::url() has been loaded.
*/
bool sortHiddenLast() const;
/** Sets the additional information which should be shown for the items. */
bool sortHiddenLast() const;
/** Sets the additional information which should be shown for the items. */
/** Returns the additional information which should be shown for the items. */
QList<QByteArray> visibleRoles() const;
/** Returns the additional information which should be shown for the items. */
QList<QByteArray> visibleRoles() const;
* Filters the currently shown items by \a nameFilter. All items
* which contain the given filter string will be shown.
*/
* Filters the currently shown items by \a nameFilter. All items
* which contain the given filter string will be shown.
*/
* Returns the version control actions that are provided for the items \p items.
* Usually the actions are presented in the context menu.
*/
* Returns the version control actions that are provided for the items \p items.
* Usually the actions are presented in the context menu.
*/
+ /**
+ * @returns true if the @p item is one of the items() of this view and
+ * is currently expanded. false otherwise.
+ * Only directories in view modes that allow expanding can ever be expanded.
+ */
+ bool isExpanded(const KFileItem &item) const;
+
* @return a valid and adjusted url if the item can be opened as folder,
* otherwise return an empty url.
*/
* @return a valid and adjusted url if the item can be opened as folder,
* otherwise return an empty url.
*/
* Changes the directory to \a url. If the current directory is equal to
* \a url, nothing will be done (use DolphinView::reload() instead).
*/
* Changes the directory to \a url. If the current directory is equal to
* \a url, nothing will be done (use DolphinView::reload() instead).
*/
void statusBarTextChanged(QString statusBarText);
/** Is emitted if the sorting by name, size or date has been changed. */
void statusBarTextChanged(QString statusBarText);
/** Is emitted if the sorting by name, size or date has been changed. */
/** Is emitted if the sort order (ascending or descending) has been changed. */
void sortOrderChanged(Qt::SortOrder order);
/** Is emitted if the sort order (ascending or descending) has been changed. */
void sortOrderChanged(Qt::SortOrder order);
void sortHiddenLastChanged(bool hiddenLast);
/** Is emitted if the additional information shown for this view has been changed. */
void sortHiddenLastChanged(bool hiddenLast);
/** Is emitted if the additional information shown for this view has been changed. */
/** Is emitted if the zoom level has been changed by zooming in or out. */
void zoomLevelChanged(int current, int previous);
/** Is emitted if the zoom level has been changed by zooming in or out. */
void zoomLevelChanged(int current, int previous);
* Is emitted if information of an item is requested to be shown e. g. in the panel.
* If item is null, no item information request is pending.
*/
* Is emitted if information of an item is requested to be shown e. g. in the panel.
* If item is null, no item information request is pending.
*/
/**
* Is emitted if a context menu is requested for the item \a item,
* which is part of \a url. If the item is null, the context menu
* for the URL should be shown.
*/
/**
* Is emitted if a context menu is requested for the item \a item,
* which is part of \a url. If the item is null, the context menu
* for the URL should be shown.
*/
- void requestContextMenu(const QPoint& pos,
- const KFileItem& item,
- const KFileItemList &selectedItems,
- const QUrl& url);
+ void requestContextMenu(const QPoint &pos, const KFileItem &item, const KFileItemList &selectedItems, const QUrl &url);
/**
* Is emitted when the URL set by DolphinView::setUrl() represents a file.
* In this case no signal errorMessage() will be emitted.
*/
/**
* Is emitted when the URL set by DolphinView::setUrl() represents a file.
* In this case no signal errorMessage() will be emitted.
*/
- * Is emitted when the selection mode is requested for the current view.
- * This typically happens on press and hold.
- * @see KItemListController::longPress()
+ * Used to request either entering or leaving of selection mode
+ * Entering is typically requested on press and hold.
+ * Leaving by pressing Escape when no item is selected.
void slotItemActivated(int index);
void slotItemsActivated(const KItemSet &indexes);
void slotItemMiddleClicked(int index);
void slotItemActivated(int index);
void slotItemsActivated(const KItemSet &indexes);
void slotItemMiddleClicked(int index);
- void slotItemContextMenuRequested(int index, const QPointF& pos);
- void slotViewContextMenuRequested(const QPointF& pos);
- void slotHeaderContextMenuRequested(const QPointF& pos);
- void slotHeaderColumnWidthChangeFinished(const QByteArray& role, qreal current);
+ void slotItemContextMenuRequested(int index, const QPointF &pos);
+ void slotViewContextMenuRequested(const QPointF &pos);
+ void slotHeaderContextMenuRequested(const QPointF &pos);
+ void slotHeaderColumnWidthChangeFinished(const QByteArray &role, qreal current);
void slotSidePaddingWidthChanged(qreal width);
void slotItemHovered(int index);
void slotItemUnhovered(int index);
void slotSidePaddingWidthChanged(qreal width);
void slotItemHovered(int index);
void slotItemUnhovered(int index);
- void slotItemDropEvent(int index, QGraphicsSceneDragDropEvent* event);
- void slotModelChanged(KItemModelBase* current, KItemModelBase* previous);
+ void slotItemDropEvent(int index, QGraphicsSceneDragDropEvent *event);
+ void slotModelChanged(KItemModelBase *current, KItemModelBase *previous);
void slotSelectedItemTextPressed(int index);
void slotCopyingDone(KIO::Job *, const QUrl &, const QUrl &to);
void slotIncreaseZoom();
void slotSelectedItemTextPressed(int index);
void slotCopyingDone(KIO::Job *, const QUrl &, const QUrl &to);
void slotIncreaseZoom();
* Is invoked when the sort role has been changed by the user by clicking
* on a header item. The view properties of the directory will get updated.
*/
* Is invoked when the sort role has been changed by the user by clicking
* on a header item. The view properties of the directory will get updated.
*/
/**
* Is invoked when the visible roles have been changed by the user by dragging
* a header item. The view properties of the directory will get updated.
*/
/**
* Is invoked when the visible roles have been changed by the user by dragging
* a header item. The view properties of the directory will get updated.
*/
- void slotVisibleRolesChangedByHeader(const QList<QByteArray>& current,
- const QList<QByteArray>& previous);
+ void slotVisibleRolesChangedByHeader(const QList<QByteArray> ¤t, const QList<QByteArray> &previous);
/**
* Helper method for DolphinView::requestStatusBarText().
* Generates the status bar text from the parameters and
/**
* Helper method for DolphinView::requestStatusBarText().
* Generates the status bar text from the parameters and
* @param selection if HasSelection is passed, the emitted status bar text will say
* that the folders and files which are counted here are selected.
*/
* @param selection if HasSelection is passed, the emitted status bar text will say
* that the folders and files which are counted here are selected.
*/
- void emitStatusBarText(const int folderCount, const int fileCount,
- KIO::filesize_t totalFileSize, const Selection selection);
+ void emitStatusBarText(const int folderCount, const int fileCount, KIO::filesize_t totalFileSize, const Selection selection);
/**
* Helper method for DolphinView::paste() and DolphinView::pasteIntoFolder().
* Pastes the clipboard data into the URL \a url.
*/
/**
* Helper method for DolphinView::paste() and DolphinView::pasteIntoFolder().
* Pastes the clipboard data into the URL \a url.
*/
bool m_dragging; // True if a dragging is done. Required to be able to decide whether a
// tooltip may be shown when hovering an item.
bool m_dragging; // True if a dragging is done. Required to be able to decide whether a
// tooltip may be shown when hovering an item.
- KFileItemModel* m_model;
- DolphinItemListView* m_view;
- KItemListContainer* m_container;
+ KFileItemModel *m_model;
+ DolphinItemListView *m_view;
+ KItemListContainer *m_container;
QUrl m_currentItemUrl; // Used for making the view to remember the current URL after F5
bool m_scrollToCurrentItem; // Used for marking we need to scroll to current item or not
QUrl m_currentItemUrl; // Used for making the view to remember the current URL after F5
bool m_scrollToCurrentItem; // Used for marking we need to scroll to current item or not