kdeui Library API Documentation

ksharedpixmap.h

00001 /* vi: ts=8 sts=4 sw=4
00002  *
00003  * $Id: ksharedpixmap.h,v 1.7 2001/11/01 20:45:46 bieker Exp $
00004  *
00005  * This file is part of the KDE libraries.
00006  * Copyright (C) 1999,2000 Geert Jansen <jansen@kde.org>
00007  *
00008  * This library is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Library General Public
00010  * License as published by the Free Software Foundation; either
00011  * version 2 of the License, or (at your option) any later version.
00012  */
00013 
00014 #ifndef __KSharedPixmap_h_Included__
00015 #define __KSharedPixmap_h_Included__
00016 
00017 #include <qstring.h>
00018 #include <qpixmap.h>
00019 
00020 #ifndef Q_WS_QWS // FIXME: Implement for Qt Embedded
00021 #include <kpixmap.h>
00022 
00023 class KSharedPixmapPrivate;
00024 
00050 class KSharedPixmap: 
00051     public QWidget,
00052     public KPixmap
00053 {
00054     Q_OBJECT
00055 
00056 public:
00057 
00061     KSharedPixmap();
00062 
00066     ~KSharedPixmap();
00067 
00081     bool loadFromShared(const QString & name, const QRect & rect=QRect());
00082 
00089     bool isAvailable(const QString & name) const;
00090 
00091 signals:
00097     void done(bool success);
00098 
00099 protected:
00100     bool x11Event(XEvent *);
00101     
00102 private:
00103     bool copy(const QString & id, const QRect & rect);
00104     void init();
00105 
00106     KSharedPixmapPrivate *d;
00107 };
00108 #else
00109 // Qt Embedded... Let's simply assume KPixmap will do for now. Yes, I know that's broken.
00110 #define KSharedPixmap KPixmap
00111 #endif
00112 
00113 #endif
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.0.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Oct 8 12:21:01 2003 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2001