|
#include <CCheckButtons.h>

Public Member Functions | |
| CCheckButtons (const char *label=0, int layoutSize=20, CLayoutAlign layoutAlignment=SP_ALIGN_TOP) | |
| void | getSelections (CIntList &selection) const |
| Gets the currently selected buttons argument()s. | |
| void | setSelections (const CIntList &selection) |
| Sets the currently selected buttons matching with argument()s. | |
| virtual CVariant | data () const |
| virtual void | data (const CVariant v) |
| virtual CControlKind | kind () const |
| Returns an internal SPTK control type information. | |
| virtual std::string | className () const |
| Returns an internal SPTK control class name information. | |
Static Public Member Functions | |
| static CLayoutClient * | creator (CXmlNode *node) |
| Creates chack buttons group 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. | |
Implements a group of check buttons with an optional CInput for the 'Other' choice. Data connector returns the current state as a string with selected buttons names separated with '|' character.
| sptk::CCheckButtons::CCheckButtons | ( | const char * | label = 0, |
|
| int | layoutSize = 20, |
|||
| CLayoutAlign | layoutAlignment = SP_ALIGN_TOP | |||
| ) |
SPTK-style constructor
| label | const char *, the widget label | |
| layoutSize | int, the size of widget in layout | |
| layoutAlignment | CLayoutAlign, widget align in the layout |
| virtual void sptk::CCheckButtons::data | ( | const CVariant | v | ) | [virtual] |
Universal data connection writer.
| v | CVariant, sets the selection from the list of labels as pipe ('|') separated strings |
Reimplemented from sptk::CButtonGroup.
| virtual CVariant sptk::CCheckButtons::data | ( | ) | const [virtual] |
Universal data connection reader.
Reimplemented from sptk::CButtonGroup.