1999-12-24 01:36:47 +00:00
|
|
|
#ifndef __NEXTCLIENT_H
|
|
|
|
#define __NEXTCLIENT_H
|
|
|
|
|
|
|
|
#include <qbutton.h>
|
|
|
|
#include <qbitmap.h>
|
|
|
|
#include <kpixmap.h>
|
|
|
|
#include "../../client.h"
|
|
|
|
class QLabel;
|
|
|
|
class QSpacerItem;
|
|
|
|
|
2001-02-20 01:20:38 +00:00
|
|
|
namespace KWinInternal {
|
1999-12-24 01:36:47 +00:00
|
|
|
|
|
|
|
// get rid of autohide :P
|
|
|
|
class NextButton : public QButton
|
|
|
|
{
|
|
|
|
public:
|
2000-04-28 11:01:42 +00:00
|
|
|
NextButton(Client *parent=0, const char *name=0,
|
|
|
|
const unsigned char *bitmap=NULL, int bw=0, int bh=0);
|
1999-12-24 01:36:47 +00:00
|
|
|
void setBitmap(const unsigned char *bitmap, int bw, int bh);
|
2000-01-23 23:33:29 +00:00
|
|
|
void reset();
|
1999-12-24 01:36:47 +00:00
|
|
|
protected:
|
|
|
|
virtual void drawButton(QPainter *p);
|
|
|
|
void drawButtonLabel(QPainter *){;}
|
|
|
|
KPixmap aBackground, iBackground;
|
|
|
|
QBitmap deco;
|
2000-04-28 11:01:42 +00:00
|
|
|
Client *client;
|
1999-12-24 01:36:47 +00:00
|
|
|
};
|
|
|
|
|
2001-02-20 01:20:38 +00:00
|
|
|
class NextClient : public KWinInternal::Client
|
1999-12-24 01:36:47 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
NextClient( Workspace *ws, WId w, QWidget *parent=0, const char *name=0 );
|
|
|
|
~NextClient(){;}
|
|
|
|
protected:
|
|
|
|
void resizeEvent( QResizeEvent* );
|
|
|
|
void paintEvent( QPaintEvent* );
|
|
|
|
|
|
|
|
void mouseDoubleClickEvent( QMouseEvent * );
|
|
|
|
void init();
|
|
|
|
void captionChange( const QString& name );
|
|
|
|
void stickyChange(bool on);
|
2000-04-28 11:01:42 +00:00
|
|
|
void activeChange(bool);
|
2000-09-24 10:28:06 +00:00
|
|
|
|
|
|
|
MousePosition mousePosition(const QPoint &) const;
|
|
|
|
|
2000-01-23 23:33:29 +00:00
|
|
|
protected slots:
|
|
|
|
void slotReset();
|
1999-12-24 01:36:47 +00:00
|
|
|
private:
|
|
|
|
NextButton* button[3];
|
|
|
|
QSpacerItem* titlebar;
|
|
|
|
};
|
|
|
|
|
2001-02-20 01:20:38 +00:00
|
|
|
};
|
1999-12-24 01:36:47 +00:00
|
|
|
|
|
|
|
#endif
|