org.kde.koala

Class KPreviewWidgetBase

public class KPreviewWidgetBase extends QWidget

Abstract baseclass for all preview widgets which shall be used via KFileDialog.setPreviewWidget(const KPreviewWidgetBase ). 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 methods. The slot showPreview(KURL) is called every time the file selection changes.

Author: Frerich Raabe

UNKNOWN: Abstract baseclass for all preview widgets.

Constructor Summary
protected KPreviewWidgetBase(Class dummy)
Method Summary
StringclassName()
voidclearPreview()
Reimplement this to clear the preview.
QMetaObjectmetaObject()
voidshowPreview(KURL url)
This slot is called every time the user selects another file in the file dialog.
ArrayListsupportedMimeTypes()

Constructor Detail

KPreviewWidgetBase

protected KPreviewWidgetBase(Class dummy)

Method Detail

className

public String className()

clearPreview

public void clearPreview()
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.

UNKNOWN: Reimplement this to clear the preview.

metaObject

public QMetaObject metaObject()

showPreview

public void showPreview(KURL url)
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.

UNKNOWN: This slot is called every time the user selects another file in the file dialog.

supportedMimeTypes

public ArrayList supportedMimeTypes()