de782ec37b
and it kept segfaulting because I wasn't releasing windows, and b) The plugins didn't want to resolve anything in the kwin executable, only to the other libs. I finally solved this by using -rdynamic in kwin's LDFLAGS, which I hope is okay ;-) svn path=/trunk/kdebase/kwin/; revision=37234
48 lines
1 KiB
C++
48 lines
1 KiB
C++
#ifndef __NEXTCLIENT_H
|
|
#define __NEXTCLIENT_H
|
|
|
|
#include <qbutton.h>
|
|
#include <qbitmap.h>
|
|
#include <kpixmap.h>
|
|
#include "../../client.h"
|
|
class QLabel;
|
|
class QSpacerItem;
|
|
|
|
|
|
// get rid of autohide :P
|
|
class NextButton : public QButton
|
|
{
|
|
public:
|
|
NextButton(QWidget *parent=0, const char *name=0,
|
|
const unsigned char *bitmap=NULL, int bw=0, int bh=0);
|
|
void setBitmap(const unsigned char *bitmap, int bw, int bh);
|
|
protected:
|
|
virtual void drawButton(QPainter *p);
|
|
void drawButtonLabel(QPainter *){;}
|
|
KPixmap aBackground, iBackground;
|
|
QBitmap deco;
|
|
};
|
|
|
|
class NextClient : public 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);
|
|
private:
|
|
NextButton* button[3];
|
|
QSpacerItem* titlebar;
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|