24#ifndef _SO_QT_BASIC_SLIDER_
25#define _SO_QT_BASIC_SLIDER_
26#include <Inventor/Qt/OivQtCompat.h>
27#include <Inventor/Qt/SoQtGLWidget.h>
30class SoFloatCallbackList;
33typedef void SoQtBasicSliderCB(
void *userData,
float val);
55 SoQtBasicSlider (QWidget *parent, Type t);
59 void setValue(
float v);
60 float getValue()
const
76 void setBaseColor(
const float rgbOrHsv[3]);
77 const float *getBaseColor() {
return color; }
82 void setWYSIWYG(
SbBool trueOrFalse);
83 SbBool isWYSIWYG() {
return WYSIWYGmode; }
89 void addStartCallback (SoQtBasicSliderCB *f,
void *userData = NULL);
90 void addValueChangedCallback (SoQtBasicSliderCB *f,
void *userData = NULL);
91 void addFinishCallback (SoQtBasicSliderCB *f,
void *userData = NULL);
92 void removeStartCallback (SoQtBasicSliderCB *f,
void *userData = NULL);
93 void removeValueChangedCallback (SoQtBasicSliderCB *f,
void *userData = NULL);
94 void removeFinishCallback (SoQtBasicSliderCB *f,
void *userData = NULL);
97 void interactivity(
SbBool flag ) { interactive = flag; }
98 SbBool isInteractive() {
return interactive; }
103 virtual void redraw();
104 virtual void drawSliderTopRegion();
107 short slx1, sly1, slx2, sly2;
108 short thumx1, thumy1, thumx2, thumy2;
128 void makeDefaultColors();
129 void makeWYSIWYGcolors();
133 SoFloatCallbackList *startCallbacks;
134 SoFloatCallbackList *changedCallbacks;
135 SoFloatCallbackList *finishCallbacks;
138 virtual void sizeChanged(
const SbVec2s &newSize);
139 void processEvent(QEvent *anyevent);
140 static void sliderChangedCB(
void *,
float val);