• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kdeui
 

kdeui

ksharedpixmap.h
00001 /* vi: ts=8 sts=4 sw=4
00002  *
00003  * $Id$
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_MOC_RUN
00020 #define Q_WS_X11
00021 #endif // Q_MOC_RUN
00022 
00023 #ifdef Q_WS_X11
00024 
00025 #include <tqstring.h>
00026 #include <tqpixmap.h>
00027 #include <tqwidget.h>
00028 
00029 class KSharedPixmapPrivate;
00030 
00056 class KDEUI_EXPORT KSharedPixmap: 
00057     public TQWidget,
00058     public KPixmap
00059 {
00060     Q_OBJECT
00061     TQ_OBJECT
00062 
00063 public:
00064 
00068     KSharedPixmap();
00069 
00073     ~KSharedPixmap();
00074 
00088     bool loadFromShared(const TQString & name, const TQRect & rect=TQRect());
00089 
00096     bool isAvailable(const TQString & name) const;
00097 
00098 signals:
00104     void done(bool success);
00105 
00106 protected:
00107     bool x11Event(XEvent *);
00108     
00109 private:
00110     bool copy(const TQString & id, const TQRect & rect);
00111     void init();
00112 
00113     KSharedPixmapPrivate *d;
00114 };
00115 #else // WIN32, Qt Embedded
00116 // Let's simply assume KPixmap will do for now. Yes, I know that's broken.
00117 #define KSharedPixmap KPixmap
00118 #endif
00119 
00120 #endif

kdeui

Skip menu "kdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeui

Skip menu "kdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdeui by doxygen 1.7.6.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |