Hot Door CORE  0.7.0
Adobe® Illustrator® Plug-in Library
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 <list>
11 #include <memory>
12 
13 namespace hdi
14 {
15  namespace core
16  {
17  class RadioButton;
18 
24  {
25  public:
26  typedef std::list< RadioButton* > RadioButtonList;
27 
34 
43  RadioButtonGroup(const RadioButtonGroup& group_);
44 
50  virtual ~RadioButtonGroup();
51 
60  virtual RadioButtonGroup& operator=(const RadioButtonGroup& rhs_);
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 const RadioButtonList 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::auto_ptr<RadioButtonGroup> RadioButtonGroupAP;
165  }
166 }
167 
168 #endif
169 // __HDI_CORE_RADIO_BUTTON_GROUP__
virtual void setDefaultButton(const RadioButton &radio_)
Sets the default radio button for the group.
virtual RadioButton *const defaultButton() const
Gets the default radio button for the group.
virtual ~RadioButtonGroup()
RadioButtonGroup destructor.
virtual bool hasButton(const RadioButton &rb_)
Checks for the existence of a button in the group.
virtual void clearDefaultButton()
Clears the default radio button for the group (i.e. unsets it)
virtual bool operator!=(const RadioButtonGroup &rhs_) const
Tests whether a given RadioButtonGroup object is not the same as another.
Radio button widget, which has both a radio button and label to its right. After instantiation, a RadioButton object can be added to a RadioButtonGroup.
Definition: hdicoreRadioButton.h:23
Definition: hdicoreaiArray.h:12
virtual RadioButtonGroup & operator=(const RadioButtonGroup &rhs_)
Allows one RadioButtonGroup object to be assigned from another.
Allows for logically grouping radio buttons together, such that one can be chosen and others automati...
Definition: hdicoreRadioButtonGroup.h:23
RadioButtonGroup()
Constructs a new radio button group.
virtual bool operator==(const RadioButtonGroup &rhs_) const
Tests whether a given RadioButtonGroup object is the same as another.
virtual void add(const RadioButton &rb_)
Adds a button to the group.
virtual const RadioButtonList buttons() const
Gets a list of the contained buttons.