• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KIO

kimagefilepreview.h

Go to the documentation of this file.
00001 /*
00002  *
00003  * This file is part of the KDE project.
00004  * Copyright (C) 2001 Martin R. Jones <mjones@kde.org>
00005  *               2001 Carsten Pfeiffer <pfeiffer@kde.org>
00006  *               2008 Rafael Fernández López <ereslibre@kde.org>
00007  *
00008  * You can Freely distribute this program under the GNU Library General Public
00009  * License. See the file "COPYING" for the exact licensing terms.
00010  */
00011 
00012 #ifndef KIMAGEFILEPREVIEW_H
00013 #define KIMAGEFILEPREVIEW_H
00014 
00015 #include <QtGui/QPixmap>
00016 
00017 #include <kurl.h>
00018 #include <kpreviewwidgetbase.h>
00019 
00020 class KFileItem;
00021 class KJob;
00022 namespace KIO { class PreviewJob; }
00023 
00027 class KIO_EXPORT KImageFilePreview : public KPreviewWidgetBase
00028 {
00029     Q_OBJECT
00030 
00031     public:
00037         explicit KImageFilePreview(QWidget *parent = 0);
00038 
00042         ~KImageFilePreview();
00043 
00047         virtual QSize sizeHint() const;
00048 
00049     public Q_SLOTS:
00053         virtual void showPreview(const KUrl &url);
00054 
00058         virtual void clearPreview();
00059 
00060     protected Q_SLOTS:
00061         void showPreview();
00062         void showPreview( const KUrl& url, bool force );
00063 
00064         virtual void gotPreview( const KFileItem&, const QPixmap& );
00065 
00066     protected:
00067         virtual void resizeEvent( QResizeEvent *event );
00068         virtual KIO::PreviewJob * createJob( const KUrl& url, int width, int height );
00069 
00070     private:
00071         class KImageFilePreviewPrivate;
00072         KImageFilePreviewPrivate *const d;
00073 
00074         Q_DISABLE_COPY(KImageFilePreview)
00075 
00076         Q_PRIVATE_SLOT( d, void _k_slotResult( KJob* ) )
00077         Q_PRIVATE_SLOT( d, void _k_slotFailed( const KFileItem& ) )
00078         Q_PRIVATE_SLOT( d, void _k_slotStepAnimation( int frame ) )
00079         Q_PRIVATE_SLOT( d, void _k_slotFinished( ) )
00080 };
00081 
00082 #endif // KIMAGEFILEPREVIEW_H

KIO

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal