sptk2 logo
SPTK Home Page

sptk::CRadioButtons Class Reference
[GUI Classes]

Radio buttons widget. More...

#include <CRadioButtons.h>

Inheritance diagram for sptk::CRadioButtons:

sptk::CButtonGroup sptk::CControl sptk::CLayoutClient sptk::CCheckButtons

List of all members.

Public Member Functions

 CRadioButtons (const char *label=0, int layoutSize=20, CLayoutAlign layoutAlignment=SP_ALIGN_TOP)
virtual CControlKind kind () const
 SPTK internal control type.
virtual std::string className () const
 SPTK internal class name.
int32_t intValue () const
 Gets the selected button's ID.
void intValue (int32_t ID)
 Sets the selected button by ID.

Static Public Member Functions

static CLayoutClientcreator (CXmlNode *node)
 Creates a widget based on the XML node information.

Protected Member Functions

virtual Fl_Button * createButton (const char *label, int sz=10, CLayoutAlign layoutAlignment=SP_ALIGN_TOP)
 Creates a radio button and adds it to the group.


Detailed Description

Radio buttons widget.

A group of radio buttons with an optional edit entry for the 'Other' choice.


Constructor & Destructor Documentation

sptk::CRadioButtons::CRadioButtons ( const char *  label = 0,
int  layoutSize = 20,
CLayoutAlign  layoutAlignment = SP_ALIGN_TOP 
)

SPTK-style constructor

Parameters:
label const char *, the widget label
layoutSize int, the size of widget in layout
layoutAlignment CLayoutAlign, widget align in the layout


Member Function Documentation

static CLayoutClient* sptk::CRadioButtons::creator ( CXmlNode node  )  [static]

Creates a widget based on the XML node information.

Parameters:
node CXmlNode*, an XML node with widget information

Reimplemented in sptk::CCheckButtons.


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

Mon Mar 5 11:56:18 2012: SPTK 3.5.7