2f90225543
Export client.h, workspace.h and options.h so that people can write plugins. svn path=/trunk/kdebase/kwin/; revision=83707
54 lines
1.2 KiB
C++
54 lines
1.2 KiB
C++
#ifndef __KWMTHEMECLIENT_H
|
|
#define __KWMTHEMECLIENT_H
|
|
|
|
#include <qbutton.h>
|
|
#include <qtoolbutton.h>
|
|
#include <kpixmap.h>
|
|
#include "../../client.h"
|
|
class QLabel;
|
|
class QSpacerItem;
|
|
|
|
namespace KWinInternal {
|
|
|
|
// QToolButton uses a 1 pixel border :P
|
|
class MyButton : public QToolButton
|
|
{
|
|
public:
|
|
MyButton(QWidget *parent=0, const char *name=0)
|
|
: QToolButton(parent, name){setAutoRaise(true);}
|
|
protected:
|
|
void drawButtonLabel(QPainter *p);
|
|
};
|
|
|
|
class KWMThemeClient : public KWinInternal::Client
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
KWMThemeClient( Workspace *ws, WId w, QWidget *parent=0, const char *name=0 );
|
|
~KWMThemeClient(){;}
|
|
protected:
|
|
void doShape();
|
|
void drawTitle(QPainter &p);
|
|
void resizeEvent( QResizeEvent* );
|
|
void paintEvent( QPaintEvent* );
|
|
void showEvent( QShowEvent* );
|
|
void windowWrapperShowEvent( QShowEvent* );
|
|
void mouseDoubleClickEvent( QMouseEvent * );
|
|
void init();
|
|
void captionChange( const QString& name );
|
|
void stickyChange(bool on);
|
|
void maximizeChange(bool m);
|
|
MousePosition mousePosition(const QPoint &) const;
|
|
protected slots:
|
|
void slotReset();
|
|
private:
|
|
QPixmap buffer;
|
|
KPixmap *aGradient, *iGradient;
|
|
MyButton *maxBtn, *stickyBtn;
|
|
QSpacerItem *titlebar;
|
|
};
|
|
|
|
};
|
|
|
|
#endif
|
|
|