KFileIconView Class Reference
An icon-view capable of showing KFileItem's. More...
#include <kfileiconview.h>
Inheritance diagram for KFileIconView:


Public Slots | |
void | showPreviews () |
void | zoomIn () |
void | zoomOut () |
virtual void | arrangeItemsInGrid (bool updated=true) |
Signals | |
void | dropped (QDropEvent *event, KFileItem *fileItem) |
void | dropped (QDropEvent *event, const KURL::List &urls, const KURL &url) |
Public Member Functions | |
KFileIconView (QWidget *parent, const char *name) | |
virtual QWidget * | widget () |
virtual void | clearView () |
virtual void | setAutoUpdate (bool) |
virtual void | updateView (bool) |
virtual void | updateView (const KFileItem *) |
virtual void | removeItem (const KFileItem *) |
virtual void | listingCompleted () |
virtual void | insertItem (KFileItem *i) |
virtual void | setSelectionMode (KFile::SelectionMode sm) |
virtual void | setSelected (const KFileItem *, bool) |
virtual bool | isSelected (const KFileItem *i) const |
virtual void | clearSelection () |
virtual void | selectAll () |
virtual void | invertSelection () |
virtual void | setCurrentItem (const KFileItem *) |
virtual KFileItem * | currentFileItem () const |
virtual KFileItem * | firstFileItem () const |
virtual KFileItem * | nextItem (const KFileItem *) const |
virtual KFileItem * | prevItem (const KFileItem *) const |
void | setIconSize (int size) |
void | setPreviewSize (int size) |
void | setIgnoreMaximumSize (bool ignoreSize=true) |
int | iconSize () const |
void | ensureItemVisible (const KFileItem *) |
virtual void | setSorting (QDir::SortSpec sort) |
virtual void | readConfig (KConfig *, const QString &group=QString::null) |
virtual void | writeConfig (KConfig *, const QString &group=QString::null) |
void | mimeTypeDeterminationFinished () |
void | determineIcon (KFileIconViewItem *item) |
QScrollView * | scrollWidget () const |
void | setAcceptDrops (bool b) |
Protected Member Functions | |
virtual void | keyPressEvent (QKeyEvent *) |
virtual void | hideEvent (QHideEvent *) |
virtual void | showEvent (QShowEvent *) |
virtual bool | eventFilter (QObject *o, QEvent *e) |
virtual QDragObject * | dragObject () |
virtual void | contentsDragEnterEvent (QDragEnterEvent *e) |
virtual void | contentsDragMoveEvent (QDragMoveEvent *e) |
virtual void | contentsDragLeaveEvent (QDragLeaveEvent *e) |
virtual void | contentsDropEvent (QDropEvent *ev) |
bool | acceptDrag (QDropEvent *e) const |
virtual void | virtual_hook (int id, void *data) |
Detailed Description
An icon-view capable of showing KFileItem's.Used in the filedialog for example. Most of the documentation is in KFileView class.
- See also:
- KDirOperator
Definition at line 81 of file kfileiconview.h.
Member Function Documentation
|
a pure virtual function to get a QWidget, that can be added to other widgets. This function is needed to make it possible for derived classes to derive from other widgets. Implements KFileView. Definition at line 89 of file kfileiconview.h. |
|
pure virtual function, that should be implemented to clear the view. At this moment the list is already empty Implements KFileView. Definition at line 328 of file kfileiconview.cpp. References KMimeTypeResolver< KFileIconViewItem, KFileIconView >::m_lstPendingMimeIconItems. Referenced by KCombiView::clearView(). |
|
does a repaint of the view. The default implementation calls
Reimplemented from KFileView. Definition at line 436 of file kfileiconview.cpp. References KFileIconViewItem::fileInfo(), KIconViewItem::pixmapSize(), KIconViewItem::setPixmapSize(), and updateView(). Referenced by updateView(), and KCombiView::updateView(). |
|
Removes an item from the list; has to be implemented by the view. Call KFileView::removeItem( item ) after removing it. Reimplemented from KFileView. Definition at line 467 of file kfileiconview.cpp. References KMimeTypeResolver< KFileIconViewItem, KFileIconView >::m_lstPendingMimeIconItems, and removeItem(). Referenced by removeItem(), and KCombiView::removeItem(). |
|
This hook is called when all items of the currently listed directory are listed and inserted into the view, i.e. there won't come any new items anymore. Reimplemented from KFileView. Definition at line 718 of file kfileiconview.cpp. References arrangeItemsInGrid(), and KMimeTypeResolver< KFileIconViewItem, KFileIconView >::start(). Referenced by KCombiView::listingCompleted(). |
|
The derived view must implement this function to add the file in the widget. Make sure to call this implementation, i.e. KFileView::insertItem( i ); Reimplemented from KFileView. Definition at line 336 of file kfileiconview.cpp. References insertItem(), KFileItem::isMimeTypeKnown(), KMimeTypeResolver< KFileIconViewItem, KFileIconView >::m_lstPendingMimeIconItems, and KFileItem::setExtraData(). Referenced by insertItem(), and KCombiView::insertItem(). |
|
Tells the view that it should highlight the item. This function must be implemented by the view. Implements KFileView. Definition at line 302 of file kfileiconview.cpp. References setSelected(). Referenced by setSelected(), and KCombiView::setSelected(). |
|
Implements KFileView. Definition at line 430 of file kfileiconview.cpp. References isSelected(). Referenced by isSelected(), and KCombiView::isSelected(). |
|
Clears any selection, unhighlights everything. Must be implemented by the view. Implements KFileView. Definition at line 318 of file kfileiconview.cpp. Referenced by KCombiView::clearSelection(). |
|
Selects all items. You may want to override this, if you can implement it more efficiently than calling setSelected() with every item. This works only in Multiselection mode of course. Reimplemented from KFileView. Definition at line 309 of file kfileiconview.cpp. Referenced by KCombiView::selectAll(). |
|
Inverts the current selection, i.e. selects all items, that were up to now not selected and deselects the other. Reimplemented from KFileView. Definition at line 323 of file kfileiconview.cpp. Referenced by KCombiView::invertSelection(). |
|
Reimplement this to set the item having focus. Implements KFileView. Definition at line 375 of file kfileiconview.cpp. References setCurrentItem(). Referenced by setCurrentItem(), and KCombiView::setCurrentItem(). |
|
Implements KFileView. Definition at line 382 of file kfileiconview.cpp. References KFileIconViewItem::fileInfo(). Referenced by KCombiView::currentFileItem(). |
|
Sets the size of the icons to show. Defaults to KIcon::SizeSmall. Definition at line 482 of file kfileiconview.cpp. References setIconSize(). Referenced by setIconSize(). |
|
Sets the size of the previews. Defaults to KIcon::SizeLarge. Definition at line 488 of file kfileiconview.cpp. References setPreviewSize(), and showPreviews(). Referenced by setPreviewSize(). |
|
Disables the "Maximum file size" configuration option for previews. Set this before calling showPreviews()
Definition at line 498 of file kfileiconview.cpp. References setIgnoreMaximumSize(). Referenced by setIgnoreMaximumSize(). |
|
Definition at line 136 of file kfileiconview.h. |
|
pure virtual function, that should be implemented to make item i visible, i.e. by scrolling the view appropriately. Implements KFileView. Definition at line 509 of file kfileiconview.cpp. References ensureItemVisible(). Referenced by ensureItemVisible(), and KCombiView::ensureItemVisible(). |
|
Sets the sorting order of the view. Default is QDir::Name | QDir::IgnoreCase | QDir::DirsFirst Override this in your subclass and sort accordingly (usually by setting the sorting-key for every item and telling QIconView or QListView to sort. A view may choose to use a different sorting than QDir::Name, Time or Size. E.g. to sort by mimetype or any possible string. Set the sorting to QDir::Unsorted for that and do the rest internally.
Reimplemented from KFileView. Definition at line 676 of file kfileiconview.cpp. References KFileItem::isDir(), KFileView::isReversed(), KFileView::items(), QIconView::setSorting(), KFileItem::size(), KFileItem::text(), and KFileItem::time(). Referenced by KCombiView::setSorting(). |
|
Starts loading previews for all files shown and shows them. Switches into 'large rows' mode, if that isn't the current mode yet.
Definition at line 578 of file kfileiconview.cpp. References KIO::filePreview(), KFileView::items(), and KIO::PreviewJob::supportedMimeTypes(). Referenced by setPreviewSize(). |
|
Reimplemented for performance reasons.
Definition at line 792 of file kfileiconview.cpp. References arrangeItemsInGrid(). Referenced by arrangeItemsInGrid(), and listingCompleted(). |
|
Reimplemented to not let QIconView eat return-key events.
Definition at line 292 of file kfileiconview.cpp. References keyPressEvent(). Referenced by keyPressEvent(). |
|
Reimplemented to remove an eventual tooltip.
Definition at line 286 of file kfileiconview.cpp. References hideEvent(). Referenced by hideEvent(). |
|
The user dropped something.
|
|
The user dropped the URLs
|
The documentation for this class was generated from the following files: