109 virtual void destroyWidget();
110 virtual void eventNotify(
unsigned int event, uintptr_t param);
111 virtual SoWidget getLabelWidget();
112 static void initClass();
113 static void exitClass();
114 virtual void setValueFromEdit(
SbBool ) {};
115 virtual void setValueFromSlider(
float ) {};
116 virtual void changeSliderValue() {};
117 virtual void updateFromSensor(
SoSensor* sensor);
119 static void finishCallback(
void *slider,
float newValue);
120 static void valueChangeCallback(
void* slider,
float newValue);
121 virtual void setValue() {};
122 SbBool getActive2d() {
return m_isActive2d; };
125 void changeValueFromSlider(
float newValue);
126 void changeValueAfterFinish(
float newValue);
127 void changeSliderFromEdit();
128 void changeSliderFromSlider(
float num);
131 void updateEditWidget();
132 void updateSliderWidget();
133 void updateLabelWidget();
134 void updateToggleWidget();
138 SoWidget m_sliderWidget;
139 SoWidget m_toggleWidget;
140 SoWidget m_editWidget;
144 SoDialogCustomSlider* m_dialogCustomSlider;
145 bool m_ownDialogCustomSlider;
149 virtual void changeEditValue() {};
151 virtual int computeEditZoneWidth() {
return 0;};
166 virtual SbVec2i32 getComponentInitSize();
170 void createEditWidget();
171 void createLabelWidget();
172 void createSliderWidget();
173 void createToggleWidget();
178 virtual void changeValueVisible();
179 virtual void changeToggleVisible();
180 virtual void changeContinuousTrigger();
181 virtual void changeFormat();
184 virtual void changeEdgeStyle();
185 virtual void changeLabelVisibility();
188 virtual void changeEnable();
189 virtual void changeWidgetEnable(
SbBool state);
190 virtual void changeLabel();
191 virtual void changeLabelAlignment();
196 static char* DialogSlider;
197 static void change3DSkin();
198 static SbBool isSkinLoaded();
199 static void setSkinLoaded(
SbBool loaded);
203 void change3DSliderValue();
204 void change3DCursor();
210 SO_DG_CATALOG_ENTRY_HEADER( labelSep );
211 SO_DG_CATALOG_ENTRY_HEADER( labelSwitch );
212 SO_DG_CATALOG_ENTRY_HEADER( labelProp );
213 SO_DG_CATALOG_ENTRY_HEADER( checkSep );
214 SO_DG_CATALOG_ENTRY_HEADER( checkSwtch );
215 SO_DG_CATALOG_ENTRY_HEADER( checkStateOff );
216 SO_DG_CATALOG_ENTRY_HEADER( checkStateOn );
217 SO_DG_CATALOG_ENTRY_HEADER( sliderSep );
218 SO_DG_CATALOG_ENTRY_HEADER( frameSep );
219 SO_DG_CATALOG_ENTRY_HEADER( frame );
220 SO_DG_CATALOG_ENTRY_HEADER( cursorSep );
221 SO_DG_CATALOG_ENTRY_HEADER( cursor );
222 SO_DG_CATALOG_ENTRY_HEADER( edtSwtch );
223 SO_DG_CATALOG_ENTRY_HEADER( edtFrmSep );
224 SO_DG_CATALOG_ENTRY_HEADER( edtFrmSwtch );
225 SO_DG_CATALOG_ENTRY_HEADER( valueFrame );
226 SO_DG_CATALOG_ENTRY_HEADER( editValueFrame);
227 SO_DG_CATALOG_ENTRY_HEADER( editTextSep );
228 SO_DG_CATALOG_ENTRY_HEADER( editTextProp );
230 SoScale *sliderFrameScale, *sliderEditFrameScale;
231 SoText3 *sliderLabel, *sliderEditText;
232 SoTransform *sliderFrameTransform, *sliderEditFrameTransform;
233 SoTranslation *sliderLabelTranslation, *sliderToggleTranslation;
234 SoTranslation *sliderFrameTranslation, *sliderEditFrameTranslation;
235 SoTranslation *sliderEditTextTranslation, *sliderCursorTranslation, *sliderCursorPosTranslation;
238 virtual void change3DEditValue();
239 virtual void change3DEnable();
243 static SbBool m_isSkinLoaded;
249 void create3DDialogSlider();
250 void update3DSlider();
251 void update3DLabel();
253 virtual void set3DInactive();
254 virtual void change3DLabelVisibility();
255 virtual void change3DLabel();
256 virtual void change3DLabelAlignment();
257 void change3DContinuousTrigger();
258 void change3DValueVisible();
259 void change3DToggleVisible();
261 static void startCB3D(
void *,
SoDragger *inDragger );
262 static void motionCB3D(
void *,
SoDragger *inDragger );
263 static void finishCB3D(
void *,
SoDragger *inDragger );
264 void draggerStartCallback3D();
265 void draggerMotionCallback3D();
266 void draggerFinishCallback3D();
271 virtual void finish3DEditing() {};