Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

USpinbox Class Reference

Spinbox gadget. More...

#include <ugadgets.hpp>

Inheritance diagram for USpinbox:

UBox UGroup List of all members.

Public Member Functions

 USpinbox (const UArgs &=UArgs::none)
 standard constructor.
 USpinbox (UIntg &value, const UArgs &=UArgs::none)
 USpinbox (UIntg &value, UIntg &increment, const UArgs &=UArgs::none)
 constructors for specifing a shared 'value' or 'increment'.
virtual const UStylegetStyle (UContext *) const
 returns the contextual UStyle of this object
virtual void setValue (const UIntg &)
virtual void setIncrement (const UIntg &)
virtual void setStr (const UStr &)
UIntgvalue () const
UIntgincrement () const
UStrstr () const
 direct access to internal fields
virtual void constructs (const UArgs &a)
virtual void valueChanged ()
virtual void updateValue (int dir)

Static Public Member Functions

static const UStylemakeStyle ()
 creates the Style of this object.

Static Public Attributes

static UStylestyle = null
 corresponding Ubit UStyle

Friends

USpinboxuspinbox (const UArgs &a=UArgs::none)
USpinboxuspinbox (UIntg &value, const UArgs &a=UArgs::none)
 creator shortcut that is equivalent to *new USpinbox().

Detailed Description

Spinbox gadget.


Constructor & Destructor Documentation

USpinbox::USpinbox UIntg value,
UIntg increment,
const UArgs = UArgs::none
 

constructors for specifing a shared 'value' or 'increment'.

Arguments 'value' and 'increment':

  • are NOT duplicated internally and CAN'T be destroyed by 'delete' (nor be allocated in the stack).
  • can be shared by other objects and their value can be changed by clients
  • are automatically deleted when the Spinbox is deleted if no uptr points to them.

UAction callbacks are fired when value changes


Member Function Documentation

virtual const UStyle& USpinbox::getStyle UContext *   )  const [virtual]
 

returns the contextual UStyle of this object

This virtual function calls the makeStyle() static function that was redefined for this specific class

Reimplemented from UBox.

const UStyle & USpinbox::makeStyle  )  [static]
 

creates the Style of this object.

This static function is redefined by each class that derives from UGroup. It is called by the virtual function UGroup::getStyle()

Reimplemented from UBox.

UStr& USpinbox::str  )  const
 

direct access to internal fields

these objects can be shared by other objects and their value can be changed by clients. They are automatically deleted when the Spinbox is deleted if no uptr points to them.


The documentation for this class was generated from the following files:
Generated on Thu May 19 12:40:33 2005 for Ubit[Eric.Lecolinet@enst.fr] by  doxygen 1.4.2