]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/RadioButtonGroup.h
try this for distinguishing inner and outer tabs
[lyx.git] / src / frontends / xforms / RadioButtonGroup.h
index 77f223e2f76c8fc020ef72429da48700dd9b185f..658f8c30910f704f29a0884e95fd6552a33b0f80 100644 (file)
@@ -9,12 +9,6 @@
  *          This file Copyright 2000 Baruch Even
  * ================================================= */
 
-/*
- * This class simplifies the work with a group of radio buttons,
- * the idea is that you register a bunch of radio buttons with the accompanying
- * value for each radio button and then you get to query or set the active
- * button in a single function call.
- */
 
 #ifndef RADIOBUTTONGROUP_H
 #define RADIOBUTTONGROUP_H
 #pragma interface
 #endif 
 
-#include <vector> 
-#include <utility> 
+#include <vector>
+#include <utility>
+
 using std::vector;
 using std::pair;
 
 #include FORMS_H_LOCATION
 
-class RadioButtonGroup
-{
+/** This class simplifies the work with a group of radio buttons,
+ * the idea is that you register a bunch of radio buttons with the accompanying
+ * value for each radio button and then you get to query or set the active
+ * button in a single function call.
+ * @author Baruch Even
+ */
+class RadioButtonGroup {
 public:
        /// 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);
@@ -50,8 +48,11 @@ public:
        int getButton();
 
 private:
-       typedef pair < FL_OBJECT *, int > ButtonValuePair;
-       typedef vector < ButtonValuePair > ButtonValueMap;
+       ///
+       typedef pair<FL_OBJECT *, int> ButtonValuePair;
+       ///
+       typedef vector<ButtonValuePair> ButtonValueMap;
+       ///
        ButtonValueMap map;
 };