cb69226b40
compatible style. This isn't done but currently reads most of the entries. It requires you use kwinrc and kdeglobals so kthememgr will need to be updated if you don't want to apply things manually ;-) I also have to add custom cursor positioning and some other small things. Also, KWM used a bitmap to set the mask and I do for now as well. This needs to change into regions as it is *really* inefficent with KWin. For now installing the .desktop for the plugin is disabled. I will provide some screenshots for the curious when I launch mosfet.org ;-) svn path=/trunk/kdebase/kwin/; revision=37503
47 lines
1.1 KiB
C++
47 lines
1.1 KiB
C++
#ifndef __KWMTHEMECLIENT_H
|
|
#define __KWMTHEMECLIENT_H
|
|
|
|
#include <qbutton.h>
|
|
#include <qtoolbutton.h>
|
|
#include <kpixmap.h>
|
|
#include "../../client.h"
|
|
class QLabel;
|
|
class QSpacerItem;
|
|
|
|
// QToolButton uses a 1 pixel border :P
|
|
class MyButton : public QToolButton
|
|
{
|
|
public:
|
|
MyButton(QWidget *parent=0, const char *name=0)
|
|
: QToolButton(parent, name){;}
|
|
protected:
|
|
void drawButtonLabel(QPainter *p);
|
|
};
|
|
|
|
class KWMThemeClient : public Client
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
KWMThemeClient( Workspace *ws, WId w, QWidget *parent=0, const char *name=0 );
|
|
~KWMThemeClient(){;}
|
|
protected:
|
|
void doShape();
|
|
void drawTitle(QPainter &p);
|
|
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);
|
|
private:
|
|
KPixmap *aGradient, *iGradient;
|
|
MyButton *maxBtn, *stickyBtn;
|
|
QSpacerItem *titlebar;
|
|
};
|
|
|
|
|
|
|
|
#endif
|