• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kio

KImageFilePreview Class Reference

Image preview widget for the file dialog. More...

#include <kimagefilepreview.h>

Inheritance diagram for KImageFilePreview:

Inheritance graph
[legend]

List of all members.


Public Slots

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

Public Member Functions

 KImageFilePreview (QWidget *parent)
virtual QSize sizeHint () const
 ~KImageFilePreview ()

Protected Slots

virtual void gotPreview (const KFileItem *, const QPixmap &)
void showPreview (const KURL &url, bool force)
void showPreview ()
void toggleAuto (bool)

Protected Member Functions

virtual KIO::PreviewJob * createJob (const KURL &url, int w, int h)
virtual void resizeEvent (QResizeEvent *e)
virtual void virtual_hook (int id, void *data)

Detailed Description

Image preview widget for the file dialog.

Definition at line 31 of file kimagefilepreview.h.


Constructor & Destructor Documentation

KImageFilePreview::KImageFilePreview ( QWidget *  parent  ) 

Definition at line 34 of file kimagefilepreview.cpp.

KImageFilePreview::~KImageFilePreview (  ) 

Definition at line 68 of file kimagefilepreview.cpp.


Member Function Documentation

void KImageFilePreview::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 173 of file kimagefilepreview.cpp.

KIO::PreviewJob * KImageFilePreview::createJob ( const KURL &  url,
int  w,
int  h 
) [protected, virtual]

Definition at line 145 of file kimagefilepreview.cpp.

void KImageFilePreview::gotPreview ( const KFileItem *  item,
const QPixmap &  pm 
) [protected, virtual, slot]

Definition at line 152 of file kimagefilepreview.cpp.

void KImageFilePreview::resizeEvent ( QResizeEvent *  e  )  [protected, virtual]

Reimplemented from QWidget.

Definition at line 135 of file kimagefilepreview.cpp.

void KImageFilePreview::showPreview ( const KURL &  url,
bool  force 
) [protected, slot]

Definition at line 91 of file kimagefilepreview.cpp.

void KImageFilePreview::showPreview (  )  [protected, slot]

Definition at line 78 of file kimagefilepreview.cpp.

void KImageFilePreview::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 86 of file kimagefilepreview.cpp.

QSize KImageFilePreview::sizeHint (  )  const [virtual]

Reimplemented from QWidget.

Definition at line 140 of file kimagefilepreview.cpp.

void KImageFilePreview::toggleAuto ( bool  a  )  [protected, slot]

Definition at line 124 of file kimagefilepreview.cpp.

void KImageFilePreview::virtual_hook ( int  id,
void *  data 
) [protected, virtual]

Reimplemented from KPreviewWidgetBase.

Definition at line 184 of file kimagefilepreview.cpp.


The documentation for this class was generated from the following files:
  • kimagefilepreview.h
  • kimagefilepreview.cpp

kio

Skip menu "kio"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal