From 3b8c3c1b1e2d05d09aca2de0b0bf922fb9530b0d Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 9 Oct 2007 22:32:54 +0000 Subject: Allow filtering of items also for the column view. A filtering of directories is not done yet, but with the latest updates of the column view this could be added now (but it's more a question whether we really want this...). svn path=/trunk/KDE/kdebase/apps/; revision=723536 --- src/dolphinview.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/dolphinview.h') diff --git a/src/dolphinview.h b/src/dolphinview.h index 9291ea8b9..4e76c87c2 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -304,6 +304,21 @@ public: */ void updateView(const KUrl& url, const KUrl& rootUrl); + /** + * Filters the currently shown items by \a nameFilter. All items + * which contain the given filter string will be shown. + */ + void setNameFilter(const QString& nameFilter); + + /** + * Calculates the number of currently shown files into + * \a fileCount and the number of folders into \a folderCount. + * It is recommend using this method instead of asking the + * directory lister or the model directly, as it takes + * filtering and hierarchical previews into account. + */ + void calculateItemCount(int& fileCount, int& folderCount); + public slots: /** * Changes the directory to \a url. If the current directory is equal to @@ -319,6 +334,7 @@ public slots: */ void changeSelection(const KFileItemList& selection); + signals: /** * Is emitted if the view has been activated by e. g. a mouse click. -- cgit v1.3