Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
|
Allows for logically grouping radio buttons together, such that one can be chosen and others automatically unchosen, etc. More...
#include <hdicoreRadioButtonGroup.h>
Public Types | |
typedef std::vector< std::shared_ptr< RadioButton > > | RadioButtonVector |
Public Member Functions | |
RadioButtonGroup () | |
Constructs a new radio button group. | |
RadioButtonGroup (const RadioButtonGroup &group_) | |
Constructs a new RadioButtonGroup object from an existing RadioButtonGroup object (copy constructor) | |
virtual | ~RadioButtonGroup () |
RadioButtonGroup destructor. | |
virtual RadioButtonGroup & | operator= (const RadioButtonGroup &rhs_) |
Allows one RadioButtonGroup object to be assigned from another. | |
virtual bool | operator== (const RadioButtonGroup &rhs_) const |
Tests whether a given RadioButtonGroup object is the same as another. | |
virtual bool | operator!= (const RadioButtonGroup &rhs_) const |
Tests whether a given RadioButtonGroup object is not the same as another. | |
virtual void | add (const RadioButton &rb_) |
Adds a button to the group. | |
virtual void | remove (const RadioButton &rb_) |
Removes a button from the group. | |
virtual bool | hasButton (const RadioButton &rb_) |
Checks for the existence of a button in the group. | |
virtual RadioButtonVector | buttons () const |
Gets a list of the contained buttons. | |
virtual RadioButton *const | defaultButton () const |
Gets the default radio button for the group. | |
virtual void | setDefaultButton (const RadioButton &radio_) |
Sets the default radio button for the group. | |
virtual void | clearDefaultButton () |
Clears the default radio button for the group (i.e. unsets it) | |
Allows for logically grouping radio buttons together, such that one can be chosen and others automatically unchosen, etc.
hdi::core::RadioButtonGroup::RadioButtonGroup | ( | ) |
Constructs a new radio button group.
hdi::core::RadioButtonGroup::RadioButtonGroup | ( | const RadioButtonGroup & | group_ | ) |
Constructs a new RadioButtonGroup object from an existing RadioButtonGroup object (copy constructor)
group_ | Existing RadioButtonGroup object |
|
virtual |
RadioButtonGroup destructor.
|
virtual |
Adds a button to the group.
rb_ | Radio button object to add |
|
virtual |
Gets a list of the contained buttons.
|
virtual |
Clears the default radio button for the group (i.e. unsets it)
|
virtual |
Gets the default radio button for the group.
A radio button group can have a default button, which will be automatically chosen in the case that all other buttons have become unchosen (i.e. the group itself can never have all buttons unchosen). A default button is optional (allowing all buttons in the group to be unchosen).
|
virtual |
Checks for the existence of a button in the group.
rb_ | Radio button in question |
|
virtual |
Tests whether a given RadioButtonGroup object is not the same as another.
rhs_ | RadioButtonGroup to compare against (righthand side of inequality operator) |
|
virtual |
Allows one RadioButtonGroup object to be assigned from another.
rhs_ | Righthand side of the = operator; the object to copy values from |
|
virtual |
Tests whether a given RadioButtonGroup object is the same as another.
rhs_ | RadioButtonGroup to compare against (righthand side of equality operator) |
|
virtual |
Removes a button from the group.
rb_ | Radio button to remove |
|
virtual |
Sets the default radio button for the group.
radio_ | The radio button to act as the default for the group |