• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KIO

  • kio
  • kfile
kimagefilepreview.h
Go to the documentation of this file.
1/*
2 *
3 * This file is part of the KDE project.
4 * Copyright (C) 2001 Martin R. Jones <mjones@kde.org>
5 * 2001 Carsten Pfeiffer <pfeiffer@kde.org>
6 * 2008 Rafael Fernández López <ereslibre@kde.org>
7 *
8 * You can Freely distribute this program under the GNU Library General Public
9 * License. See the file "COPYING" for the exact licensing terms.
10 */
11
12#ifndef KIMAGEFILEPREVIEW_H
13#define KIMAGEFILEPREVIEW_H
14
15#include <QtGui/QPixmap>
16
17#include <kurl.h>
18#include <kpreviewwidgetbase.h>
19
20class KFileItem;
21class KJob;
22namespace KIO { class PreviewJob; }
23
27class KIO_EXPORT KImageFilePreview : public KPreviewWidgetBase
28{
29 Q_OBJECT
30
31 public:
37 explicit KImageFilePreview(QWidget *parent = 0);
38
42 ~KImageFilePreview();
43
47 virtual QSize sizeHint() const;
48
49 public Q_SLOTS:
53 virtual void showPreview(const KUrl &url);
54
58 virtual void clearPreview();
59
60 protected Q_SLOTS:
61 void showPreview();
62 void showPreview( const KUrl& url, bool force );
63
64 virtual void gotPreview( const KFileItem&, const QPixmap& );
65
66 protected:
67 virtual void resizeEvent( QResizeEvent *event );
68 virtual KIO::PreviewJob * createJob( const KUrl& url, int width, int height );
69
70 private:
71 class KImageFilePreviewPrivate;
72 KImageFilePreviewPrivate *const d;
73
74 Q_DISABLE_COPY(KImageFilePreview)
75
76 Q_PRIVATE_SLOT( d, void _k_slotResult( KJob* ) )
77 Q_PRIVATE_SLOT( d, void _k_slotFailed( const KFileItem& ) )
78 Q_PRIVATE_SLOT( d, void _k_slotStepAnimation( int frame ) )
79 Q_PRIVATE_SLOT( d, void _k_slotFinished( ) )
80};
81
82#endif // KIMAGEFILEPREVIEW_H
KFileItem
A KFileItem is a generic class to handle a file, local or remote.
Definition: kfileitem.h:46
KIO::PreviewJob
KIO Job to get a thumbnail picture.
Definition: previewjob.h:39
KImageFilePreview
Image preview widget for the file dialog.
Definition: kimagefilepreview.h:28
KJob
KPreviewWidgetBase
Abstract baseclass for all preview widgets which shall be used via KFileDialog::setPreviewWidget(cons...
Definition: kpreviewwidgetbase.h:44
KUrl
QWidget
kpreviewwidgetbase.h
kurl.h
KIO
A namespace for KIO globals.
Definition: kbookmarkmenu.h:55
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal