ksharedpixmap.h
/* vi: ts=8 sts=4 sw=4
*
* $Id: ksharedpixmap.h 363180 2004-11-15 14:50:36Z mueller $
*
* This file is part of the KDE libraries.
* Copyright (C) 1999,2000 Geert Jansen <jansen@kde.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*/
#ifndef __KSharedPixmap_h_Included__
#define __KSharedPixmap_h_Included__
#include <kpixmap.h>
#ifdef Q_WS_X11
#include <qstring.h>
#include <qpixmap.h>
#include <qwidget.h>
class KSharedPixmapPrivate;
class KDEUI_EXPORT KSharedPixmap:
public QWidget,
public KPixmap
{
Q_OBJECT
public:
KSharedPixmap();
~KSharedPixmap();
bool loadFromShared(const QString & name, const QRect & rect=QRect());
bool isAvailable(const QString & name) const;
signals:
void done(bool success);
protected:
bool x11Event(XEvent *);
private:
bool copy(const QString & id, const QRect & rect);
void init();
KSharedPixmapPrivate *d;
};
#else // WIN32, Qt Embedded
// Let's simply assume KPixmap will do for now. Yes, I know that's broken.
#define KSharedPixmap KPixmap
#endif
#endif
KPixmap
KStdAccel::copy
const KShortcut & copy()

KDE Home | KDE Accessibility Home | Description of Access Keys