2
jumpslider for winamp skins
3
Copyright (C) 1998 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
14
#include <waVolumeSlider.h>
17
WaVolumeSlider::WaVolumeSlider(WaSkinModell* waSkinModell,
18
QWidget *parent, const char *name) :
19
QWidget(parent,name) {
21
this->waSkinModell=waSkinModell;
22
WaSkinDesc* waSkinDesc=waSkinModell->getWaSkinMapDesc(_WA_MAPPING_VOLUME_BAR);
23
setGeometry((*waSkinDesc->getGeometry()));
27
WaVolumeSlider::~WaVolumeSlider() {
31
void WaVolumeSlider::buildGui() {
32
ws = new WaSlider(waSkinModell,_WA_MAPPING_VOLUME_BAR,
33
_WA_MAPPING_VOLUME_SLIDER,
35
ws->setPixmapSliderButtonUp(SIGNAL(event_WA_SKIN_VOLUME_SLIDER_NORM()),
36
_WA_SKIN_VOLUME_SLIDER_NORM);
37
ws->setPixmapSliderButtonDown(SIGNAL(event_WA_SKIN_VOLUME_SLIDER_PRES()),
38
_WA_SKIN_VOLUME_SLIDER_PRES);
39
ws->setPixmapSliderBar(SIGNAL(event_WA_SKIN_VOLUME_BAR()),
44
connect(ws,SIGNAL(valueChanged(int)),this,SIGNAL(volumeSetValue(int)));
47
QSize WaVolumeSlider::sizeHint() const {
48
return ws->sizeHint();
51
void WaVolumeSlider::paintEvent ( QPaintEvent * paintEvent ) {
56
void WaVolumeSlider::setVolumeValue(int val) {
57
int currVal=ws->value();
64
#include "waVolumeSlider.moc"