┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-03-11 16:47:12 +0000
committerPeter Penz <[email protected]>2007-03-11 16:47:12 +0000
commit25349096ae7fe344613d35e5548cac1a91b60fd1 (patch)
tree92ab776bc1a02653858148321b3defe80fe74063 /src/dolphinmainwindow.h
parent66efe4d7061344dcd2070979dbe6ec4cb50df44b (diff)
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
Diffstat (limited to 'src/dolphinmainwindow.h')
-rw-r--r--src/dolphinmainwindow.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h
index 137fdfc9e..ff9fbf6a9 100644
--- a/src/dolphinmainwindow.h
+++ b/src/dolphinmainwindow.h
@@ -242,6 +242,21 @@ private slots:
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.
* If already two views are visible, the nonactivated view gets closed.
@@ -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();