25 #define YUILogComponent "ncurses"
26 #include <yui/YUILog.h>
28 #include "NCRadioButtonGroup.h"
31 NCRadioButtonGroup::NCRadioButtonGroup( YWidget * parent )
32 : YRadioButtonGroup( parent )
36 yuiDebug() << std::endl;
41 NCRadioButtonGroup::~NCRadioButtonGroup()
43 yuiDebug() << std::endl;
47 void NCRadioButtonGroup::setSize(
int newwidth,
int newheight )
49 wRelocate(
wpos( 0 ),
wsze( newheight, newwidth ) );
50 YRadioButtonGroup::setSize( newwidth, newheight );
54 void NCRadioButtonGroup::addRadioButton( YRadioButton *button )
56 YRadioButtonGroup::addRadioButton( button );
60 void NCRadioButtonGroup::removeRadioButton( YRadioButton *button )
62 YRadioButtonGroup::removeRadioButton( button );
66 void NCRadioButtonGroup::focusNextButton( )
70 if ( focusId < radioButtonsCount() )
72 else if ( focusId == radioButtonsCount() )
75 for ( YRadioButtonListConstIterator it = radioButtonsBegin();
76 it != radioButtonsEnd();
84 radioButton->setKeyboardFocus();
90 void NCRadioButtonGroup::focusPrevButton()
96 else if ( focusId == 0 )
97 focusId = radioButtonsCount() - 1;
99 for ( YRadioButtonListConstIterator it = radioButtonsBegin();
100 it != radioButtonsEnd();
110 radioButton->setKeyboardFocus();
118 for ( YRadioButtonListConstIterator it = radioButtonsBegin();
119 it != radioButtonsEnd();
128 YRadioButtonGroup::setEnabled( do_bv );