4
#include <qguardedptr.h>
14
* A slider that can be moved around while being
17
class L33tSlider : public QSlider
21
L33tSlider(QWidget * parent, const char * name=0);
22
L33tSlider(Orientation, QWidget * parent, const char * name=0);
23
L33tSlider(int minValue, int maxValue, int pageStep, int value,
24
Orientation, QWidget * parent, const char * name=0);
26
bool currentlyPressed() const;
29
* emmited only when the user changes the value by hand
31
void userChanged(int value);
34
virtual void setValue(int);
36
virtual void mousePressEvent(QMouseEvent*);
37
virtual void mouseReleaseEvent(QMouseEvent*);
38
virtual void wheelEvent(QWheelEvent *);
44
* A slider for your toolbar
46
class SliderAction : public KAction
50
SliderAction(const QString& text, int accel, const QObject *receiver,
51
const char *member, QObject* parent, const char* name );
52
virtual int plug( QWidget *w, int index = -1 );
53
virtual void unplug( QWidget *w );
54
QSlider* slider() const { return m_slider; }
60
void toolbarMoved(KToolBar::BarPosition pos);
62
QGuardedPtr<QSlider> m_slider;
64
const QObject *m_receiver;