15 #include "uibasemod.h" 26 friend class uiSpinBoxBody;
30 const char* nm=
"SpinBox");
33 void setNrDecimals(
int);
37 void setSpecialValueText(
const char*);
41 void setValue(
double);
42 void setValue(
const char*);
44 int getIntValue()
const;
45 double getDValue()
const;
46 float getFValue()
const;
47 bool getBoolValue()
const;
48 const char* text()
const;
66 void setMinValue(
int);
67 void setMinValue(
float);
70 float minFValue()
const;
72 void setMaxValue(
int);
73 void setMaxValue(
float);
74 void setMaxValue(
double);
76 float maxFValue()
const;
78 void setStep(
int,
bool snap_cur_value=
false);
79 void setStep(
float,
bool snap_cur_value=
false);
80 void setStep(
double d,
bool snap_cur_value=
false );
84 void stepBy(
int nrsteps );
90 void doSnap(
bool yn ) { dosnap_ = yn; }
92 void setKeyboardTracking(
bool);
93 bool keyboardTracking()
const;
94 void setFocusChangeTrigger(
bool);
95 bool focusChangeTrigger()
const;
97 bool handleLongTabletPress();
98 void popupVirtualKeyboard(
int globalx=-1,
int globaly=-1);
103 void notifyHandler(
bool editingfinished);
105 void translateText();
113 uiSpinBoxBody& mkbody(
uiParent*,
const char*);
132 int nrdecimals=0,
const char* nm=0);
#define mExpClass(module)
Definition: commondefs.h:160
float getfValue() const
Definition: uispinbox.h:123
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
uiLabel * label()
Definition: uispinbox.h:136
const uiSpinBox * box() const
Definition: uispinbox.h:135
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
void setInterval(int start, int stop, int s=1)
Definition: uispinbox.h:50
void setInterval(float start, float stop, float s=1)
Definition: uispinbox.h:57
int getValue() const
Definition: uispinbox.h:122
mODTextTranslationClass(uiLabeledSpinBox) public uiSpinBox * box()
Definition: uispinbox.h:134
The base class for most UI elements.
Definition: uiobj.h:38
double getdValue() const
Definition: uispinbox.h:124
void setMinValue(double d)
Definition: uispinbox.h:68
Definition: uistring.h:89
Definition: uiparent.h:26
uiString suffix_
Definition: uispinbox.h:111
uiLabel * lbl_
Definition: uispinbox.h:141
Definition: uispinbox.h:128
void setInterval(const Interval< int > &i, int s=1)
Definition: uispinbox.h:52
bool focuschgtrigger_
Definition: uispinbox.h:117
Definition: uispinbox.h:24
void setInterval(double start, double stop, double s=1)
Definition: uispinbox.h:62
uiSpinBox * sb_
Definition: uispinbox.h:140
T stop
Definition: ranges.h:93
uiSpinBoxBody * body_
Definition: uispinbox.h:112
float oldvalue_
Definition: uispinbox.h:108
Notifier< uiSpinBox > valueChanging
Definition: uispinbox.h:101
T start
Definition: ranges.h:92
uiString prefix_
Definition: uispinbox.h:110
void doSnap(bool yn)
Definition: uispinbox.h:90
bool dosnap_
Definition: uispinbox.h:115
Notifier< uiSpinBox > valueChanged
Definition: uispinbox.h:100