blob: dc0b72ce20a026210493df5a7a822fe5a7dfb06b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
/* vi: ts=8 sts=4 sw=4
*
* $Id: krootpixmap.h,v 1.15 2003/05/19 08:02:48 coolo Exp $
* This file is part of the KDE project, module kdesktop.
* Copyright (C) 1999,2000 Geert Jansen <jansen@kde.org>
*
* You can Freely distribute this program under the GNU Library General
* Public License. See the file "COPYING.LIB" for the exact licensing terms.
*/
/* Modified by Sascha Hlusiak */
#ifndef __KRootPixmap_h_Included__
#define __KRootPixmap_h_Included__
#include <qobject.h>
#include <qcolor.h>
#ifndef Q_WS_QWS //FIXME
class QRect;
class QWidget;
class QTimer;
class KSharedPixmap;
class KMyRootPixmapData;
class KMyRootPixmap: public QObject
{
Q_OBJECT
public:
KMyRootPixmap( QWidget *target=NULL, const char *name=0 );
KMyRootPixmap( QWidget *target, QObject *parent, const char *name=0 );
virtual ~KMyRootPixmap();
bool isAvailable();
bool isActive() const { return m_bActive; }
int currentDesktop() const;
// bool customPainting() const { return m_bCustomPaint; }
#ifndef KDE_NO_COMPAT
bool checkAvailable(bool) { return isAvailable(); }
#endif
public slots:
virtual void start();
virtual void stop();
// void setFadeEffect(double strength, const QColor &color);
void repaint( bool force );
void repaint();
// void setCustomPainting( bool enable ) { m_bCustomPaint = enable; }
void enableExports();
static QString pixmapName(int desk);
signals:
void backgroundUpdated( const QImage *pm );
protected:
// virtual bool eventFilter(QObject *, QEvent *);
virtual void updateBackground( KSharedPixmap * );
private slots:
// void slotBackgroundChanged(int);
void slotDone(bool);
private:
bool m_bActive, m_bInit/*, m_bCustomPaint*/;
int m_Desk;
// double m_Fade;
// QColor m_FadeColor;
QRect m_Rect;
// QWidget *m_pWidget;
// QTimer *m_pTimer;
KSharedPixmap *m_pPixmap;
// KMyRootPixmapData *d;
void init();
};
#endif // ! Q_WS_QWS
#endif // __KRootPixmap_h_Included__
|