]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinviewactionhandler.h
Let the user choose if folders are always shown first in the views of
[dolphin.git] / src / dolphinviewactionhandler.h
index 4eb856387b28d2d4312ca359c78072bc5b8affb8..91875ec0cd0838f181bba3de04228dd5605a5cbc 100644 (file)
@@ -56,11 +56,21 @@ public:
      */
     void setCurrentView(DolphinView* view);
 
+    /**
+     * Returns the view that this action handler should work on.
+     */
+    DolphinView* currentView();
+
     /**
      * Returns the name of the action for the current viewmode
      */
     QString currentViewModeActionName() const;
 
+    /**
+     * Returns m_actionCollection
+     */
+    KActionCollection* actionCollection();
+
 public Q_SLOTS:
     /**
      * Update all actions in the 'View' menu, i.e. those that depend on the
@@ -75,13 +85,14 @@ Q_SIGNALS:
      */
     void actionBeingHandled();
 
-private Q_SLOTS:
     /**
-     * Opens the dialog for creating a directory. Is connected
-     * with the key shortcut for "new directory" (F10).
+     * Emitted if the user requested creating a new directory by the F10 key.
+     * The receiver of the signal (DolphinMainWindow or DolphinPart) invokes
+     * the method createDirectory of their KNewMenu instance.
      */
-    void slotCreateDir();
+    void createDirectory();
 
+private Q_SLOTS:
     /**
      * Emitted when the user requested a change of view mode
      */
@@ -121,16 +132,29 @@ private Q_SLOTS:
     /** Switches between an ascending and descending sorting order. */
     void toggleSortOrder();
 
+    /** Switches between a separate sorting and a mixed sorting of files and folders. */
+    void toggleSortFoldersFirst();
+
     /**
      * Updates the state of the 'Sort Ascending/Descending' action.
      */
     void slotSortOrderChanged(Qt::SortOrder order);
 
+    /**
+     * Updates the state of the 'Sort Folders First' action.
+     */
+    void slotSortFoldersFirstChanged(bool foldersFirst);
+
     /**
      * Updates the state of the 'Sort by' actions.
      */
     void slotSortingChanged(DolphinView::Sorting sorting);
 
+    /**
+     * Updates the state of the 'Zoom In' and 'Zoom Out' actions.
+     */
+    void slotZoomLevelChanged(int level);
+
     /**
      * Switches on or off the displaying of additional information
      * as specified by \a action.
@@ -167,6 +191,25 @@ private Q_SLOTS:
      */
     void slotShowHiddenFilesChanged();
 
+    /**
+     * Opens the view properties dialog, which allows to modify the properties
+     * of the currently active view.
+     */
+    void slotAdjustViewProperties();
+
+    /**
+     * Opens the Find File dialog for the currently shown directory.
+     */
+    void slotFindFile();
+
+    /**
+     * Connected to the "properties" action.
+     * Opens the properties dialog for the selected items of the
+     * active view. The properties dialog shows information
+     * like name, size and permissions.
+     */
+    void slotProperties();
+
 private:
     /**
      * Create all the actions.