.TH "KPreviewWidgetBase" kde3 "11 Jun 2005" "Version Version 3.4.1" "kio Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KPreviewWidgetBase \- Abstract baseclass for all preview widgets which shall be used via \fBKFileDialog::setPreviewWidget(const KPreviewWidgetBase *)\fP. Abstract baseclass for all preview widgets.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kpreviewwidgetbase.h>\fP
.PP
Inherits \fBQWidget\fP.
.PP
Inherited by KFileMetaPreview, and \fBKImageFilePreview\fP.
.PP
.SS "Public Slots"

.in +1c
.ti -1c
.RI "virtual void \fBshowPreview\fP (const \fBKURL\fP &url)=0"
.br
.ti -1c
.RI "virtual void \fBclearPreview\fP ()=0"
.br
.ti -1c
.RI "\fBQStringList\fP \fBsupportedMimeTypes\fP () const "
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKPreviewWidgetBase\fP (\fBQWidget\fP *parent, const char *name=0)"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "void \fBsetSupportedMimeTypes\fP (const \fBQStringList\fP &mimeTypes)"
.br
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int, void *)"
.br
.in -1c
.SH "Detailed Description"
.PP 
Abstract baseclass for all preview widgets which shall be used via \fBKFileDialog::setPreviewWidget(const KPreviewWidgetBase *)\fP. Abstract baseclass for all preview widgets. 

Ownership will be transferred to \fBKFileDialog\fP, so you have to create the preview with 'new' and let \fBKFileDialog\fP delete it.
.PP
Just derive your custom preview widget from KPreviewWidgetBase and implement all the pure virtual methods. The slot \fBshowPreview(const KURL &)\fP is called every time the file selection changes.
.PP
\fBAuthor:\fP
.RS 4
Frerich Raabe <raabe@kde.org> 
.RE
.PP

.PP
Definition at line 44 of file kpreviewwidgetbase.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KPreviewWidgetBase::KPreviewWidgetBase (\fBQWidget\fP * parent, const char * name = \fC0\fP)"
.PP
Constructor. 
.PP
Construct the user interface of your preview widget here and pass the \fBKFileDialog\fP this preview widget is going to be used in as the parent.
.PP
\fBParameters:\fP
.RS 4
\fIparent\fP The \fBKFileDialog\fP this preview widget is going to be used in 
.br
\fIname\fP The internal name of this object 
.RE
.PP

.PP
Definition at line 20 of file kpreviewwidgetbase.cpp.
.PP
References QPtrDict::insert().
.SH "Member Function Documentation"
.PP 
.SS "virtual void KPreviewWidgetBase::showPreview (const \fBKURL\fP & url)\fC [pure virtual, slot]\fP"
.PP
This slot is called every time the user selects another file in the file dialog. 
.PP
Implement the stuff necessary to reflect the change here.
.PP
\fBParameters:\fP
.RS 4
\fIurl\fP The URL of the currently selected file. 
.RE
.PP

.PP
Implemented in \fBKImageFilePreview\fP.
.SS "virtual void KPreviewWidgetBase::clearPreview ()\fC [pure virtual, slot]\fP"
.PP
Reimplement this to clear the preview. 
.PP
This is called when e.g. the selection is cleared or when multiple selections exist, or the directory is changed. 
.PP
Implemented in \fBKImageFilePreview\fP.

.SH "Author"
.PP 
Generated automatically by Doxygen for kio Library from the source code.
