Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
kdeui
kdeui
kdeui
ksharedpixmap.h
1
/* vi: ts=8 sts=4 sw=4
2
*
3
* $Id$
4
*
5
* This file is part of the KDE libraries.
6
* Copyright (C) 1999,2000 Geert Jansen <jansen@kde.org>
7
*
8
* This library is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU Library General Public
10
* License as published by the Free Software Foundation; either
11
* version 2 of the License, or (at your option) any later version.
12
*/
13
14
#ifndef __KSharedPixmap_h_Included__
15
#define __KSharedPixmap_h_Included__
16
17
#include <kpixmap.h>
18
19
#ifdef Q_MOC_RUN
20
#define Q_WS_X11
21
#endif // Q_MOC_RUN
22
23
#ifdef Q_WS_X11
24
25
#include <tqstring.h>
26
#include <tqpixmap.h>
27
#include <tqwidget.h>
28
29
class
KSharedPixmapPrivate;
30
56
class
KDEUI_EXPORT KSharedPixmap:
57
public
TQWidget,
58
public
KPixmap
59
{
60
Q_OBJECT
61
TQ_OBJECT
62
63
public
:
64
68
KSharedPixmap();
69
73
~KSharedPixmap();
74
88
bool
loadFromShared(
const
TQString & name,
const
TQRect & rect=TQRect());
89
96
bool
isAvailable(
const
TQString & name)
const
;
97
98
signals:
104
void
done(
bool
success);
105
106
protected
:
107
bool
x11Event(XEvent *);
108
109
private
:
110
bool
copy
(
const
TQString &
id
,
const
TQRect & rect);
111
void
init();
112
113
KSharedPixmapPrivate *d;
114
};
115
#else // WIN32, Qt Embedded
116
// Let's simply assume KPixmap will do for now. Yes, I know that's broken.
117
#define KSharedPixmap KPixmap
118
#endif
119
120
#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