00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef __TDESharedPixmap_h_Included__
00015 #define __TDESharedPixmap_h_Included__
00016
00017 #include <kpixmap.h>
00018
00019 #ifdef Q_MOC_RUN
00020 #define Q_WS_X11
00021 #endif // Q_MOC_RUN
00022
00023 #ifdef Q_WS_X11
00024
00025 #include <tqstring.h>
00026 #include <tqpixmap.h>
00027 #include <tqwidget.h>
00028
00029 class TDESharedPixmapPrivate;
00030
00056 class TDEUI_EXPORT TDESharedPixmap:
00057 public TQWidget,
00058 public KPixmap
00059 {
00060 Q_OBJECT
00061
00062
00063 public:
00064
00068 TDESharedPixmap();
00069
00073 ~TDESharedPixmap();
00074
00088 bool loadFromShared(const TQString & name, const TQRect & rect=TQRect());
00089
00096 bool isAvailable(const TQString & name) const;
00097
00098 signals:
00104 void done(bool success);
00105
00106 protected:
00107 bool x11Event(XEvent *);
00108
00109 private:
00110 bool copy(const TQString & id, const TQRect & rect);
00111 void init();
00112
00113 TDESharedPixmapPrivate *d;
00114 };
00115 #else // WIN32, Qt Embedded
00116
00117 #define TDESharedPixmap KPixmap
00118 #endif
00119
00120 #endif