diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2013-03-02 15:57:34 -0600 |
---|---|---|
committer | Darrell Anderson <humanreadable@yahoo.com> | 2013-03-02 15:57:34 -0600 |
commit | 7c0b0c9dc9fcbe9c198925bdc7ee18ac6be49f4f (patch) | |
tree | c76702a7f6310fbe9d437e347535422e836e94e9 /kio/kfile/kimagefilepreview.h | |
parent | a2a38be7600e2a2c2b49c66902d912ca036a2c0f (diff) | |
parent | 27bbee9a5f9dcda53d8eb23863ee670ad1360e41 (diff) | |
download | tdelibs-7c0b0c9dc9fcbe9c198925bdc7ee18ac6be49f4f.tar.gz tdelibs-7c0b0c9dc9fcbe9c198925bdc7ee18ac6be49f4f.zip |
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tdelibs
Diffstat (limited to 'kio/kfile/kimagefilepreview.h')
-rw-r--r-- | kio/kfile/kimagefilepreview.h | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/kio/kfile/kimagefilepreview.h b/kio/kfile/kimagefilepreview.h deleted file mode 100644 index 864fc5d31..000000000 --- a/kio/kfile/kimagefilepreview.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - * - * 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 KIO { class Job; class PreviewJob; } - -/** - * Image preview widget for the file dialog. - */ -class KIO_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 KIO::PreviewJob * createJob( const KURL& url, - int w, int h ); - - private slots: - void slotResult( KIO::Job * ); - virtual void slotFailed( const KFileItem* ); - - private: - bool autoMode; - KURL currentURL; - TQTimer *timer; - TQLabel *imageLabel; - TQLabel *infoLabel; - TQCheckBox *autoPreview; - TQPushButton *previewButton; - KIO::PreviewJob *m_job; - protected: - virtual void virtual_hook( int id, void* data ); - private: - class KImageFilePreviewPrivate; - KImageFilePreviewPrivate *d; -}; - -#endif // KIMAGEFILEPREVIEW_H |