| # kdeui Library API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Namespaces | Source Files

# ksharedpixmap.h

    00001 /* vi: ts=8 sts=4 sw=4
    00002  *
    00003  * $Id: ksharedpixmap.h 363180 2004-11-15 14:50:36Z mueller $
    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 <kpixmap.h>
    00018
    00019 #ifdef Q_WS_X11
    00020
    00021 #include <qstring.h>
    00022 #include <qpixmap.h>
    00023 #include <qwidget.h>
    00024
    00025 class KSharedPixmapPrivate;
    00026
    00052 class KDEUI_EXPORT 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 // WIN32, Qt Embedded
    00111 // Let's simply assume KPixmap will do for now. Yes, I know that's broken.
    00112 #define KSharedPixmap KPixmap
    00113 #endif
    00114
    00115 #endif

This file is part of the documentation for kdeui Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 11 20:20:22 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003