- /// Constructor. Allocate space for 'n' items in the group.
- RadioButtonGroup(unsigned n = 5) : map(n)
- {};
- /// Destructor. Cleans up.
- ~RadioButtonGroup() {};
-
- /// Register a radio button with it's corresponding value.
- void registerRadioButton(FL_OBJECT *button, int value);
- /// Reset registrations.
- void reset();
-
- // Set the active button.
- void setButton(int value);
-
- // Get the active button.
- int getButton();
-
+
+ /// Register a radio button with its corresponding value.
+ void init(FL_OBJECT * ob, size_type value);
+
+ // Set a single active button.
+ void set(size_type value) const;
+ void set(FL_OBJECT * ob) const;
+
+ // None of the radiobuttons are set.
+ void unset() const;
+
+ // Get the active button's value.
+ size_type get() const;
+
+ void setEnabled(bool enabled);
+