diff options
| author | Peter Penz <[email protected]> | 2007-10-02 22:04:36 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-10-02 22:04:36 +0000 |
| commit | 3c1c185400a55103cea3ed567de167df87b59945 (patch) | |
| tree | cb795f1bb1582e9728634f31d66e1fc989a7c087 /src/dolphinmainwindow.h | |
| parent | ba150e5735bd336752f713df1e9f66b7ed90e6ae (diff) | |
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
Diffstat (limited to 'src/dolphinmainwindow.h')
| -rw-r--r-- | src/dolphinmainwindow.h | 31 |
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. |
