Image Component Library (ICL)
|
Handle class for slider componets. More...
#include <SliderHandle.h>
Public Member Functions | |
SliderHandle () | |
Creates and empty slider handle. | |
SliderHandle (ThreadedUpdatableSlider *sl, GUIWidget *w, QLCDNumber *lcd=0) | |
create a slider handle | |
QLCDNumber * | getDisplay () |
retuns the QLCDNumber that is used as display | |
void | setMin (int min) |
set the min value | |
void | setMax (int max) |
set the max value | |
void | setRange (int min, int max) |
set the range of the slider | |
void | setValue (int val) |
set the current value of the slider | |
void | setAll (int min, int max, int val) |
sets all parameters of a slider | |
int | getMin () const |
returns the current min. of the slider | |
int | getMax () const |
returns the current max. of the slider | |
int | getValue () const |
returns the current value of the slider | |
void | operator= (int val) |
assigns a new value to the slider (equal to setValue) | |
virtual void | registerCallback (const GUI::Callback &cb, const std::string &events="value") |
overloaded method for registering callbacks to specific slider events | |
virtual void | removeCallbacks () |
empties both callback locations (GUIHandleBase and ThreadedUpdatableSlider) | |
Private Attributes | |
QLCDNumber * | lcd |
associated display |
Handle class for slider componets.
icl::qt::SliderHandle::SliderHandle | ( | ) | [inline] |
Creates and empty slider handle.
icl::qt::SliderHandle::SliderHandle | ( | ThreadedUpdatableSlider * | sl, |
GUIWidget * | w, | ||
QLCDNumber * | lcd = 0 |
||
) | [inline] |
create a slider handle
QLCDNumber* icl::qt::SliderHandle::getDisplay | ( | ) | [inline] |
retuns the QLCDNumber that is used as display
result is null, if the slider was created without display
int icl::qt::SliderHandle::getMax | ( | ) | const |
returns the current max. of the slider
int icl::qt::SliderHandle::getMin | ( | ) | const |
returns the current min. of the slider
int icl::qt::SliderHandle::getValue | ( | ) | const |
returns the current value of the slider
void icl::qt::SliderHandle::operator= | ( | int | val | ) | [inline] |
assigns a new value to the slider (equal to setValue)
virtual void icl::qt::SliderHandle::registerCallback | ( | const GUI::Callback & | cb, |
const std::string & | events = "value" |
||
) | [inline, virtual] |
overloaded method for registering callbacks to specific slider events
Please note: Only this callback mechanism is overloaded for the slider class Simple GUI callbacks are stored within the ThreadedUpdatableSlider class, while complex callbacks (those that get the GUI components handle name as parameters) are stored and handled within the GUIHandleBase class. Allowed values for the event parameter are comma-separated lists that consist of the following tokes:
Reimplemented from icl::qt::GUIHandleBase.
virtual void icl::qt::SliderHandle::removeCallbacks | ( | ) | [inline, virtual] |
empties both callback locations (GUIHandleBase and ThreadedUpdatableSlider)
Reimplemented from icl::qt::GUIHandleBase.
void icl::qt::SliderHandle::setAll | ( | int | min, |
int | max, | ||
int | val | ||
) | [inline] |
sets all parameters of a slider
void icl::qt::SliderHandle::setMax | ( | int | max | ) |
set the max value
void icl::qt::SliderHandle::setMin | ( | int | min | ) |
set the min value
void icl::qt::SliderHandle::setRange | ( | int | min, |
int | max | ||
) |
set the range of the slider
void icl::qt::SliderHandle::setValue | ( | int | val | ) |
set the current value of the slider
QLCDNumber* icl::qt::SliderHandle::lcd [private] |
associated display