6
* Ported to kwin_iii by Chris Lee <clee@kde.org>
7
* Karol Szwed <gallium@kde.org>
8
* http://gallium.n3.net/
10
* Based on the default KWin client.
12
* Updated to support the new API 9/2003 (CL)
13
* Updated to emulate More Accurately 9/2003 (CL)
14
* Updated to support toolwindows 3/2001 (KS)
18
#ifndef __KDE_REDMOND_H
19
#define __KDE_REDMOND_H
22
#include <kcommondecoration.h>
23
#include <kdecorationfactory.h>
29
class RedmondButton : public KCommonDecorationButton
33
RedmondButton(ButtonType type, RedmondDeco *parent);
34
void setBitmap(const unsigned char *bitmap);
35
void setPixmap(const QPixmap &p);
36
void reset(unsigned long changed);
39
void paintEvent(QPaintEvent *);
40
virtual void drawButton(QPainter *p);
41
void drawButtonLabel(QPainter *){;}
49
class RedmondDeco : public KCommonDecoration
52
RedmondDeco(KDecorationBridge *, KDecorationFactory *);
55
virtual QString visibleName() const;
56
virtual QString defaultButtonsLeft() const;
57
virtual QString defaultButtonsRight() const;
58
virtual bool decorationBehaviour(DecorationBehaviour behaviour) const;
59
virtual int layoutMetric(LayoutMetric lm, bool respectWindowState = true, const KCommonDecorationButton * = 0) const;
60
virtual KCommonDecorationButton *createButton(ButtonType type);
65
virtual void reset( unsigned long changed );
67
void paintEvent(QPaintEvent*);
73
class RedmondDecoFactory : public QObject, public KDecorationFactory
78
virtual ~RedmondDecoFactory();
79
virtual KDecoration *createDecoration(KDecorationBridge *);
80
virtual bool reset(unsigned long);
81
virtual bool supports( Ability ability );
82
virtual QList< BorderSize > borderSizes() const;
91
// kate: space-indent off; tab-width 4;