kwin/systemclient.h
Daniel M. Duley c7f1a58bd8 Trying different buttons out. On a different note I just saw an imac. I really
like their window frames, but they look huge...

If you want a screenshot I updated the last entry screenshot on
http://mosfet.jorsm.com again.

svn path=/trunk/kdebase/kwin/; revision=35282
1999-11-28 03:39:26 +00:00

49 lines
1.1 KiB
C++

#ifndef __SYSTEMCLIENT_H
#define __SYSTEMCLIENT_H
#include <qbutton.h>
#include <qbitmap.h>
#include <kpixmap.h>
#include "client.h"
class QLabel;
class QSpacerItem;
// get rid of autohide :P
class SystemButton : public QButton
{
public:
SystemButton(QWidget *parent=0, const char *name=0,
const unsigned char *bitmap=NULL);
void setBitmap(const unsigned char *bitmap);
protected:
virtual void drawButton(QPainter *p);
void drawButtonLabel(QPainter *){;}
KPixmap aBackground, iBackground;
QBitmap deco;
};
class SystemClient : public Client
{
Q_OBJECT
public:
SystemClient( Workspace *ws, WId w, QWidget *parent=0, const char *name=0 );
~SystemClient(){;}
protected:
void resizeEvent( QResizeEvent* );
void paintEvent( QPaintEvent* );
void mouseDoubleClickEvent( QMouseEvent * );
void init();
void captionChange( const QString& name );
void stickyChange(bool on);
void maximizeChange(bool m);
private:
SystemButton* button[4];
QSpacerItem* titlebar;
};
#endif