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 <waJumpSlider.h>
17
WaJumpSlider::WaJumpSlider(WaSkinModell* waSkinModell,
18
QWidget *parent, const char *name) :
19
QWidget(parent,name) {
21
this->waSkinModell=waSkinModell;
22
WaSkinDesc* waSkinDesc=
23
waSkinModell->getWaSkinMapDesc(_WA_MAPPING_POS_BAR);
24
setGeometry((*waSkinDesc->getGeometry()));
28
WaJumpSlider::~WaJumpSlider() {
32
void WaJumpSlider::buildGui() {
33
ws = new WaSlider(waSkinModell,_WA_MAPPING_POS_BAR,
34
_WA_MAPPING_POS_BAR_SLIDER,
36
ws->setPixmapSliderButtonUp(SIGNAL(event_WA_SKIN_POS_BAR_SLIDER_NORM()),
37
_WA_SKIN_POS_BAR_SLIDER_NORM);
38
ws->setPixmapSliderButtonDown(SIGNAL(event_WA_SKIN_POS_BAR_SLIDER_PRES()),
39
_WA_SKIN_POS_BAR_SLIDER_PRES);
40
ws->setPixmapSliderBar(SIGNAL(event_WA_SKIN_POS_BAR()),
46
connect(ws,SIGNAL(sliderPressed()),SIGNAL(jumpSliderPressed()));
47
connect(ws,SIGNAL(sliderReleased()),SLOT(sliderReleased()));
50
QSize WaJumpSlider::sizeHint() const {
51
return ws->sizeHint();
54
void WaJumpSlider::paintEvent ( QPaintEvent * paintEvent ) {
59
void WaJumpSlider::sliderReleased() {
62
emit(jumpSliderReleased());
65
void WaJumpSlider::setJumpRange(int val) {
69
void WaJumpSlider::setJumpValue(int val) {
70
int currVal=ws->value();
76
#include "waJumpSlider.moc"