\section{KImage\-File\-Preview Class Reference}
\label{classKImageFilePreview}\index{KImageFilePreview@{KImageFilePreview}}
Image preview widget for the file dialog.  


{\tt \#include $<$kimagefilepreview.h$>$}

Inheritance diagram for KImage\-File\-Preview:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=77pt]{classKImageFilePreview__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KImage\-File\-Preview:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=199pt]{classKImageFilePreview__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{CompactItemize}
\item 
virtual void {\bf show\-Preview} (const  {\bf KURL} \&url)
\begin{CompactList}\small\item\em This slot is called everytime the user selects another file in the file dialog. \item\end{CompactList}\item 
virtual void {\bf clear\-Preview} ()
\begin{CompactList}\small\item\em Reimplement this to clear the preview. \item\end{CompactList}\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KImage\-File\-Preview} ({\bf QWidget} $\ast$parent)\label{classKImageFilePreview_a0}

\item 
virtual {\bf QSize} {\bf size\-Hint} () const \label{classKImageFilePreview_a2}

\end{CompactItemize}
\subsection*{Protected Slots}
\begin{CompactItemize}
\item 
void {\bf show\-Preview} ()\label{classKImageFilePreview_j0}

\item 
void {\bf show\-Preview} (const  {\bf KURL} \&url, bool force)\label{classKImageFilePreview_j1}

\item 
void {\bf toggle\-Auto} (bool)\label{classKImageFilePreview_j2}

\item 
virtual void {\bf got\-Preview} (const  {\bf KFile\-Item} $\ast$, const  {\bf QPixmap} \&)\label{classKImageFilePreview_j3}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf resize\-Event} ({\bf QResize\-Event} $\ast$e)\label{classKImageFilePreview_b0}

\item 
virtual {\bf KIO::Preview\-Job} $\ast$ {\bf create\-Job} (const  {\bf KURL} \&url, int w, int h)\label{classKImageFilePreview_b1}

\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKImageFilePreview_b2}

\end{CompactItemize}


\subsection{Detailed Description}
Image preview widget for the file dialog. 



Definition at line 34 of file kimagefilepreview.h.

\subsection{Member Function Documentation}
\index{KImageFilePreview@{KImage\-File\-Preview}!showPreview@{showPreview}}
\index{showPreview@{showPreview}!KImageFilePreview@{KImage\-File\-Preview}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KImage\-File\-Preview::show\-Preview (const {\bf KURL} \& {\em url})\hspace{0.3cm}{\tt  [virtual, slot]}}\label{classKImageFilePreview_i0}


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

Implement the stuff necessary to reflect the change here.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]The URL of the currently selected file. \end{description}
\end{Desc}


Implements {\bf KPreview\-Widget\-Base} {\rm (p.\,\pageref{classKPreviewWidgetBase_i0})}.

Definition at line 76 of file kimagefilepreview.cpp.\index{KImageFilePreview@{KImage\-File\-Preview}!clearPreview@{clearPreview}}
\index{clearPreview@{clearPreview}!KImageFilePreview@{KImage\-File\-Preview}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KImage\-File\-Preview::clear\-Preview ()\hspace{0.3cm}{\tt  [virtual, slot]}}\label{classKImageFilePreview_i1}


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 {\bf KPreview\-Widget\-Base} {\rm (p.\,\pageref{classKPreviewWidgetBase_i1})}.

Definition at line 158 of file kimagefilepreview.cpp.

References QLabel::clear(), and KIO::Job::kill().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
kimagefilepreview.h\item 
kimagefilepreview.cpp\end{CompactItemize}
