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

tdeui

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 __TDESharedPixmap_h_Included__
00015 #define __TDESharedPixmap_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 TDESharedPixmapPrivate;
00030 
00056 class TDEUI_EXPORT TDESharedPixmap: 
00057     public TQWidget,
00058     public KPixmap
00059 {
00060     Q_OBJECT
00061     
00062 
00063 public:
00064 
00068     TDESharedPixmap();
00069 
00073     ~TDESharedPixmap();
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     TDESharedPixmapPrivate *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 TDESharedPixmap KPixmap
00118 #endif
00119 
00120 #endif

tdeui

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

tdeui

Skip menu "tdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.6.3
This website is maintained by Timothy Pearson.