13 #include "uibasemod.h" 24 friend class uiSpinBoxBody;
28 const char* nm=
"SpinBox");
31 void setNrDecimals(
int);
35 void setSpecialValueText(
const char*);
40 void setValue(
double);
41 void setValue(
const char*);
43 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*);
127 int nrdecimals=0,
const char* nm=0);
#define mExpClass(module)
Definition: commondefs.h:157
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
uiLabel * label()
Definition: uispinbox.h:131
const uiSpinBox * box() const
Definition: uispinbox.h:130
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
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
#define od_int64
Definition: plftypes.h:34
mODTextTranslationClass(uiLabeledSpinBox) public uiSpinBox * box()
Definition: uispinbox.h:129
The base class for most UI elements.
Definition: uiobj.h:35
void setMinValue(double d)
Definition: uispinbox.h:68
Definition: uistring.h:88
Definition: uiparent.h:24
uiString suffix_
Definition: uispinbox.h:111
uiLabel * lbl_
Definition: uispinbox.h:136
Definition: uispinbox.h:123
void setInterval(const Interval< int > &i, int s=1)
Definition: uispinbox.h:52
bool focuschgtrigger_
Definition: uispinbox.h:117
Definition: uispinbox.h:22
void setInterval(double start, double stop, double s=1)
Definition: uispinbox.h:62
uiSpinBox * sb_
Definition: uispinbox.h:135
T stop
Definition: ranges.h:91
uiSpinBoxBody * body_
Definition: uispinbox.h:112
float oldvalue_
Definition: uispinbox.h:108
Notifier< uiSpinBox > valueChanging
Definition: uispinbox.h:101
T start
Definition: ranges.h:90
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