173 virtual void destroyWidget();
174 virtual void eventNotify(
unsigned int event, uintptr_t param);
175 virtual SoWidget getLabelWidget();
176 static void initClass();
177 static void exitClass();
178 virtual void updateFromSensor(
SoSensor* sensor);
179 void processEvent(
SbBool force);
181 void updateLabelWidget();
182 void updateEditTextWidget();
184 void applyDlgCptAuditor();
187 SoWidget m_editTextWidget;
195 void createLabelWidget();
196 void createEditTextWidget();
197 virtual SbVec2i32 getComponentInitSize();
200 virtual void changeEditable();
201 virtual void changeMultiLine();
202 virtual void changeWrapLine();
203 virtual void changeEditText();
204 virtual void changeEnable();
205 virtual void changeWidgetEnable(
SbBool state);
206 virtual void changeLabel();
207 virtual void changeLabelAlignment();
208 virtual void changeLabelVisibility();
209 virtual void changeEdgeStyle();
211 virtual void setFocus();
222 static char* DialogEditText;
223 static void change3DSkin();
224 static SbBool isSkinLoaded();
225 static void setSkinLoaded(
SbBool loaded);
226 void insertCharTo3DText(
char c);
227 void removeCharIn3DText();
230 SO_DG_CATALOG_ENTRY_HEADER( labelSep );
231 SO_DG_CATALOG_ENTRY_HEADER( labelSwitch );
232 SO_DG_CATALOG_ENTRY_HEADER( labelProp );
234 SO_DG_CATALOG_ENTRY_HEADER( scrollVSwitch );
235 SO_DG_CATALOG_ENTRY_HEADER( downSep );
236 SO_DG_CATALOG_ENTRY_HEADER( downSwitch );
237 SO_DG_CATALOG_ENTRY_HEADER( downPressed );
238 SO_DG_CATALOG_ENTRY_HEADER( downReleased );
239 SO_DG_CATALOG_ENTRY_HEADER( upSep );
240 SO_DG_CATALOG_ENTRY_HEADER( upSwitch );
241 SO_DG_CATALOG_ENTRY_HEADER( upPressed );
242 SO_DG_CATALOG_ENTRY_HEADER( upReleased );
243 SO_DG_CATALOG_ENTRY_HEADER( scrollVSep );
244 SO_DG_CATALOG_ENTRY_HEADER( scrollVBack );
245 SO_DG_CATALOG_ENTRY_HEADER( scrollVFrame );
246 SO_DG_CATALOG_ENTRY_HEADER( cursorVSep );
247 SO_DG_CATALOG_ENTRY_HEADER( cursorVFrame );
249 SO_DG_CATALOG_ENTRY_HEADER( scrollHSwitch );
250 SO_DG_CATALOG_ENTRY_HEADER( leftSep );
251 SO_DG_CATALOG_ENTRY_HEADER( leftSwitch );
252 SO_DG_CATALOG_ENTRY_HEADER( leftPressed );
253 SO_DG_CATALOG_ENTRY_HEADER( leftReleased );
254 SO_DG_CATALOG_ENTRY_HEADER( rightSep );
255 SO_DG_CATALOG_ENTRY_HEADER( rightSwitch );
256 SO_DG_CATALOG_ENTRY_HEADER( rightPressed );
257 SO_DG_CATALOG_ENTRY_HEADER( rightReleased );
258 SO_DG_CATALOG_ENTRY_HEADER( scrollHSep );
259 SO_DG_CATALOG_ENTRY_HEADER( scrollHBack );
260 SO_DG_CATALOG_ENTRY_HEADER( scrollHFrame );
261 SO_DG_CATALOG_ENTRY_HEADER( cursorHSep );
262 SO_DG_CATALOG_ENTRY_HEADER( cursorHFrame );
264 SO_DG_CATALOG_ENTRY_HEADER( editSep );
265 SO_DG_CATALOG_ENTRY_HEADER( frameSep );
266 SO_DG_CATALOG_ENTRY_HEADER( frameSwitch );
267 SO_DG_CATALOG_ENTRY_HEADER( frame );
268 SO_DG_CATALOG_ENTRY_HEADER( editFrame );
269 SO_DG_CATALOG_ENTRY_HEADER( textSep );
270 SO_DG_CATALOG_ENTRY_HEADER( textProp );
272 SO_DG_CATALOG_ENTRY_HEADER( caretSep );
273 SO_DG_CATALOG_ENTRY_HEADER( caretSwitch );
274 SO_DG_CATALOG_ENTRY_HEADER( caretFrame );
278 SoText3 *editTextText, *editTextLabel;
279 SoTranslation *editTextLabelTranslation, *editTextFrameTranslation;
280 SoTranslation *editTextTextTranslation, *scrollVCursorTranslation, *scrollHCursorTranslation;
281 SoTranslation *editTextDownTranslation, *editTextUpTranslation;
282 SoTranslation *editTextLeftTranslation, *editTextRightTranslation;
283 SoTranslation *editTextScrollVTranslation, *scrollVCursorPosTranslation, *editTextCaretTranslation;
284 SoTranslation *editTextScrollHTranslation, *scrollHCursorPosTranslation, *editTextScrollTextTranslation;
286 SoScale *editTextButtonScale, *editTextScrollVScale, *editTextScrollHScale;
287 SoScale *scrollVCursorScale, *scrollHCursorScale, *editTextCaretScale;
288 SoTransform *editTextFrameTransform, *scrollVFrameTransform, *scrollHFrameTransform;
289 SoClipPlane *editTextClipPlaneTop, *editTextClipPlaneBottom;
290 SoClipPlane *editTextClipPlaneLeft, *editTextClipPlaneRight;
295 SbVec3f m_initialVPos, m_initialHPos;
298 int m_current3DCaretPos;
302 void create3DDialogEditText();
303 void update3DEditText();
304 void update3DLabel();
305 void update3DCursors();
306 void update3DScrollBars();
307 void update3DTextPosition();
308 void update3DTextScrollPosition();
309 void move3DCursor(
float inc);
310 void move3DCaret(
int line,
int pos);
311 void update3DTextCache(
int prevLine);
314 void change3DEditText();
315 virtual void change3DLabelVisibility();
316 virtual void change3DLabel();
317 virtual void change3DLabelAlignment();
318 virtual void set3DInactive();
320 static void startCB3D(
void *,
SoDragger *inDragger );
321 static void motionCB3D(
void *,
SoDragger *inDragger );
322 static void finishCB3D(
void *,
SoDragger *inDragger );
324 void draggerStartCallback3D();
325 void draggerMotionCallback3D();
326 void draggerFinishCallback3D();
328 void finish3DEditing();
330 static SbBool m_isSkinLoaded;
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Dialog EditText ...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Dialog EditText ...
void removeAuditor(SoDialogEditTextAuditor *auditor)
Removes the specified editTextAuditor from the auditor list.
SoSFBool editable
Allows writing in the edit zone.
void addAuditor(SoDialogEditTextAuditor *auditor)
Adds a dialogEditTextAuditor to the current editText component.
SoSFBool trigOnEnter
When trigOnEnter is TRUE, the associated auditor is called only when the <ENTER> key is pressed.
SoSFBool isNumeric
Specifies if typed text is numeric only.