]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinmainwindow.h
* fixed drag & drop issue in column view (dropping on files was not possible -> handl...
[dolphin.git] / src / dolphinmainwindow.h
index 8970b89cb92e66e4918d08d46f736f0166d94de1..ca8001165a6500b2847868b00dc5e324f5209422 100644 (file)
 
 #include <config-nepomuk.h>
 
-#include <kxmlguiwindow.h>
-#include <ksortablelist.h>
+#include <kfileitemdelegate.h>
 #include <konq_undo.h>
+#include <ksortablelist.h>
+#include <kxmlguiwindow.h>
 
 #include <QtCore/QList>
 
@@ -122,7 +123,7 @@ public slots:
      * Inform all affected dolphin components that a selection change is
      * requested.
      */
-    void changeSelection(const QList<KFileItem>& selection);
+    void changeSelection(const KFileItemList& selection);
 
     /** Stores all settings and quits Dolphin. */
     void quit();
@@ -138,7 +139,7 @@ signals:
      * Is sent if the selection of the currently active view has
      * been changed.
      */
-    void selectionChanged(const QList<KFileItem>& selection);
+    void selectionChanged(const KFileItemList& selection);
 
     /**
      * Is sent if the url of the currently active view has
@@ -250,14 +251,8 @@ private slots:
      */
     void invertSelection();
 
-    /** The current active view is switched to the icons mode. */
-    void setIconsView();
-
-    /** The current active view is switched to the details mode. */
-    void setDetailsView();
-
-    /** The current active view is switched to the column mode. */
-    void setColumnView();
+    /** The current active view is switched to a new view mode. */
+    void setViewMode(QAction *);
 
     /** The sorting of the current view should be done by the name. */
     void sortByName();
@@ -292,20 +287,23 @@ private slots:
     /** Switches between sorting by categories or not. */
     void toggleSortCategorization();
 
-    /**
-     * Clears any additional information for an item except for the
-     * name and the icon.
-     */
-    void clearInfo();
+    /** 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();
 
-    /** Shows the MIME type as additional information for the item. */
-    void showMimeInfo();
+    /** Switchtes between showing the owner as additional information for the item or not. */
+    void toggleOwnerInfo();
 
-    /** Shows the size as additional information for the item. */
-    void showSizeInfo();
+    /** Switchtes between showing the group as additional information for the item or not. */
+    void toggleGroupInfo();
 
-    /** Shows the date as additional information for the item. */
-    void showDateInfo();
+    /** Switches between showing the MIME type as additional information for the item or not. */
+    void toggleMimeInfo();
 
     /**
      * Switches between one and two views:
@@ -404,7 +402,7 @@ private slots:
      * Updates the state of the 'Edit' menu actions and emits
      * the signal selectionChanged().
      */
-    void slotSelectionChanged(const QList<KFileItem>& selection);
+    void slotSelectionChanged(const KFileItemList& selection);
 
     /** Emits the signal requestItemInfo(). */
     void slotRequestItemInfo(const KFileItem&);
@@ -463,6 +461,14 @@ 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.