libyui  3.0.10
YRadioButtonGroup Class Reference
Inheritance diagram for YRadioButtonGroup:
Collaboration diagram for YRadioButtonGroup:

List of all members.

Public Member Functions

virtual ~YRadioButtonGroup ()
virtual const char * widgetClass () const
YRadioButtoncurrentButton () const
YRadioButtonvalue () const
virtual void addRadioButton (YRadioButton *radioButton)
virtual void removeRadioButton (YRadioButton *radioButton)
void uncheckOtherButtons (YRadioButton *radioButton)
virtual bool setProperty (const std::string &propertyName, const YPropertyValue &val)
virtual YPropertyValue getProperty (const std::string &propertyName)
virtual const YPropertySetpropertySet ()

Protected Member Functions

 YRadioButtonGroup (YWidget *parent)
YRadioButtonListConstIterator radioButtonsBegin () const
YRadioButtonListConstIterator radioButtonsEnd () const
int radioButtonsCount () const

Detailed Description

Definition at line 38 of file YRadioButtonGroup.h.


Constructor & Destructor Documentation

YRadioButtonGroup::YRadioButtonGroup ( YWidget parent) [protected]

Constructor.

Definition at line 46 of file YRadioButtonGroup.cc.

Destructor.

Definition at line 54 of file YRadioButtonGroup.cc.


Member Function Documentation

void YRadioButtonGroup::addRadioButton ( YRadioButton radioButton) [virtual]

Add a RadioButton to this button group. RadioButtons are required to call this in their constructor.

Derived classes are free to overload this, but they should call this base class function in the overloaded function.

Definition at line 81 of file YRadioButtonGroup.cc.

Find the currently selected button.

Definition at line 108 of file YRadioButtonGroup.cc.

Here is the call graph for this function:

YPropertyValue YRadioButtonGroup::getProperty ( const std::string &  propertyName) [virtual]

Get a property. Reimplemented from YWidget.

This method may throw exceptions, for example

  • if there is no property with that name

Reimplemented from YWidget.

Definition at line 159 of file YRadioButtonGroup.cc.

Here is the call graph for this function:

Return this class's property set. This also initializes the property set upon the first call.

Reimplemented from YWidget.

Reimplemented from YWidget.

Definition at line 123 of file YRadioButtonGroup.cc.

Here is the call graph for this function:

YRadioButtonListConstIterator YRadioButtonGroup::radioButtonsBegin ( ) const [protected]

Return an iterator that points to the first RadioButton of this button group.

Note that RadioButtons in this group may be direct or indirect children of the group, so don't confuse this with YWidget::widgetsBegin().

Definition at line 60 of file YRadioButtonGroup.cc.

int YRadioButtonGroup::radioButtonsCount ( ) const [protected]

Return the number of RadioButtons in this button group.

Definition at line 74 of file YRadioButtonGroup.cc.

YRadioButtonListConstIterator YRadioButtonGroup::radioButtonsEnd ( ) const [protected]

Return an iterator that points behind the last RadioButton of this button group.

Definition at line 67 of file YRadioButtonGroup.cc.

void YRadioButtonGroup::removeRadioButton ( YRadioButton radioButton) [virtual]

Remove a RadioButton from this button group. RadioButtons are required to call this in their destructor, but only if the button group is not also in the process of being destroyed (otherwise there may be race conditions with child widgets already destroyed):

if ( ! buttonGroup()->beingDestroyed ) buttonGroup()->removeRadioButton( this );

Definition at line 88 of file YRadioButtonGroup.cc.

bool YRadioButtonGroup::setProperty ( const std::string &  propertyName,
const YPropertyValue val 
) [virtual]

Set a property. Reimplemented from YWidget.

This method may throw exceptions, for example

  • if there is no property with that name
  • if the expected type and the type mismatch
  • if the value is out of range

This function returns 'true' if the value was successfully set and 'false' if that value requires special handling (not in error cases: those are covered by exceptions).

Reimplemented from YWidget.

Definition at line 143 of file YRadioButtonGroup.cc.

Here is the call graph for this function:

Unchecks all radio buttons except one. This method can be used by a concrete UI (the Qt UI or the NCurses UI) in the implementation of YRadioButton::setValue().

Definition at line 95 of file YRadioButtonGroup.cc.

Here is the call graph for this function:

The same as currentButton() above for convenience.

Definition at line 66 of file YRadioButtonGroup.h.

Here is the call graph for this function:

virtual const char* YRadioButtonGroup::widgetClass ( ) const [inline, virtual]

Returns a descriptive name of this widget class for logging, debugging etc.

Reimplemented from YWidget.

Definition at line 56 of file YRadioButtonGroup.h.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations Friends