From 25349096ae7fe344613d35e5548cac1a91b60fd1 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 11 Mar 2007 16:47:12 +0000 Subject: Allow to set the 'AdditionalInformation' property from KFileItemDelegate for each folder. Use case: - Icons view for images: set 'Size' as additional property - Icons view for media: show 'MIME type' as additional property - Default Icons view: don't show any addtional property for a clean layout. TODO: KFileItemDelagate::AdditionalInformation intersects with KDirModel::Columns when used in combination with the details view. Assure that the user does not get confronted with such implementation details in the user interface. svn path=/trunk/KDE/kdebase/apps/; revision=641525 --- src/dolphinmainwindow.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/dolphinmainwindow.h') diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h index 137fdfc9e..ff9fbf6a9 100644 --- a/src/dolphinmainwindow.h +++ b/src/dolphinmainwindow.h @@ -241,6 +241,21 @@ private slots: /** Switches between an ascending and descending sorting order. */ void toggleSortOrder(); + /** + * 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(); + + /** Shows the size as additional information for the item. */ + void showSizeInfo(); + + /** Shows the date as additional information for the item. */ + void showDateInfo(); + /** * Switches between one and two views: * If one view is visible, it will get split into two views. @@ -331,6 +346,9 @@ private slots: /** Updates the state of the 'Sort Ascending/Descending' action. */ void slotSortOrderChanged(Qt::SortOrder order); + /** Updates the state of the 'Additional Information' actions. */ + void slotAdditionalInfoChanged(KFileItemDelegate::AdditionalInformation info); + /** Updates the state of the 'Edit' menu actions. */ void slotSelectionChanged(); -- cgit v1.3.1