KFileDetailView Class Reference
A list-view capable of showing KFileItem'. More...
#include <kfiledetailview.h>
Inheritance diagram for KFileDetailView:


Signals | |
void | dropped (QDropEvent *event, KFileItem *fileItem) |
void | dropped (QDropEvent *event, const KURL::List &urls, const KURL &url) |
Public Member Functions | |
KFileDetailView (QWidget *parent, const char *name) | |
virtual | ~KFileDetailView () |
virtual QWidget * | widget () |
virtual void | clearView () |
virtual void | setAutoUpdate (bool) |
virtual void | setSelectionMode (KFile::SelectionMode sm) |
virtual void | updateView (bool) |
virtual void | updateView (const KFileItem *) |
virtual void | removeItem (const KFileItem *) |
virtual void | listingCompleted () |
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 |
virtual void | insertItem (KFileItem *i) |
virtual void | setSorting (QDir::SortSpec) |
void | ensureItemVisible (const KFileItem *) |
void | mimeTypeDeterminationFinished () |
void | determineIcon (KFileListViewItem *item) |
QScrollView * | scrollWidget () const |
virtual void | readConfig (KConfig *, const QString &group=QString::null) |
virtual void | writeConfig (KConfig *, const QString &group=QString::null) |
Protected Slots | |
void | slotSelectionChanged () |
Protected Member Functions | |
virtual void | keyPressEvent (QKeyEvent *) |
virtual QDragObject * | dragObject () |
virtual void | contentsDragEnterEvent (QDragEnterEvent *e) |
virtual void | contentsDragMoveEvent (QDragMoveEvent *e) |
virtual void | contentsDragLeaveEvent (QDragLeaveEvent *e) |
virtual void | contentsDropEvent (QDropEvent *ev) |
virtual bool | acceptDrag (QDropEvent *e) const |
virtual void | virtual_hook (int id, void *data) |
Protected Attributes | |
int | m_sortingCol |
Detailed Description
A list-view capable of showing KFileItem'.Used in the filedialog for example. Most of the documentation is in KFileView class.
- See also:
- KDirOperator
Definition at line 109 of file kfiledetailview.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 117 of file kfiledetailview.h. Referenced by dragObject(). |
|
pure virtual function, that should be implemented to clear the view. At this moment the list is already empty Implements KFileView. Definition at line 203 of file kfiledetailview.cpp. References QListView::clear(), QPtrList::clear(), and KMimeTypeResolver< IconItem, Parent >::m_lstPendingMimeIconItems. |
|
does a repaint of the view. The default implementation calls Reimplemented from KFileView. Definition at line 334 of file kfiledetailview.cpp. References QListViewItemIterator::current(), KFileListViewItem::fileInfo(), KFileItem::pixmap(), QListViewItem::setPixmap(), and KIcon::SizeSmall. Referenced by determineIcon(). |
|
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 378 of file kfiledetailview.cpp. References KFileItem::extraData(), KMimeTypeResolver< IconItem, Parent >::m_lstPendingMimeIconItems, QPtrList::remove(), and KFileView::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 569 of file kfiledetailview.cpp. References KMimeTypeResolver< IconItem, Parent >::start(). |
|
Tells the view that it should highlight the item. This function must be implemented by the view. Implements KFileView. Definition at line 144 of file kfiledetailview.cpp. References KFileItem::extraData(), and QListView::setSelected(). |
|
Implements KFileView. Definition at line 324 of file kfiledetailview.cpp. References KFileItem::extraData(), and QListViewItem::isSelected(). |
|
Clears any selection, unhighlights everything. Must be implemented by the view. Implements KFileView. Definition at line 174 of file kfiledetailview.cpp. References QListView::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 179 of file kfiledetailview.cpp. References QListView::selectAll(), and KFileView::selectionMode(). |
|
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 188 of file kfiledetailview.cpp. References QListView::invertSelection(). |
|
Reimplement this to set the item having focus. Implements KFileView. Definition at line 156 of file kfiledetailview.cpp. References KFileItem::extraData(), and QListView::setCurrentItem(). |
|
Implements KFileView. Definition at line 165 of file kfiledetailview.cpp. References QListView::currentItem(), and KFileListViewItem::fileInfo(). Referenced by dragObject(). |
|
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 209 of file kfiledetailview.cpp. References QPtrList::append(), KFileView::insertItem(), KFileItem::isMimeTypeKnown(), KMimeTypeResolver< IconItem, Parent >::m_lstPendingMimeIconItems, KFileItem::mimetype(), KURL::path(), KDesktopFile::readName(), KDesktopFile::readType(), KFileItem::setExtraData(), KFileItem::setName(), and KFileItem::url(). |
|
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 464 of file kfiledetailview.cpp. References m_sortingCol, and KFileView::setSorting(). Referenced by KFileDetailView(). |
|
pure virtual function, that should be implemented to make item i visible, i.e. by scrolling the view appropriately. Implements KFileView. Definition at line 492 of file kfiledetailview.cpp. References QListView::ensureItemVisible(), and KFileItem::extraData(). |
|
The user dropped something.
Referenced by contentsDropEvent(). |
|
The user dropped the URLs
|
The documentation for this class was generated from the following files: