┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dolphinmainwindow.h')
-rw-r--r--src/dolphinmainwindow.h31
1 files changed, 17 insertions, 14 deletions
diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h
index 806399b6d..991312c0c 100644
--- a/src/dolphinmainwindow.h
+++ b/src/dolphinmainwindow.h
@@ -27,9 +27,10 @@
#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>
@@ -292,20 +293,14 @@ 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();
-
- /** Shows the MIME type as additional information for the item. */
- void showMimeInfo();
+ /** Switches between showing the MIME type as additional information for the item or not. */
+ void toggleMimeInfo();
- /** Shows the size as additional information for the item. */
- void showSizeInfo();
+ /** Switches between showing the size as additional information for the item or not. */
+ void toggleSizeInfo();
- /** Shows the date as additional information for the item. */
- void showDateInfo();
+ /** Switchtes between showing the date as additional information for the item or not. */
+ void toggleDateInfo();
/**
* Switches between one and two views:
@@ -463,6 +458,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.