00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef AEDRADIOBUTTONGROUP_H
00024 #define AEDRADIOBUTTONGROUP_H
00025
00026 #include "dllmacros.h"
00027 #include "aedWidget.h"
00028 #include "aedCheckBox.h"
00029
00031 class DLLEXPORT aedRadioButtonGroup:public aedWidget
00032 {
00033 public:
00034 aedRadioButtonGroup();
00035 virtual ~ aedRadioButtonGroup();
00036
00039 void addButton(const std::string & caption);
00040
00043 void removeButton(unsigned int index);
00044
00046 int getSelectedButton() const
00047 {
00048 return m_Selected;
00049 }
00050
00053 void selectButton(unsigned int index);
00054
00055 int wm_lbuttondown(Uint16 x, Uint16 y);
00056 int wm_lostfocus();
00057
00058 private:
00059 int m_Selected;
00060 Uint16 m_NextY;
00061 std::vector < aedCheckBox * >m_Buttons;
00062 };
00063
00064 #if defined(_MSC_VER)
00065 DLLEXTERN template DLLEXPORT aedFunctor1Arg < stub, aedRadioButtonGroup >;
00066 #endif
00067
00068 #endif