ubit::USpinbox Class Reference

Spinbox gadget. More...

#include <ubuttons.hpp>

Inheritance diagram for ubit::USpinbox:

ubit::UBox ubit::UGroup ubit::UControl ubit::UBrick ubit::UObject List of all members.

Public Member Functions

 USpinbox (const UArgs &=UArgs::none)
 creates a spin box.
 USpinbox (UInteger &value, const UArgs &=UArgs::none)
 creates a spin box that is linked to an integer model.
virtual int getValue () const
 returns the current value.
virtual void setValue (int)
 changes the current value.
UIntegervalue ()
 returns the internal value model.
int getIncrement () const
 returns the increment value.
virtual void setIncrement (int)
 changes the increment.
UStrstr ()
 return internal string model of the text.

Static Public Member Functions

static UStylecreateStyle ()
 < important: all subclasses MUST contain this declaration. static function that returns the UStyle of this class (see details!).

Protected Member Functions

virtual void constructs (const UArgs &a)
virtual void updateValue (int dir)
virtual void changed ()

Detailed Description

Spinbox gadget.

Geometry:

Callbacks


Member Function Documentation

UStyle * ubit::USpinbox::createStyle (  )  [static]

< important: all subclasses MUST contain this declaration. static function that returns the UStyle of this class (see details!).

this macro defines the UClass that corresponds to this class and:

Reimplemented from ubit::UBox.

void ubit::USpinbox::setValue ( int   )  [virtual]

changes the current value.

UOn::change and UOn::action callbacks are fired when the value is changed.

UStr& ubit::USpinbox::str (  ) 

return internal string model of the text.

this object can be shared but can't be deleted.

UInteger& ubit::USpinbox::value (  ) 

returns the internal value model.

UOn::change and UOn::action callbacks are fired when the value is changed. this object can be shared but can't be deleted.


The documentation for this class was generated from the following files:
Generated on Mon Jan 29 00:20:46 2007 for Ubit by  doxygen 1.4.7