// -*- C++ -*-
/**
* \file RadioButtonGroup.h
- * Copyright 2000 Baruch Even
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author Baruch Even
* \author Rob Lahaye
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
void init(FL_OBJECT * ob, size_type value);
// Set a single active button.
- void set(size_type value);
- void set(FL_OBJECT * ob);
+ 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);
+
private:
///
typedef std::pair<FL_OBJECT *, size_type> ButtonValuePair;
ButtonValueMap map;
};
-#endif
+#endif // RADIOBUTTONGROUP_H