From 3c1c185400a55103cea3ed567de167df87b59945 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 2 Oct 2007 22:04:36 +0000 Subject: Allow showing additional information like type, size and date in parallel for the icons view (thanks to Fredrik for the extension of KFileItemDelegate!). svn path=/trunk/KDE/kdebase/apps/; revision=720283 --- src/dolphinmainwindow.h | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) (limited to 'src/dolphinmainwindow.h') 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 -#include -#include +#include #include +#include +#include #include @@ -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. -- cgit v1.3