KFileIVI Class Reference
KFileIVI (short form of "Konq - File - IconViewItem") is, as expected, an improved KIconViewItem, because it represents a file. More...
#include <kfileivi.h>
Public Methods | |
KFileIVI (KonqIconViewWidget *iconview, KFileItem *fileitem, int size) | |
virtual | ~KFileIVI () |
virtual void | returnPressed () |
KFileItem * | item () const |
virtual bool | acceptDrop (const QMimeSource *mime) const |
virtual void | setIcon (int size, int state=KIcon::DefaultState, bool recalc=false, bool redraw=false) |
void | setPixmapDirect (const QPixmap &pixmap, bool recalc=false, bool redraw=false) |
void | invalidateThumb (int state, bool redraw=false) |
void | invalidateThumbnail () |
bool | isThumbnailInvalid () const |
bool | hasValidThumbnail () const |
int | state () const |
int | iconSize () const |
void | setDisabled (bool disabled) |
void | setThumbnailPixmap (const QPixmap &pixmap) |
void | setEffect (int state) |
bool | isThumbnail () const |
void | setOverlay (const QString &iconName) |
virtual void | refreshIcon (bool redraw) |
virtual void | setKey (const QString &key) |
virtual void | paintItem (QPainter *p, const QColorGroup &cg) |
virtual bool | move (int x, int y) |
void | setMouseOverAnimation (const QString &movieFileName) |
QString | mouseOverAnimation () const |
bool | hasAnimation () const |
bool | isAnimated () const |
void | setAnimated (bool) |
void | setActive (bool active) |
KIVDirectoryOverlay * | setShowDirectoryOverlay (bool) |
bool | showDirectoryOverlay () |
virtual int | compare (QIconViewItem *i) const |
Protected Methods | |
virtual void | dropped (QDropEvent *e, const QValueList< QIconDragItem > &) |
void | paintOverlay (QPainter *p) const |
QColorGroup | updateColors (const QColorGroup &c) const |
void | paintFontUpdate (QPainter *p) const |
Detailed Description
KFileIVI (short form of "Konq - File - IconViewItem") is, as expected, an improved KIconViewItem, because it represents a file.All the information about the file is contained in the KFileItem pointer.
Definition at line 39 of file kfileivi.h.
Constructor & Destructor Documentation
|
Create an icon, within a qlistview, representing a file.
Definition at line 50 of file kfileivi.cc. References QString::isEmpty(), and setMouseOverAnimation(). |
Member Function Documentation
|
Handler for return (or single/double click) on ONE icon. Runs the file through KRun. Definition at line 333 of file kfileivi.cc. |
|
Definition at line 60 of file kfileivi.h. Referenced by KonqIconViewWidget::setIcons(). |
|
Definition at line 292 of file kfileivi.cc. References QIconViewItem::acceptDrop(), and QMimeSource::provides(). |
|
Changes the icon for this item.
Definition at line 107 of file kfileivi.cc. References setPixmapDirect(), and state(). Referenced by refreshIcon(), and KonqIconViewWidget::setIcons(). |
|
Bypass setIcon. This is for animated icons, you should use setIcon in all other cases.
Definition at line 160 of file kfileivi.cc. References QIconViewItem::setPixmap(). Referenced by setIcon(). |
|
Notifies that all icon effects on thumbs should be invalidated, e.g. because the effect settings have been changed. The thumb itself is assumed to be still valid (use setThumbnailPixmap() instead otherwise).
Definition at line 81 of file kfileivi.cc. References QIconViewItem::setPixmap(), and state(). Referenced by KonqIconViewWidget::setIcons(). |
|
Our current thumbnail is not longer "current". Called when the file contents have changed. Definition at line 282 of file kfileivi.cc. |
|
Return the current state of the icon (KIcon::DefaultState, KIcon::ActiveState etc.).
Definition at line 114 of file kfileivi.h. Referenced by invalidateThumb(), setEffect(), setIcon(), and KonqIconViewWidget::setIcons(). |
|
Return the theorical size of the icon.
Definition at line 119 of file kfileivi.h. |
|
Set to true when this icon is 'cut'.
Definition at line 186 of file kfileivi.cc. References isThumbnail(), and QIconViewItem::setPixmap(). |
|
Set this when the thumbnail was loaded.
Definition at line 197 of file kfileivi.cc. References QIconViewItem::setPixmap(). |
|
Set the icon to use the specified KIconEffect See the docs for KIconEffect for details.
Definition at line 223 of file kfileivi.cc. References QIconViewItem::setPixmap(), and state(). Referenced by setActive(). |
|
Definition at line 140 of file kfileivi.h. Referenced by refreshIcon(), setDisabled(), and KonqIconViewWidget::setIcons(). |
|
Sets an icon to be shown over the bottom left corner of the icon. Currently used for directory overlays. setOverlay(QString::null) to remove icon. Definition at line 131 of file kfileivi.cc. References refreshIcon(). Referenced by setShowDirectoryOverlay(). |
|
Redetermines the icon (useful if KFileItem might return another icon). Does nothing with thumbnails Definition at line 276 of file kfileivi.cc. References isThumbnail(), and setIcon(). Referenced by setOverlay(). |
|
Paints this item. Takes care of using the normal or alpha blending methods depending on the configuration. Definition at line 339 of file kfileivi.cc. References paintFontUpdate(), paintOverlay(), and updateColors(). |
|
Enable an animation on mouseover, if there is an available mng.
Definition at line 403 of file kfileivi.cc. References QString::isEmpty(). Referenced by KFileIVI(). |
|
Return true if the icon _might_ have an animation available. This doesn't mean the .mng exists (only determined when hovering on the icon - and if it doesn't exist setMouseOverAnimation(QString::null) is called), and it doesn't mean that it's currently running either. Definition at line 398 of file kfileivi.cc. |
|
Return true if we are currently animating this icon.
Definition at line 417 of file kfileivi.cc. |
|
Called when the mouse is over the icon.
Definition at line 215 of file kfileivi.cc. References setEffect(). |
|
Sets showing of directory overlays. Does nothing if this does not represent a folder. Definition at line 138 of file kfileivi.cc. References setOverlay(). |
|
Contains the logic and code for painting the overlay pixmap.
Definition at line 358 of file kfileivi.cc. References QPainter::drawPixmap(), QRect::height(), and QRect::x(). Referenced by paintItem(). |
|
Updates the colorgroup.
Definition at line 376 of file kfileivi.cc. References QColorGroup::setColor(). Referenced by paintItem(). |
|
Contains the logic and code for painting links.
Definition at line 366 of file kfileivi.cc. References QPainter::font(), QPainter::setFont(), and QFont::setItalic(). Referenced by paintItem(). |
The documentation for this class was generated from the following files: