2
standard Button for winamp Skin
3
Copyright (C) 1999 Martin Vogt
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation.
9
For more information look at the file COPYRIGHT in this package
17
WaStereo::WaStereo(WaSkinModell* waSkinModell,QWidget* parent,char* name):
19
this->waSkinModell=waSkinModell;
20
connect(waSkinModell,SIGNAL(event_WA_SKIN_MONOSTER_STEREO_FALSE()),
21
this,SLOT(pixmapChange()));
22
stereoPixmap=new QPixmap();
23
noStereoPixmap=new QPixmap();
25
QSize size=sizeHint();
26
stereoPixmap->resize(size.width(),size.height());
27
noStereoPixmap->resize(size.width(),size.height());
29
WaSkinDesc* waSkinDesc=
30
waSkinModell->getWaSkinMapDesc(_WA_MAPPING_MONOSTER_STEREO);
31
setGeometry((*waSkinDesc->getGeometry()));
35
WaStereo::~WaStereo() {
36
delete noStereoPixmap;
43
QSize WaStereo::sizeHint() const {
44
WaSkinDesc* waSkinDesc=
45
waSkinModell->getWaSkinMapDesc(_WA_MAPPING_MONOSTER_STEREO);
46
return QSize(waSkinDesc->getWidgetWidth(),waSkinDesc->getWidgetHeight());
50
void WaStereo::paintEvent ( QPaintEvent * paintEvent ) {
54
int stereo=getStereo();
57
paint.drawPixmap(0,0,*stereoPixmap);
61
paint.drawPixmap(0,0,*noStereoPixmap);
68
void WaStereo::setStereo(int lStereo) {
69
this->lStereo=lStereo;
73
int WaStereo::getStereo() {
78
void WaStereo::pixmapChange() {
80
stereoPixmap=waSkinModell->get(_WA_SKIN_MONOSTER_STEREO_TRUE);
81
noStereoPixmap=waSkinModell->get(_WA_SKIN_MONOSTER_STEREO_FALSE);
86
#include "waStereo.moc"