kdeui Library API Documentation

ksharedpixmap.h

00001 /* vi: ts=8 sts=4 sw=4 00002 * 00003 * $Id: ksharedpixmap.h,v 1.12 2003/10/07 22:53:26 mueller 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 #include <qwidget.h> 00020 00021 #if defined Q_WS_X11 && ! defined K_WS_QTONLY 00022 // FIXME: Implement for Qt Embedded 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 // Qt Embedded... Let's simply assume KPixmap will do for now. Yes, I know that's broken. 00112 #define KSharedPixmap KPixmap 00113 #endif 00114 00115 #endif
KDE Logo
This file is part of the documentation for kdeui Library Version 3.2.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Aug 20 09:48:46 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003