kfilemetapreview.h
/*
* This file is part of the KDE project.
* Copyright (C) 2003 Carsten Pfeiffer <pfeiffer@kde.org>
*
* You can Freely distribute this program under the GNU Library General Public
* License. See the file "COPYING" for the exact licensing terms.
*/
#ifndef KFILEMETAPREVIEW_H
#define KFILEMETAPREVIEW_H
#include <qdict.h>
#include <qwidgetstack.h>
#include <kpreviewwidgetbase.h>
#include <kurl.h>
class KIO_EXPORT KFileMetaPreview : public KPreviewWidgetBase
{
Q_OBJECT
public:
KFileMetaPreview(QWidget *parent, const char *name = 0);
~KFileMetaPreview();
virtual void addPreviewProvider( const QString& mimeType,
KPreviewWidgetBase *provider );
virtual void clearPreviewProviders();
public slots:
virtual void showPreview(const KURL &url);
virtual void clearPreview();
protected:
virtual KPreviewWidgetBase *previewProviderFor( const QString& mimeType );
protected:
virtual void virtual_hook( int id, void* data );
private:
void initPreviewProviders();
QWidgetStack *m_stack;
QDict<KPreviewWidgetBase> m_previewProviders;
bool haveAudioPreview;
// may return 0L
static KPreviewWidgetBase * createAudioPreview( QWidget *parent );
static bool s_tryAudioPreview;
private:
class KFileMetaPreviewPrivate;
KFileMetaPreviewPrivate *d;
};
#endif // KFILEMETAPREVIEW_H
KPreviewWidgetBase::showPreview
virtual void showPreview(const KURL &url)=0
This slot is called every time the user selects another file in the file dialog.
KPreviewWidgetBase::clearPreview
virtual void clearPreview()=0
Reimplement this to clear the preview.
KPreviewWidgetBase
Abstract baseclass for all preview widgets which shall be used via KFileDialog::setPreviewWidget(cons...
Definition: kpreviewwidgetbase.h:44

KDE Home | KDE Accessibility Home | Description of Access Keys