Kaydet (Commit) c152159e authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS tbe32 (1.54.96); FILE MERGED

2007/10/31 11:40:54 tbe 1.54.96.2: #i71010# warning on wntmsci10
2007/10/30 15:29:29 pl 1.54.96.1: #i71010# add: RadioButton::GetRadioButtonGroup
üst 83a17366
......@@ -4,9 +4,9 @@
*
* $RCSfile: button.cxx,v $
*
* $Revision: 1.56 $
* $Revision: 1.57 $
*
* last change: $Author: ihi $ $Date: 2008-01-14 13:04:30 $
* last change: $Author: vg $ $Date: 2008-01-28 14:16:22 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
......@@ -2566,6 +2566,35 @@ void RadioButton::ImplDrawRadioButton( bool bLayout )
// -----------------------------------------------------------------------
void RadioButton::GetRadioButtonGroup( std::vector< RadioButton* >& io_rGroup, bool bIncludeThis ) const
{
// empty the list
io_rGroup.clear();
// go back to first in group;
Window* pFirst = const_cast<RadioButton*>(this);
while( ( pFirst->GetStyle() & WB_GROUP ) == 0 )
{
Window* pWindow = pFirst->GetWindow( WINDOW_PREV );
if( pWindow )
pFirst = pWindow;
else
break;
}
// insert radiobuttons up to next group
do
{
if( pFirst->GetType() == WINDOW_RADIOBUTTON )
{
if( pFirst != this || bIncludeThis )
io_rGroup.push_back( static_cast<RadioButton*>(pFirst) );
}
pFirst = pFirst->GetWindow( WINDOW_NEXT );
} while( pFirst && ( ( pFirst->GetStyle() & WB_GROUP ) == 0 ) );
}
// -----------------------------------------------------------------------
void RadioButton::ImplUncheckAllOther()
{
mpWindowImpl->mnStyle |= WB_TABSTOP;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment