You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.4 KiB
57 lines
1.4 KiB
15 years ago
|
/*
|
||
|
* 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
|
||
|
|
||
14 years ago
|
#include <tqdict.h>
|
||
|
#include <tqwidgetstack.h>
|
||
15 years ago
|
|
||
|
#include <kpreviewwidgetbase.h>
|
||
|
#include <kurl.h>
|
||
|
|
||
12 years ago
|
class TDEIO_EXPORT KFileMetaPreview : public KPreviewWidgetBase
|
||
15 years ago
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
14 years ago
|
KFileMetaPreview(TQWidget *parent, const char *name = 0);
|
||
15 years ago
|
~KFileMetaPreview();
|
||
|
|
||
14 years ago
|
virtual void addPreviewProvider( const TQString& mimeType,
|
||
15 years ago
|
KPreviewWidgetBase *provider );
|
||
|
virtual void clearPreviewProviders();
|
||
|
|
||
|
public slots:
|
||
|
virtual void showPreview(const KURL &url);
|
||
|
virtual void clearPreview();
|
||
|
|
||
|
protected:
|
||
14 years ago
|
virtual KPreviewWidgetBase *previewProviderFor( const TQString& mimeType );
|
||
15 years ago
|
|
||
|
protected:
|
||
|
virtual void virtual_hook( int id, void* data );
|
||
|
|
||
|
private:
|
||
|
void initPreviewProviders();
|
||
|
|
||
14 years ago
|
TQWidgetStack *m_stack;
|
||
|
TQDict<KPreviewWidgetBase> m_previewProviders;
|
||
15 years ago
|
bool haveAudioPreview;
|
||
|
|
||
|
// may return 0L
|
||
14 years ago
|
static KPreviewWidgetBase * createAudioPreview( TQWidget *parent );
|
||
15 years ago
|
static bool s_tryAudioPreview;
|
||
|
|
||
|
private:
|
||
|
class KFileMetaPreviewPrivate;
|
||
|
KFileMetaPreviewPrivate *d;
|
||
|
};
|
||
|
|
||
|
#endif // KFILEMETAPREVIEW_H
|