KPreviewWidgetBase Class Reference
Abstract baseclass for all preview widgets which shall be used via KFileDialog::setPreviewWidget(const KPreviewWidgetBase *). Abstract baseclass for all preview widgets. More...
#include <kpreviewwidgetbase.h>
Inheritance diagram for KPreviewWidgetBase:

Public Slots | |
virtual void | showPreview (const KURL &url)=0 |
This slot is called everytime the user selects another file in the file dialog. | |
virtual void | clearPreview ()=0 |
Reimplement this to clear the preview. | |
Public Member Functions | |
KPreviewWidgetBase (QWidget *parent, const char *name=0) | |
Constructor. | |
Protected Member Functions | |
virtual void | virtual_hook (int, void *) |
Detailed Description
Abstract baseclass for all preview widgets which shall be used via KFileDialog::setPreviewWidget(const KPreviewWidgetBase *). Abstract baseclass for all preview widgets.Ownership will be transferred to KFileDialog, so you have to create the preview with "new" and let KFileDialog delete it.
Just derive your custom preview widget from KPreviewWidgetBase and implement all the pure virtual methods. The slot showPreview(const KURL &) is called every time the file selection changes.
- Author:
- Frerich Raabe <raabe@kde.org>
Definition at line 41 of file kpreviewwidgetbase.h.
Constructor & Destructor Documentation
|
Constructor. Construct the user interface of your preview widget here and pass the KFileDialog this preview widget is going to be used in as the parent.
Definition at line 53 of file kpreviewwidgetbase.h. References KStdAccel::name(). |
Member Function Documentation
|
This slot is called everytime the user selects another file in the file dialog. Implement the stuff necessary to reflect the change here.
Implemented in KImageFilePreview. |
|
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 KImageFilePreview. |
The documentation for this class was generated from the following file: