~ubuntu-branches/ubuntu/saucy/kwin-style-crystal/saucy-proposed

« back to all changes in this revision

Viewing changes to client/myrootpixmap.h

  • Committer: Bazaar Package Importer
  • Author(s): Pino Toscano
  • Date: 2009-04-13 16:10:20 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090413161020-sfv3it91oo26artc
Tags: 2.0.3-1
* New upstream release, aimed for KDE 4. (Closes: #522569)
  - Update dependencies to KDE 4.
  - Switch rules to pkg-kde-tools + CDBS.
* Set the kde-extras team as maintainer, putting Hai Zaar and myself as
  uploaders.
* Update copyright, adopt the DEP 5 (r48).
* Bump compat to 7.
* Bump Standards-Version to 3.8.1, no changes required.
* Remove dirs file, unneeded.
* Add Homepage field in control.
* Remove old conflict with 'crystal' package, not even present in Etch.

Show diffs side-by-side

added added

removed removed

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