3 #ifndef __QfNumericField_H
4 #define __QfNumericField_H
9 #include <zm/qvfcdefs.h>
10 #include <zm/QfTextField.H>
20 char szTextBuf[QfNUMERIC_FIELD_LENGTH+1];
25 #define VAR_VERIFY(T,I) \
32 VAR_VERIFY(Int1, int_1);
33 VAR_VERIFY(Int2, int_2);
34 VAR_VERIFY(Int4, int_4);
35 VAR_VERIFY(Real4, real_4);
36 VAR_VERIFY(Real8, real_8);
41 static void verify_text_cb (Widget w, XtPointer pUserData,
45 static void scale_changed_cb (Widget w, XtPointer pUserData,
49 virtual void this_to_scaler (
char* szBuf = NULL);
52 virtual void scaler_to_this ();
59 virtual int parse_input (
char* szInput,
66 virtual int check_input (
char* szInput);
69 virtual void numeric_range_fault ();
72 virtual void convert_to_number_fault (
char* szInput);
78 Int1 vMin = SCHAR_MIN, Int1 vMax = SCHAR_MAX,
81 Int2 vMin = SHRT_MIN, Int2 vMax = SHRT_MAX,
84 Int4 vMin = INT_MIN, Int4 vMax = INT_MAX,
87 Real4 vMin = -FLT_MAX, Real4 vMax = FLT_MAX,
90 Real8 vMin = -DBL_MAX, Real8 vMax = DBL_MAX,
Definition: QfTextField.H:14
Definition: QfNumericField.H:16
Definition: QfNumericField.H:24
virtual void create_self(Widget wParent)