diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-28 22:44:34 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-31 23:30:34 +0900 |
| commit | f9abd9d505434c9244c03eac708e29a0ca042f6b (patch) | |
| tree | 30a197ab4c413849188bc131ff859212e636c821 /src/app/KViewer/kimagefilepreview.h | |
| parent | 14d42d284de233f9937becf3fc9ee0dabede3b21 (diff) | |
| download | krusader-r14.1.x.tar.gz krusader-r14.1.x.zip | |
Restructure source foldersr14.1.x
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 086012dcad8a976a0dabbb7cbc20c9cb612cdfa9)
Diffstat (limited to 'src/app/KViewer/kimagefilepreview.h')
| -rw-r--r-- | src/app/KViewer/kimagefilepreview.h | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/src/app/KViewer/kimagefilepreview.h b/src/app/KViewer/kimagefilepreview.h new file mode 100644 index 0000000..ada0806 --- /dev/null +++ b/src/app/KViewer/kimagefilepreview.h @@ -0,0 +1,71 @@ +/* +* +* This file is part of the KDE project. +* Copyright (C) 2001 Martin R. Jones <mjones@kde.org> +* 2001 Carsten Pfeiffer <pfeiffer@kde.org> +* +* Modified for Krusader by Shie Erlich, October 2004 +* +* You can Freely distribute this program under the GNU Library General Public +* License. See the file "COPYING" for the exact licensing terms. +*/ + +#ifndef KrusaderImageFilePreview_H +#define KrusaderImageFilePreview_H + +#include <tqpixmap.h> + +#include <kurl.h> +#include <kpreviewwidgetbase.h> + +class TQCheckBox; +class TQPushButton; +class TQLabel; +class TQTimer; + +class KFileDialog; +class KFileItem; + +class KrusaderImageFilePreview : public KPreviewWidgetBase { + TQ_OBJECT + + + public: + KrusaderImageFilePreview( TQWidget *parent ); + ~KrusaderImageFilePreview(); + + 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 ); + + 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: + KURL currentURL; + TQTimer *timer; + TQLabel *imageLabel; + TQLabel *infoLabel; + TDEIO::PreviewJob *m_job; + protected: + virtual void virtual_hook( int id, void* data ); + private: + class KrusaderImageFilePreviewPrivate; + KrusaderImageFilePreviewPrivate *d; +}; + +#endif // KrusaderImageFilePreview_H |
