1 /***************************************************************
2 * Name: ButtonGroup.cxx
3 * Purpose: Implements ButtonGroup.h
4 * Author: Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
6 * Copyright: Diego CACERES (http://www.creatis.insa-lyon.fr/~caceres/)
8 **************************************************************/
10 #include "buttonGroup.h"
12 namespace creaButtonContainer
16 //--------------------------------------------------
17 ButtonGroup::ButtonGroup( wxStaticText* groupName,
18 ButtonContainer cartoButtons )
20 this->m_GroupName = groupName;
21 this->m_Buttons = cartoButtons;
24 //--------------------------------------------------
25 ButtonGroup::~ButtonGroup( )
28 //--------------------------------------------------
29 ButtonGroup::ButtonContainer
30 ButtonGroup::GetButtonContainer( )
32 return ( this->m_Buttons );
34 //--------------------------------------------------
36 ButtonGroup::GetGroupName( )
38 return ( this->m_GroupName );
40 //--------------------------------------------------
41 ButtonGroup::IdButtonContainer
42 ButtonGroup::GetButtonIdContainer( )
44 IdButtonContainer idContainer;
45 for( ButtonContainer::iterator it = this->m_Buttons.begin( ); it
46 != this->m_Buttons.end( ); ++it )
47 idContainer.push_back( (*it).first );
48 return ( idContainer );
50 //--------------------------------------------------
52 ButtonGroup::GetButton( long id )
54 return( this->m_Buttons[id] );