diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-04-13 22:41:07 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-04-13 22:41:07 -0500 |
commit | 9e4aad6b3bc3c1b4781a3c1cef6968640d4f6e67 (patch) | |
tree | 93678c9bd7fd986e44911b920bc066c591274dae /libkonq/tdefileivi.h | |
parent | 3df12cd87674fdfbc2afa21584e1f3e558fa873b (diff) | |
download | tdebase-9e4aad6b3bc3c1b4781a3c1cef6968640d4f6e67.tar.gz tdebase-9e4aad6b3bc3c1b4781a3c1cef6968640d4f6e67.zip |
Add initial media device free space overlay to Konqueror icon view
Diffstat (limited to 'libkonq/tdefileivi.h')
-rw-r--r-- | libkonq/tdefileivi.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libkonq/tdefileivi.h b/libkonq/tdefileivi.h index 9d940a023..243688d43 100644 --- a/libkonq/tdefileivi.h +++ b/libkonq/tdefileivi.h @@ -27,6 +27,7 @@ class KFileItem; class KonqIconViewWidget; class KIVDirectoryOverlay; +class KIVFreeSpaceOverlay; /** * KFileIVI (short form of "Konq - File - IconViewItem") @@ -146,6 +147,13 @@ public: void setOverlay( const TQString & iconName); /** + * Sets a progress bar to be shown on the right side of the icon. + * Currently used for disk space overlays. + * setOverlayProgressBar(-1) to remove progress bar. + */ + void setOverlayProgressBar( const int progress); + + /** * Redetermines the icon (useful if KFileItem might return another icon). * Does nothing with thumbnails */ @@ -191,6 +199,13 @@ public: KIVDirectoryOverlay* setShowDirectoryOverlay( bool ); bool showDirectoryOverlay( ); + /** + * Sets showing of free space overlays. Does nothing if this does + * not represent a media device. + */ + KIVFreeSpaceOverlay* setShowFreeSpaceOverlay( bool ); + bool showFreeSpaceOverlay( ); + virtual int compare( TQIconViewItem *i ) const; protected: @@ -202,6 +217,11 @@ protected: void paintOverlay( TQPainter *p ) const; /** + * Contains the logic and code for painting the overlay progress bar. + */ + void paintOverlayProgressBar( TQPainter *p ) const; + + /** * Updates the colorgroup. */ TQColorGroup updateColors(const TQColorGroup &c) const; |