]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphincontroller.h
Let the user choose if folders are always shown first in the views of
[dolphin.git] / src / dolphincontroller.h
index 29dd7dfb1bfcc56dd7fa9d03226e88914a2a640e..f6abbb14802c5d88eca92027c89a98840cb33340 100644 (file)
@@ -59,6 +59,7 @@ class QWidget;
  * - indicateDroppedUrls()
  * - indicateSortingChange()
  * - indicateSortOrderChanged()
+ * - indicateSortFoldersFirstChanged()
  * - triggerItem()
  * - requestTab()
  * - handleKeyPressEvent()
@@ -164,6 +165,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
@@ -316,6 +326,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