* selected.
* @see DolphinView::selectedUrls()
*/
- QList<KFileItem> selectedItems() const;
+ KFileItemList selectedItems() const;
/**
* Returns a list of URLs for all selected items. An empty list
/** Sets the additional information which should be shown for the items. */
void setAdditionalInfo(KFileItemDelegate::InformationList info);
- /** Sets the additional information which should be shown for the items. */
- void setAdditionalInfo(KFileItemDelegate::Information info);
-
/** Returns the additional information which should be shown for the items. */
KFileItemDelegate::InformationList additionalInfo() const;
* will actually get selected. The view will e.g. not select items which
* are not in the currently displayed folder.
*/
- void changeSelection(const QList<KFileItem>& selection);
+ void changeSelection(const KFileItemList& selection);
signals:
/**
/**
* Is emitted whenever the selection has been changed.
*/
- void selectionChanged(const QList<KFileItem>& selection);
+ void selectionChanged(const KFileItemList& selection);
/**
* Is emitted if a context menu is requested for the item \a item,
void activate();
/**
- * If the item specified by \a index is a directory, then this
+ * If the item \a item is a directory, then this
* directory will be loaded. If the item is a file, the corresponding
* application will get started.
*/
- void triggerItem(const QModelIndex& index);
+ void triggerItem(const KFileItem& 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 QList<KFileItem>& items);
+ void generatePreviews(const KFileItemList& items);
/**
* Replaces the icon of the item \a item by the preview pixmap
/**
* Updates the status bar to show hover information for the
- * item with the index \a index. If currently other items are selected,
+ * item \a item. If currently other items are selected,
* no hover information is shown.
* @see DolphinView::clearHoverInformation()
*/
- void showHoverInformation(const QModelIndex& index);
+ void showHoverInformation(const KFileItem& item);
/**
* Clears the hover information shown in the status bar.
void clearHoverInformation();
private:
- void startDirLister(const KUrl& url, bool reload = false);
+ void loadDirectory(const KUrl& url, bool reload = false);
/**
* Returns the URL where the view properties should be stored. Usually
/** Applies an item effect to all cut items. */
void applyCutItemEffect();
- /**
- * Updates the color of the viewport depending from the
- * activation state (see DolphinView::isActive()).
- */
- void updateViewportColor();
-
/**
* Returns true, if the ColumnView is activated. As the column view
* requires some special handling for iterating through directories,
bool m_active;
bool m_loadingDirectory;
- bool m_initializeColumnView;
bool m_storedCategorizedSorting;
Mode m_mode;