]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinmainwindow.h
Fixed issue that the "Show Full Location" action is not synchronized with the editabl...
[dolphin.git] / src / dolphinmainwindow.h
index 43dc2248aa5657e276f4e3d57ab816fd675c2fd9..edc5c1bd657a358b0cb4149d9654fdc502a19a1c 100644 (file)
@@ -163,7 +163,10 @@ protected:
     virtual void readProperties(const KConfigGroup& group);
 
 private slots:
-    /** Opens the dialog for creating a directory. */
+    /**
+     * Opens the dialog for creating a directory. Is connected
+     * with the key shortcut for "new directory" (F10).
+     */
     void createDir();
 
     /** Updates the 'Create New...' sub menu. */
@@ -268,25 +271,13 @@ private slots:
     void toggleSortOrder();
 
     /** Switches between sorting by categories or not. */
-    void toggleSortCategorization();
-
-    /** Switches between showing the size as additional information for the item or not. */
-    void toggleSizeInfo();
-
-    /** Switchtes between showing the date as additional information for the item or not. */
-    void toggleDateInfo();
-
-    /** Switchtes between showing the permissions as additional information for the item or not. */
-    void togglePermissionsInfo();
-
-    /** Switchtes between showing the owner as additional information for the item or not. */
-    void toggleOwnerInfo();
-
-    /** Switchtes between showing the group as additional information for the item or not. */
-    void toggleGroupInfo();
+    void toggleSortCategorization(bool);
 
-    /** Switches between showing the MIME type as additional information for the item or not. */
-    void toggleMimeInfo();
+    /**
+     * Switches on or off the displaying of additional information
+     * as specified by \a action.
+     */
+    void toggleAdditionalInfo(QAction* action);
 
     /**
      * Switches between one and two views:
@@ -302,19 +293,17 @@ private slots:
     void stopLoading();
 
     /** Switches between showing a preview of the file content and showing the icon. */
-    void togglePreview();
+    void togglePreview(bool);
 
     /**
-     * Switches between showing and hiding of hidden marked files dependent
-     * from the current state of the 'Show Hidden Files' menu toggle action.
+     * Switches between showing and hiding of hidden marked files
      */
-    void toggleShowHiddenFiles();
+    void toggleShowHiddenFiles(bool);
 
     /**
-     * Toggles between showing and hiding of the filter bar dependent
-     * from the current state of the 'Show Filter Bar' menu toggle action.
+     * Toggles between showing and hiding of the filter bar
      */
-    void toggleFilterBarVisibility();
+    void toggleFilterBarVisibility(bool show);
 
     /** Increases the size of the current set view mode. */
     void zoomIn();
@@ -323,7 +312,7 @@ private slots:
     void zoomOut();
 
     /**
-     * Toggles between edit and brose mode of the navigation bar.
+     * Toggles between edit and browse mode of the navigation bar.
      */
     void toggleEditLocation();
 
@@ -385,7 +374,10 @@ private slots:
     void slotSortOrderChanged(Qt::SortOrder order);
 
     /** Updates the state of the 'Additional Information' actions. */
-    void slotAdditionalInfoChanged(KFileItemDelegate::InformationList info);
+    void slotAdditionalInfoChanged();
+
+    /** Updates the state of the 'Show Full Location' action. */
+    void slotEditableStateChanged(bool editable);
 
     /**
      * Updates the state of the 'Edit' menu actions and emits
@@ -450,14 +442,6 @@ private:
      */
     void updateSplitAction();
 
-    /**
-     * Helper method for the slots toggleDateInfo(), toggleSizeInfo()
-     * and toggleMimeInfo(). Applies \a info dependent from the  current
-     * checked state of the action \a actionName to the file item delegate.
-     */
-    void toggleAdditionalInfo(const char* actionName,
-                              KFileItemDelegate::Information info);
-
 private:
     /**
      * DolphinMainWindow supports up to two views beside each other.