Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreRadioButtonGroup.h
Go to the documentation of this file.
1
7#ifndef __HDI_CORE_RADIO_BUTTON_GROUP__
8#define __HDI_CORE_RADIO_BUTTON_GROUP__
9
10#include <memory>
11#include <vector>
12
13namespace hdi
14{
15 namespace core
16 {
17 class RadioButton;
18
24 {
25 public:
26 typedef std::vector< std::shared_ptr<RadioButton> > RadioButtonVector;
27
34
44
51
61
70 virtual bool operator==(const RadioButtonGroup& rhs_) const;
71
80 virtual bool operator!=(const RadioButtonGroup& rhs_) const;
81
91 virtual void add(const RadioButton& rb_);
92
102 virtual void remove(const RadioButton& rb_);
103
112 virtual bool hasButton(const RadioButton& rb_);
113
121 virtual RadioButtonVector buttons() const;
122
134 virtual RadioButton* const defaultButton() const;
135
147 virtual void setDefaultButton(const RadioButton& radio_);
148
154 virtual void clearDefaultButton();
155
156
157 private:
161 void* __data;
162 };
163
164 typedef std::unique_ptr<RadioButtonGroup> RadioButtonGroupUP;
165 typedef std::shared_ptr<RadioButtonGroup> RadioButtonGroupSP;
166 typedef std::weak_ptr<RadioButtonGroup> RadioButtonGroupWP;
167 }
168}
169
170#endif
171// __HDI_CORE_RADIO_BUTTON_GROUP__
Allows for logically grouping radio buttons together, such that one can be chosen and others automati...
Definition: hdicoreRadioButtonGroup.h:24
virtual void remove(const RadioButton &rb_)
Removes a button from the group.
virtual RadioButton *const defaultButton() const
Gets the default radio button for the group.
virtual RadioButtonVector buttons() const
Gets a list of the contained buttons.
virtual void add(const RadioButton &rb_)
Adds a button to the group.
virtual void clearDefaultButton()
Clears the default radio button for the group (i.e. unsets it)
virtual ~RadioButtonGroup()
RadioButtonGroup destructor.
virtual bool operator==(const RadioButtonGroup &rhs_) const
Tests whether a given RadioButtonGroup object is the same as another.
virtual bool hasButton(const RadioButton &rb_)
Checks for the existence of a button in the group.
RadioButtonGroup(const RadioButtonGroup &group_)
Constructs a new RadioButtonGroup object from an existing RadioButtonGroup object (copy constructor)
virtual RadioButtonGroup & operator=(const RadioButtonGroup &rhs_)
Allows one RadioButtonGroup object to be assigned from another.
RadioButtonGroup()
Constructs a new radio button group.
virtual bool operator!=(const RadioButtonGroup &rhs_) const
Tests whether a given RadioButtonGroup object is not the same as another.
virtual void setDefaultButton(const RadioButton &radio_)
Sets the default radio button for the group.
Radio button widget, which has both a radio button and label to its right. After instantiation,...
Definition: hdicoreRadioButton.h:24