Image Component Library (ICL)
Public Member Functions | Private Member Functions | List of all members
icl::qt::SpinnerHandle Class Reference

Handle class for spinner components. More...

#include <SpinnerHandle.h>

Inheritance diagram for icl::qt::SpinnerHandle:
icl::qt::GUIHandle< QSpinBox > icl::qt::GUIHandleBase

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...
 
GUIWidgetgetGUIWidget ()
 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...
 

Detailed Description

Handle class for spinner components.

Constructor & Destructor Documentation

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

Member Function Documentation

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 ( )
inlineprivate

internally used utility function

const QSpinBox* icl::qt::SpinnerHandle::sb ( ) const
inlineprivate

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


The documentation for this class was generated from the following file: