1999-10-11 02:01:17 +00:00
|
|
|
#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:
|
1999-11-09 11:01:31 +00:00
|
|
|
SystemButton(QWidget *parent=0, const char *name=0,
|
|
|
|
const unsigned char *bitmap=NULL);
|
|
|
|
void setBitmap(const unsigned char *bitmap);
|
1999-10-11 02:01:17 +00:00
|
|
|
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:
|
1999-11-30 04:44:03 +00:00
|
|
|
void drawRoundFrame(QPainter &p, int x, int y, int w, int h);
|
1999-10-11 02:01:17 +00:00
|
|
|
void resizeEvent( QResizeEvent* );
|
|
|
|
void paintEvent( QPaintEvent* );
|
1999-11-30 04:44:03 +00:00
|
|
|
void showEvent( QShowEvent* );
|
|
|
|
void windowWrapperShowEvent( QShowEvent* );
|
1999-10-11 02:01:17 +00:00
|
|
|
void mouseDoubleClickEvent( QMouseEvent * );
|
|
|
|
void init();
|
|
|
|
void captionChange( const QString& name );
|
1999-11-09 11:01:31 +00:00
|
|
|
void stickyChange(bool on);
|
1999-11-28 03:39:26 +00:00
|
|
|
void maximizeChange(bool m);
|
1999-11-30 04:44:03 +00:00
|
|
|
void doShape();
|
1999-12-10 00:27:15 +00:00
|
|
|
protected slots:
|
|
|
|
void slotContextHelp();
|
1999-10-11 02:01:17 +00:00
|
|
|
private:
|
1999-12-10 00:27:15 +00:00
|
|
|
SystemButton* button[5];
|
1999-10-11 02:01:17 +00:00
|
|
|
QSpacerItem* titlebar;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|