kwin/clients/laptop/laptopclient.h
Matthias Ettrich 5b1fb25c55 less flicker for default. Clean-up namespace for classes
(several clients used different versions of the same class 'SystemButton')

svn path=/trunk/kdebase/kwin/; revision=61249
2000-08-16 13:11:21 +00:00

57 lines
1.3 KiB
C++

#ifndef __LAPTOPCLIENT_H
#define __LAPTOPCLIENT_H
#include <qbutton.h>
#include <qbitmap.h>
#include <kpixmap.h>
#include "../../client.h"
class QLabel;
class QSpacerItem;
// get rid of autohide :P
class LaptopClientButton : public QButton
{
public:
LaptopClientButton(int w, int h, Client *parent=0, const char *name=0,
const unsigned char *bitmap=NULL);
void setBitmap(const unsigned char *bitmap);
void reset();
//QSize sizeHint() const;
protected:
virtual void drawButton(QPainter *p);
void drawButtonLabel(QPainter *){;}
QBitmap deco;
Client *client;
};
class LaptopClient : public Client
{
Q_OBJECT
public:
LaptopClient( Workspace *ws, WId w, QWidget *parent=0, const char *name=0 );
~LaptopClient(){;}
MousePosition mousePosition( const QPoint& ) const;
protected:
void resizeEvent( QResizeEvent* );
void paintEvent( QPaintEvent* );
void showEvent( QShowEvent* );
void windowWrapperShowEvent( QShowEvent* );
void mouseDoubleClickEvent( QMouseEvent * );
void init();
void captionChange( const QString& name );
void stickyChange(bool on);
void maximizeChange(bool m);
void doShape();
void activeChange(bool);
protected slots:
void slotReset();
private:
LaptopClientButton* button[5];
QSpacerItem* titlebar;
};
#endif