1
#ifndef __KWMTHEMECLIENT_H
2
#define __KWMTHEMECLIENT_H
7
#include <kdecoration.h>
8
#include <kdecorationfactory.h>
15
class MyButton : public QToolButton
18
MyButton(QWidget *parent=0, const char *name=0)
19
: QToolButton(parent, name){setAutoRaise(true);setCursor( arrowCursor ); }
21
void drawButtonLabel(QPainter *p);
24
class KWMThemeClient : public KDecoration
28
KWMThemeClient( KDecorationBridge* b, KDecorationFactory* f );
31
void resize( const QSize& s );
32
QSize minimumSize() const;
33
void borders( int& left, int& right, int& top, int& bottom ) const;
36
void drawTitle(QPainter &p);
37
void resizeEvent( QResizeEvent* );
38
void paintEvent( QPaintEvent* );
39
void showEvent( QShowEvent* );
40
void mouseDoubleClickEvent( QMouseEvent * );
41
bool eventFilter( QObject* o, QEvent* e );
44
void maximizeChange();
47
void shadeChange() {};
48
Position mousePosition(const QPoint &) const;
51
void menuButtonPressed();
55
KPixmap *aGradient, *iGradient;
56
MyButton *maxBtn, *stickyBtn, *mnuBtn;
57
QSpacerItem *titlebar;
61
class KWMThemeFactory : public KDecorationFactory
66
KDecoration* createDecoration( KDecorationBridge* b );
67
bool reset( unsigned long mask );