kio Library API Documentation

KFileMetaPreview Class Reference

Inheritance diagram for KFileMetaPreview:

KPreviewWidgetBase QWidget List of all members.

Public Slots

virtual void showPreview (const KURL &url)
virtual void clearPreview ()

Public Member Functions

 KFileMetaPreview (QWidget *parent, const char *name=0)
 ~KFileMetaPreview ()
virtual void addPreviewProvider (const QString &mimeType, KPreviewWidgetBase *provider)
virtual void clearPreviewProviders ()

Protected Member Functions

virtual KPreviewWidgetBasepreviewProviderFor (const QString &mimeType)
virtual void virtual_hook (int id, void *data)

Detailed Description

Definition at line 18 of file kfilemetapreview.h.


Member Function Documentation

void KFileMetaPreview::showPreview const KURL url  )  [virtual, slot]
 

This slot is called every time the user selects another file in the file dialog.

Implement the stuff necessary to reflect the change here.

Parameters:
url The URL of the currently selected file.

Implements KPreviewWidgetBase.

Definition at line 106 of file kfilemetapreview.cpp.

References clearPreview(), KMimeType::findByURL(), previewProviderFor(), QWidgetStack::raiseWidget(), KPreviewWidgetBase::showPreview(), and QWidgetStack::visibleWidget().

void KFileMetaPreview::clearPreview  )  [virtual, slot]
 

Reimplement this to clear the preview.

This is called when e.g. the selection is cleared or when multiple selections exist, or the directory is changed.

Implements KPreviewWidgetBase.

Definition at line 126 of file kfilemetapreview.cpp.

References QWidgetStack::visibleWidget().

Referenced by showPreview().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kio Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Jan 23 19:33:40 2006 by doxygen 1.4.3 written by Dimitri van Heesch, © 1997-2003