Image Component Library (ICL)
|
Handle class for slider componets. More...
#include <SliderHandle.h>
Public Member Functions | |
SliderHandle () | |
Creates and empty slider handle. More... | |
SliderHandle (ThreadedUpdatableSlider *sl, GUIWidget *w, QLCDNumber *lcd=0) | |
create a slider handle More... | |
QLCDNumber * | getDisplay () |
retuns the QLCDNumber that is used as display More... | |
void | setMin (int min) |
set the min value More... | |
void | setMax (int max) |
set the max value More... | |
void | setRange (int min, int max) |
set the range of the slider More... | |
void | setValue (int val) |
set the current value of the slider More... | |
void | setAll (int min, int max, int val) |
sets all parameters of a slider More... | |
int | getMin () const |
returns the current min. of the slider More... | |
int | getMax () const |
returns the current max. of the slider More... | |
int | getValue () const |
returns the current value of the slider More... | |
void | operator= (int val) |
assigns a new value to the slider (equal to setValue) More... | |
virtual void | registerCallback (const GUI::Callback &cb, const std::string &events="value") |
overloaded method for registering callbacks to specific slider events More... | |
virtual void | removeCallbacks () |
empties both callback locations (GUIHandleBase and ThreadedUpdatableSlider) More... | |
virtual void | registerCallback (const GUI::Callback &cb, const std::string &events="all") |
import the other register callback method More... | |
virtual void | registerCallback (const GUI::ComplexCallback &cb, const std::string &events="all") |
import the other register callback method More... | |
Public Member Functions inherited from icl::qt::GUIHandle< ThreadedUpdatableSlider > | |
const ThreadedUpdatableSlider * | operator * () const |
use the *-oprator to get the wrapped component (const) More... | |
ThreadedUpdatableSlider *& | operator * () |
use the *-oprator to get the wrapped component (unconst) More... | |
ThreadedUpdatableSlider * | operator-> () |
this can be used for direct access to wrapped type More... | |
const ThreadedUpdatableSlider * | operator-> () const |
this can be used for direct access to wrapped type More... | |
bool | isNull () const |
returns whether wrapped pointer is null or not More... | |
void | enable () |
enables the wrapped GUI component More... | |
void | disable () |
disables the wrapped GUI component More... | |
Public Member Functions inherited from icl::qt::GUIHandleBase | |
virtual | ~GUIHandleBase () |
virtual destructor More... | |
GUIWidget * | getGUIWidget () |
returns parent GUIWidget pointer More... | |
virtual void | registerCallback (const GUI::ComplexCallback &cb, const std::string &events="all") |
registers a complex callback on this gui component More... | |
virtual void | cb () |
envokes all registered callbacks More... | |
Private Attributes | |
QLCDNumber * | lcd |
associated display More... | |
Additional Inherited Members | |
Protected Member Functions inherited from icl::qt::GUIHandle< ThreadedUpdatableSlider > | |
GUIHandle () | |
as GUIHandle is just an interface, its base constructor is protected More... | |
GUIHandle (ThreadedUpdatableSlider *t, GUIWidget *w) | |
as GUIHandle is just an interface, its base constructor is protected More... | |
Protected Member Functions inherited from icl::qt::GUIHandleBase | |
GUIHandleBase (GUIWidget *w=0) | |
create a new GUIHandleBase More... | |
Handle class for slider componets.
|
inline |
Creates and empty slider handle.
|
inline |
create a slider handle
|
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
|
inline |
assigns a new value to the slider (equal to setValue)
|
inlinevirtual |
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.
|
inline |
import the other register callback method
|
inline |
import the other register callback method
|
inlinevirtual |
empties both callback locations (GUIHandleBase and ThreadedUpdatableSlider)
Reimplemented from icl::qt::GUIHandleBase.
|
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
|
private |
associated display