From 6422ae393ed378f8dcde0bf35e1f8d67a5df2295 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 10 Apr 2007 11:22:56 +0000 Subject: allow to enable the categorization feature for sorting svn path=/trunk/KDE/kdebase/apps/; revision=652200 --- src/dolphinview.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/dolphinview.h') diff --git a/src/dolphinview.h b/src/dolphinview.h index 4f78f050b..d60556663 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -164,6 +164,24 @@ public: void setShowHiddenFiles(bool show); bool showHiddenFiles() const; + /** + * Summarizes all sorted items by their category \a categorized + * is true. + * If the view properties should be remembered for each directory + * (GeneralSettings::globalViewProps() returns false), then the + * categorized sorting setting will be be stored automatically. + */ + void setCategorizedSorting(bool categorized); + bool categorizedSorting() const; + + /** + * Returns true, if the categorized sorting is supported by the current + * used mode (see DolphinView::setMode()). Currently only DolphinView::IconsView + * supports categorizations. To check whether the categorized + * sorting is set, use DolphinView::categorizedSorting(). + */ + bool supportsCategorizedSorting() const; + /** * Triggers the renaming of the currently selected items, where * the user must input a new name for the items. @@ -375,6 +393,9 @@ signals: /** Is emitted if the 'show hidden files' property has been changed. */ void showHiddenFilesChanged(); + /** Is emitted if the 'categorized sorting' property has been changed. */ + void categorizedSortingChanged(); + /** Is emitted if the sorting by name, size or date has been changed. */ void sortingChanged(DolphinView::Sorting sorting); -- cgit v1.3