Image Component Library (ICL)
|
Handle class for spinner components. More...
#include <SpinnerHandle.h>
Public Member Functions | |
SpinnerHandle () | |
Create an empty spinner handle. | |
SpinnerHandle (QSpinBox *sb, GUIWidget *w) | |
create a new SpinnerHandle with given QSpinBox* to wrap | |
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 spin-box | |
void | setValue (int val) |
set the current value of the spin-box | |
void | setAll (int min, int max, int val) |
sets all parameters of a spin-box | |
int | getMin () const |
returns the current min. of the spin-box | |
int | getMax () const |
returns the current max. of the spin-box | |
int | getValue () const |
returns the current value of the spin-box | |
void | operator= (int val) |
assigns a new value to the spin-box (equal to setValue) | |
Private Member Functions | |
QSpinBox * | sb () |
internally used utility function | |
const QSpinBox * | sb () const |
internally used utility function |
Handle class for spinner components.
icl::qt::SpinnerHandle::SpinnerHandle | ( | ) | [inline] |
Create an empty spinner handle.
icl::qt::SpinnerHandle::SpinnerHandle | ( | QSpinBox * | sb, |
GUIWidget * | w | ||
) | [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
void icl::qt::SpinnerHandle::operator= | ( | int | val | ) | [inline] |
assigns a new value to the spin-box (equal to setValue)
QSpinBox* icl::qt::SpinnerHandle::sb | ( | ) | [inline, private] |
internally used utility function
const QSpinBox* icl::qt::SpinnerHandle::sb | ( | ) | const [inline, private] |
internally used utility function
void icl::qt::SpinnerHandle::setAll | ( | int | min, |
int | max, | ||
int | val | ||
) | [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
void icl::qt::SpinnerHandle::setRange | ( | int | min, |
int | max | ||
) | [inline] |
set the range of the spin-box
void icl::qt::SpinnerHandle::setValue | ( | int | val | ) |
set the current value of the spin-box