15 #include "uibasemod.h" 71 Right=Below, Both=3 };
75 void setText(
const char*);
76 const char*
text()
const;
82 float editValue()
const;
89 void setScale(
float fact,
float constant);
97 void setLinearScale(
double,
double);
101 void setTickStep(
int);
102 int tickStep()
const;
106 void setInverted(
bool);
107 bool isInverted()
const;
108 void setInvertedControls(
bool);
109 bool hasInvertedControls()
const;
118 float getLinearFraction()
const;
119 void setLinearFraction(
float fraction);
137 void init(
const Setup&,
const char*);
142 float userValue(
int)
const;
143 int sliderValue(
float)
const;
#define mExpClass(module)
Definition: commondefs.h:160
uiSliderObj * slider_
Definition: uislider.h:128
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
uiLabel * label()
Definition: uislider.h:122
Definition: uislider.h:42
BufferString result_
Definition: uislider.h:133
uiSliderObj * slider()
Definition: uislider.h:124
void setToolTip(const uiString &)
void setInterval(int start, int stop, int s=1)
Definition: uispinbox.h:50
bool logscale_
Definition: uislider.h:135
TickPosition
Definition: uislider.h:70
static const uiString & emptyString()
Definition: uistring.h:109
Setup(const uiString &l=uiString::emptyString())
Definition: uislider.h:48
uiSliderBody & body()
Definition: uislider.h:34
The base class for most UI elements.
Definition: uiobj.h:38
Definition: uistring.h:89
Definition: uiparent.h:26
Notifier< uiSlider > sliderPressed
Definition: uislider.h:115
Notifier< uiSlider > sliderReleased
Definition: uislider.h:116
Notifier< uiSlider > sliderMoved
Definition: uislider.h:114
Definition: uislider.h:28
bool isLogScale()
Definition: uislider.h:111
Definition: uislider.h:45
uiSpinBox * inteditfld_
Definition: uislider.h:131
#define mDefSetupMemb(typ, memb)
Definition: commondefs.h:137
StepInterval< int > getInterval() const
uiLabel * lbl_
Definition: uislider.h:129
Definition: uispinbox.h:24
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
uiSpinBoxBody * body_
Definition: uispinbox.h:112
uiLineEdit * editfld_
Definition: uislider.h:130
uiSpinBoxBody & mkbody(uiParent *, const char *)
Notifier< uiSlider > valueChanged
Definition: uislider.h:113
float getValue() const
Definition: uislider.h:146
Definition: uilineedit.h:51
const char * text() const
uiSliderBody * body_
Definition: uislider.h:37
Linear scaling.
Definition: scaler.h:55
LinScaler * scaler_
Definition: uislider.h:134
void setStep(int, bool snap_cur_value=false)
const uiLabel * label() const
Definition: uislider.h:121
Orientation
Fundamental orientation in 2D UIs.
Definition: oduicommon.h:23