# kdeui Library API Documentation

Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Source Files

# ksharedpixmap.h

    00001 /* vi: ts=8 sts=4 sw=4
    00002  *
    00003  * $Id: ksharedpixmap.h,v 1.7.4.1 2003/06/05 23:42:37 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 #ifndef Q_WS_QWS // FIXME: Implement for Qt Embedded
    00022 #include <kpixmap.h>
    00023
    00024 class KSharedPixmapPrivate;
    00025
    00051 class KSharedPixmap:
    00052     public QWidget,
    00053     public KPixmap
    00054 {
    00055     Q_OBJECT
    00056
    00057 public:
    00058
    00062     KSharedPixmap();
    00063
    00067     ~KSharedPixmap();
    00068
    00082     bool loadFromShared(const QString & name, const QRect & rect=QRect());
    00083
    00090     bool isAvailable(const QString & name) const;
    00091
    00092 signals:
    00098     void done(bool success);
    00099
    00100 protected:
    00101     bool x11Event(XEvent *);
    00102
    00103 private:
    00104     bool copy(const QString & id, const QRect & rect);
    00105     void init();
    00106
    00107     KSharedPixmapPrivate *d;
    00108 };
    00109 #else
    00110 // Qt Embedded... Let's simply assume KPixmap will do for now. Yes, I know that's broken.
    00111 #define KSharedPixmap KPixmap
    00112 #endif
    00113
    00114 #endif

This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Jan 28 12:57:40 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001