00001 /*---------------------------------------------------------------------\ 00002 | | 00003 | __ __ ____ _____ ____ | 00004 | \ \ / /_ _/ ___|_ _|___ \ | 00005 | \ V / _` \___ \ | | __) | | 00006 | | | (_| |___) || | / __/ | 00007 | |_|\__,_|____/ |_| |_____| | 00008 | | 00009 | core system | 00010 | (C) SuSE GmbH | 00011 \----------------------------------------------------------------------/ 00012 00013 File: NCRadioButtonGroup.h 00014 00015 Author: Michael Andres <ma@suse.de> 00016 Maintainer: Michael Andres <ma@suse.de> 00017 00018 /-*/ 00019 #ifndef NCRadioButtonGroup_h 00020 #define NCRadioButtonGroup_h 00021 00022 #include <iosfwd> 00023 00024 #include "YRadioButtonGroup.h" 00025 #include "NCRadioButton.h" 00026 #include "NCWidget.h" 00027 00028 class NCRadioButtonGroup; 00029 00031 // 00032 // CLASS NAME : NCRadioButtonGroup 00033 // 00034 // DESCRIPTION : 00035 // 00036 class NCRadioButtonGroup : public YRadioButtonGroup, public NCWidget { 00037 00038 friend std::ostream & operator<<( std::ostream & STREAM, const NCRadioButtonGroup & OBJ ); 00039 00040 NCRadioButtonGroup & operator=( const NCRadioButtonGroup & ); 00041 NCRadioButtonGroup ( const NCRadioButtonGroup & ); 00042 00043 private: 00044 unsigned int focusId; 00045 00046 protected: 00047 00048 virtual const char * location() const { return "NCRadioButtonGroup"; } 00049 00050 public: 00051 00052 NCRadioButtonGroup( NCWidget * parent, const YWidgetOpt & opt ); 00053 virtual ~NCRadioButtonGroup(); 00054 00055 virtual long nicesize( YUIDimension dim ) { return YRadioButtonGroup::nicesize( dim ); } 00056 virtual void setSize( long newwidth, long newheight ); 00057 00058 virtual void addRadioButton(YRadioButton *button); 00059 virtual void removeRadioButton(YRadioButton *button); 00060 00061 virtual void setEnabling( bool do_bv ) { NCWidget::setEnabling( enabled=do_bv ); } 00062 00063 void focusNextButton( ); 00064 void focusPrevButton( ); 00065 00066 }; 00067 00069 00070 #endif // NCRadioButtonGroup_h