.TH "KPreviewWidgetBase" 3 "28 Jan 2004" "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 \fBKImageFilePreview\fP.
.PP
.SS "Public Slots"

.in +1c
.ti -1c
.RI "virtual void \fBshowPreview\fP (const  \fBKURL\fP &url)=0"
.br
.RI "\fIThis slot is called everytime the user selects another file in the file dialog. \fP"
.ti -1c
.RI "virtual void \fBclearPreview\fP ()=0"
.br
.RI "\fIReimplement this to clear the preview. \fP"
.in -1c
.SS "Public Member Functions"

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

.in +1c
.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 41 of file kpreviewwidgetbase.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KPreviewWidgetBase::KPreviewWidgetBase (\fBQWidget\fP * parent, const char * name = 0)\fC [inline]\fP"
.PP
Constructor. 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 
.RE
.PP
Definition at line 53 of file kpreviewwidgetbase.h.
.PP
References KStdAccel::name().
.SH "Member Function Documentation"
.PP 
.SS "virtual void KPreviewWidgetBase::showPreview (const \fBKURL\fP & url)\fC [pure virtual, slot]\fP"
.PP
This slot is called everytime the user selects another file in the file dialog. 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
Implemented in \fBKImageFilePreview\fP.
.SS "virtual void KPreviewWidgetBase::clearPreview ()\fC [pure virtual, slot]\fP"
.PP
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. Implemented in \fBKImageFilePreview\fP.

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