diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-27 01:04:16 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-27 01:04:16 -0600 |
commit | 5159cd2beb2e87806a5b54e9991b7895285c9d3e (patch) | |
tree | 9b70e8be47a390f8f4d56ead812ab0c9dad88709 /tdeio/tdefile/kimagefilepreview.h | |
parent | c17cb900dcf52b8bd6dc300d4f103392900ec2b4 (diff) | |
download | tdelibs-5159cd2beb2e87806a5b54e9991b7895285c9d3e.tar.gz tdelibs-5159cd2beb2e87806a5b54e9991b7895285c9d3e.zip |
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'tdeio/tdefile/kimagefilepreview.h')
-rw-r--r-- | tdeio/tdefile/kimagefilepreview.h | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/tdeio/tdefile/kimagefilepreview.h b/tdeio/tdefile/kimagefilepreview.h new file mode 100644 index 000000000..0604e08f0 --- /dev/null +++ b/tdeio/tdefile/kimagefilepreview.h @@ -0,0 +1,77 @@ +/* + * + * This file is part of the KDE project. + * Copyright (C) 2001 Martin R. Jones <mjones@kde.org> + * 2001 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 KIMAGEFILEPREVIEW_H +#define KIMAGEFILEPREVIEW_H + +#include <tqpixmap.h> + +#include <kurl.h> +#include <kpreviewwidgetbase.h> + +class TQCheckBox; +class TQPushButton; +class TQLabel; +class TQTimer; + +class KFileDialog; +class KFileItem; +namespace TDEIO { class Job; class PreviewJob; } + +/** + * Image preview widget for the file dialog. + */ +class TDEIO_EXPORT KImageFilePreview : public KPreviewWidgetBase +{ + Q_OBJECT + + public: + KImageFilePreview(TQWidget *parent); + ~KImageFilePreview(); + + virtual TQSize sizeHint() const; + + public slots: + virtual void showPreview(const KURL &url); + virtual void clearPreview(); + + protected slots: + void showPreview(); + void showPreview( const KURL& url, bool force ); + + void toggleAuto(bool); + virtual void gotPreview( const KFileItem*, const TQPixmap& ); + + protected: + virtual void resizeEvent(TQResizeEvent *e); + virtual TDEIO::PreviewJob * createJob( const KURL& url, + int w, int h ); + + private slots: + void slotResult( TDEIO::Job * ); + virtual void slotFailed( const KFileItem* ); + + private: + bool autoMode; + KURL currentURL; + TQTimer *timer; + TQLabel *imageLabel; + TQLabel *infoLabel; + TQCheckBox *autoPreview; + TQPushButton *previewButton; + TDEIO::PreviewJob *m_job; + protected: + virtual void virtual_hook( int id, void* data ); + private: + class KImageFilePreviewPrivate; + KImageFilePreviewPrivate *d; +}; + +#endif // KIMAGEFILEPREVIEW_H |