Image Component Library (ICL)
|
Handle class for spinner components. More...
#include <SpinnerHandle.h>
Public Member Functions | |
SpinnerHandle () | |
Create an empty spinner handle. More... | |
SpinnerHandle (QSpinBox *sb, GUIWidget *w) | |
create a new SpinnerHandle with given QSpinBox* to wrap 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 spin-box More... | |
void | setValue (int val) |
set the current value of the spin-box More... | |
void | setAll (int min, int max, int val) |
sets all parameters of a spin-box More... | |
int | getMin () const |
returns the current min. of the spin-box More... | |
int | getMax () const |
returns the current max. of the spin-box More... | |
int | getValue () const |
returns the current value of the spin-box More... | |
void | operator= (int val) |
assigns a new value to the spin-box (equal to setValue) More... | |
Public Member Functions inherited from icl::qt::GUIHandle< QSpinBox > | |
const QSpinBox * | operator * () const |
use the *-oprator to get the wrapped component (const) More... | |
QSpinBox *& | operator * () |
use the *-oprator to get the wrapped component (unconst) More... | |
QSpinBox * | operator-> () |
this can be used for direct access to wrapped type More... | |
const QSpinBox * | 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::Callback &cb, const std::string &events="all") |
registers a callback on this gui widget More... | |
virtual void | registerCallback (const GUI::ComplexCallback &cb, const std::string &events="all") |
registers a complex callback on this gui component More... | |
virtual void | removeCallbacks () |
removes all callbacks from parent GUIWidget component More... | |
virtual void | cb () |
envokes all registered callbacks More... | |
Private Member Functions | |
QSpinBox * | sb () |
internally used utility function More... | |
const QSpinBox * | sb () const |
internally used utility function More... | |
Additional Inherited Members | |
Protected Member Functions inherited from icl::qt::GUIHandle< QSpinBox > | |
GUIHandle () | |
as GUIHandle is just an interface, its base constructor is protected More... | |
GUIHandle (QSpinBox *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 spinner components.
|
inline |
Create an empty spinner handle.
|
inline |
create a new SpinnerHandle with given QSpinBox* to wrap
int icl::qt::SpinnerHandle::getMax | ( | ) | const |
returns the current max. of the spin-box
int icl::qt::SpinnerHandle::getMin | ( | ) | const |
returns the current min. of the spin-box
int icl::qt::SpinnerHandle::getValue | ( | ) | const |
returns the current value of the spin-box
|
inline |
assigns a new value to the spin-box (equal to setValue)
|
inlineprivate |
internally used utility function
|
inlineprivate |
internally used utility function
|
inline |
sets all parameters of a spin-box
void icl::qt::SpinnerHandle::setMax | ( | int | max | ) |
set the max value
void icl::qt::SpinnerHandle::setMin | ( | int | min | ) |
set the min value
|
inline |
set the range of the spin-box
void icl::qt::SpinnerHandle::setValue | ( | int | val | ) |
set the current value of the spin-box