00001 #ifndef QBRADIOBUTTON_H
00002 #define QBRADIOBUTTON_H
00003
00004 #include "QbButton.h"
00005 #include "QbRadioGroup.h"
00006
00007 class QbRadioGroup;
00008
00009 class QbRadioButton : public QbButton {
00010 SO_NODE_HEADER(QbRadioButton);
00011 typedef QbButton inherited;
00012
00013 public:
00014 static void initClass(void);
00015 QbRadioButton(void);
00016
00017 SoSFNode radioGroup;
00018
00019 virtual void notify(SoNotList * list);
00020 protected:
00021 virtual void doClick();
00022 private:
00023 QbRadioGroup * radioGroupCache;
00024 static const char * DEFAULT_OFF[];
00025 static const char * DEFAULT_OFFDOWN[];
00026 static const char * DEFAULT_ON[];
00027 static const char * DEFAULT_ONDOWN[];
00028 };
00029
00030 #endif