2001-06-24 17:12:39 +00:00
|
|
|
#ifndef __NEXTCLIENT_H
|
|
|
|
#define __NEXTCLIENT_H
|
|
|
|
|
|
|
|
#include <qbitmap.h>
|
|
|
|
#include <kpixmap.h>
|
|
|
|
#include "../../client.h"
|
2001-07-01 10:10:17 +00:00
|
|
|
#include "../../kwinbutton.h"
|
2001-06-24 17:12:39 +00:00
|
|
|
class QLabel;
|
|
|
|
class QSpacerItem;
|
|
|
|
|
|
|
|
namespace KWinInternal {
|
|
|
|
|
2001-07-01 10:10:17 +00:00
|
|
|
class NextButton : public KWinInternal::KWinButton
|
2001-06-24 17:12:39 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
NextButton(Client *parent=0, const char *name=0,
|
2001-07-01 10:10:17 +00:00
|
|
|
const unsigned char *bitmap=NULL, int bw=0, int bh=0,
|
|
|
|
const QString& tip=NULL);
|
2001-06-24 17:12:39 +00:00
|
|
|
void setBitmap(const unsigned char *bitmap, int bw, int bh);
|
|
|
|
void reset();
|
|
|
|
protected:
|
|
|
|
virtual void drawButton(QPainter *p);
|
|
|
|
void drawButtonLabel(QPainter *){;}
|
|
|
|
KPixmap aBackground, iBackground;
|
|
|
|
QBitmap deco;
|
|
|
|
Client *client;
|
|
|
|
};
|
|
|
|
|
|
|
|
class NextClient : public KWinInternal::Client
|
|
|
|
{
|
|
|
|
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);
|
|
|
|
void activeChange(bool);
|
|
|
|
|
|
|
|
MousePosition mousePosition(const QPoint &) const;
|
|
|
|
|
|
|
|
protected slots:
|
|
|
|
void slotReset();
|
|
|
|
private:
|
|
|
|
NextButton* button[3];
|
|
|
|
QSpacerItem* titlebar;
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|