┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphincontroller.h
diff options
context:
space:
mode:
authorFrank Reininghaus <[email protected]>2009-04-20 17:52:21 +0000
committerFrank Reininghaus <[email protected]>2009-04-20 17:52:21 +0000
commit29c5ab3b74d26657c60b40770676be082caa953d (patch)
treeea6440883b7c1a12a9ee14b78217f481d10986e9 /src/dolphincontroller.h
parentf6e3d851334e14a05f5e1a7b281a7101a12d43bb (diff)
Let the user choose if folders are always shown first in the views of
Dolphin and Konqueror (the default) or not. This setting can be changed in the View menu: "View->Sort By->Folders First". FEATURE: 62007 svn path=/trunk/KDE/kdebase/apps/; revision=956820
Diffstat (limited to 'src/dolphincontroller.h')
-rw-r--r--src/dolphincontroller.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/dolphincontroller.h b/src/dolphincontroller.h
index 29dd7dfb1..f6abbb148 100644
--- a/src/dolphincontroller.h
+++ b/src/dolphincontroller.h
@@ -59,6 +59,7 @@ class QWidget;
* - indicateDroppedUrls()
* - indicateSortingChange()
* - indicateSortOrderChanged()
+ * - indicateSortFoldersFirstChanged()
* - triggerItem()
* - requestTab()
* - handleKeyPressEvent()
@@ -165,6 +166,15 @@ public:
void indicateSortOrderChange(Qt::SortOrder order);
/**
+ * Informs the abstract Dolphin view about a change between separate sorting
+ * (with folders first) and mixed sorting of files and folders done inside
+ * the view implementation. This method should be invoked by the view
+ * implementation (e. g. the details view uses this method in combination
+ * with the details header).
+ */
+ void indicateSortFoldersFirstChange(bool foldersFirst);
+
+ /**
* Informs the abstract Dolphin view about an additional information change
* done inside the view implementation. This method should be invoked by the
* view implementation (e. g. the details view uses this method in combination
@@ -317,6 +327,14 @@ signals:
void sortOrderChanged(Qt::SortOrder order);
/**
+ * Is emitted if 'sort folders first' has been changed to \a foldersFirst
+ * by the view implementation (see indicateSortOrderChanged().
+ * The abstract Dolphin view connects
+ * to this signal to update its menu actions.
+ */
+ void sortFoldersFirstChanged(bool foldersFirst);
+
+ /**
* Is emitted if the additional info has been changed to \a info
* by the view implementation. The abstract Dolphin view connects
* to this signal to update its menu actions.