49aba34b01
today. First: All decoration pixmaps are now regenerated when the palette color scheme changes. There is no longer any need to apply color schemes *before* switching styles or reload the plugin. The schemes can change any time and be handled correctly by styles that generate their pixmaps based on the color scheme. Second: The color scheme has been extended to allow separate entries for different visual styles. For example there are now entries for both titlebar rectangle fills like those used in the standard KDE style and KStep vs. titlebar grooves like those used in System. The same thing applies to foreground colors for buttons that follow the button background settings like KStep and System vs. those that don't like the standard style. Right now none of the color schemes have the new entries so defaults are calculated, usually by judging the intensity of what the decoration is drawn on and contrasted with that. To check things out look at the standard, KStep, and System styles under color schemes like default, CDE, and Digital CDE. The Be style is not updated because I have a cooler one on my HD ;-) I hope this makes David happier <grin> :) svn path=/trunk/kdebase/kwin/; revision=39126
51 lines
1.1 KiB
C++
51 lines
1.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);
|
|
void reset();
|
|
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);
|
|
protected slots:
|
|
void slotReset();
|
|
private:
|
|
NextButton* button[3];
|
|
QSpacerItem* titlebar;
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|