]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinviewactionhandler.h
* Use Nepomuk for getting the meta data instead of KFileMetaInfo.
[dolphin.git] / src / dolphinviewactionhandler.h
index d4790a38da76d9e15aef247dedcc30eaffe2de28..ad56518c4e0614b1d78590c93b1e941b5f5680fa 100644 (file)
@@ -21,6 +21,7 @@
 #ifndef DOLPHINVIEWACTIONHANDLER_H
 #define DOLPHINVIEWACTIONHANDLER_H
 
+#include "dolphinview.h"
 #include "libdolphin_export.h"
 #include <QtCore/QObject>
 class KToggleAction;
@@ -125,12 +126,27 @@ private Q_SLOTS:
      */
     void slotSortOrderChanged(Qt::SortOrder order);
 
+    /**
+     * 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.
      */
     void toggleAdditionalInfo(QAction* action);
 
+    /**
+     * Changes the sorting of the current view.
+     */
+    void slotSortTriggered(QAction*);
+
     /**
      * Updates the state of the 'Additional Information' actions.
      */
@@ -156,6 +172,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.
@@ -168,6 +203,12 @@ private:
      */
     QActionGroup* createAdditionalInformationActionGroup();
 
+    /**
+     * Creates an action group with all the "sort by" actions in it.
+     * Helper method for createActions();
+     */
+    QActionGroup* createSortByActionGroup();
+
     /**
      * Returns the "switch to icons mode" action.
      * Helper method for createActions();