ubit::URadioSelect Class Reference

Exclusive selector for selecting boxes (eg. More...

#include <uchoice.hpp>

Inheritance diagram for ubit::URadioSelect:

ubit::UProp ubit::UBrick ubit::UObject List of all members.

Public Member Functions

 URadioSelect (UInteger &index)
 constructor.
virtual void setCanUnselectMode (bool)
virtual bool isCanUnselectMode () const
 clicking on a selected item will unselect it if true (default is false).
virtual void clearSelection ()
 deselects the selected object (if any).
virtual UGroupgetSelectedItem () const
 returns the selected object; returns null if there is no selected object.
virtual void setSelectedItem (UGroup &)
 selects this object.
UIntegerindex () const
virtual int getSelectedIndex () const
 returns the index of the selected object; returns -1 if there is no selected object.
virtual void setSelectedIndex (int n)
virtual void setSelectedIndex (const UInteger &n)
 selects the Nth object; selects the last selectable object if n = -1.
virtual void update ()
 updates parents graphics.

Friends

URadioSelecturadioSelect ()
 creator shortcut that return *new URadioSelect;

Detailed Description

Exclusive selector for selecting boxes (eg.

UCheckbox, UButton, etc.).

This selector must be a child of the items it selects. These items are automatically made selectable (for instance an UButton will becone selectable if an USelect is added to it as a child).

  Exemple:
    URadioSelect& sel = uradioSelect();
    ubox( ubutton(sel + "One" + UMode::selected)
          + ucheckbox(sel + "Two")
          + utextbox(sel + "Three")
        ) 
  


Constructor & Destructor Documentation

ubit::URadioSelect::URadioSelect ( UInteger index  ) 

constructor.

Notes:


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