ksharedpixmap.h
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 #ifndef __KSharedPixmap_h_Included__
00015 #define __KSharedPixmap_h_Included__
00016 
00017 #include <qstring.h>
00018 #include <qpixmap.h>
00019 #include <qwidget.h>
00020 
00021 #if defined  Q_WS_X11 && ! defined K_WS_QTONLY
00022    
00023 #include <kpixmap.h>
00024 
00025 class KSharedPixmapPrivate;
00026 
00052 class KSharedPixmap: 
00053     public QWidget,
00054     public KPixmap
00055 {
00056     Q_OBJECT
00057 
00058 public:
00059 
00063     KSharedPixmap();
00064 
00068     ~KSharedPixmap();
00069 
00083     bool loadFromShared(const QString & name, const QRect & rect=QRect());
00084 
00091     bool isAvailable(const QString & name) const;
00092 
00093 signals:
00099     void done(bool success);
00100 
00101 protected:
00102     bool x11Event(XEvent *);
00103     
00104 private:
00105     bool copy(const QString & id, const QRect & rect);
00106     void init();
00107 
00108     KSharedPixmapPrivate *d;
00109 };
00110 #else
00111 
00112 #define KSharedPixmap KPixmap
00113 #endif
00114 
00115 #endif
 
This file is part of the documentation for kdeui Library Version 3.2.0.