]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/view/buttonGroup.cxx
creaButtonContainer: Documentation updates :) :). If you turns on the documentation...
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / creaButtonContainer / view / buttonGroup.cxx
1 /*!
2  * @file buttonGroup.cxx
3  * @brief This contains the ButtonGroup class implementation
4  * @author Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
5  * @date  2011-05-19
6  */
7
8 #include "buttonGroup.h"
9
10 namespace creaButtonContainer
11 {
12         namespace view
13         {
14                 //--------------------------------------------------
15                 ButtonGroup::ButtonGroup( wxStaticText* groupName,
16                     ButtonContainer cartoButtons )
17                 {
18                         this->m_GroupName = groupName;
19                         this->m_Buttons = cartoButtons;
20
21                 }
22                 //--------------------------------------------------
23                 ButtonGroup::~ButtonGroup( )
24                 {
25                 }
26                 //--------------------------------------------------
27                 ButtonGroup::ButtonContainer
28                 ButtonGroup::GetButtonContainer( )
29                 {
30                         return ( this->m_Buttons );
31                 }
32                 //--------------------------------------------------
33                 wxStaticText*
34                 ButtonGroup::GetGroupName( )
35                 {
36                         return ( this->m_GroupName );
37                 }
38                 //--------------------------------------------------
39                 ButtonGroup::IdButtonContainer
40                 ButtonGroup::GetButtonIdContainer( )
41                 {
42                         IdButtonContainer idContainer;
43                         for( ButtonContainer::iterator it = this->m_Buttons.begin( ); it
44                             != this->m_Buttons.end( ); ++it )
45                                 idContainer.push_back( (*it).first );
46                         return ( idContainer );
47                 }
48                 //--------------------------------------------------
49                 Button*
50                 ButtonGroup::GetButton( long id )
51                 {
52                         return( this->m_Buttons[id] );
53                 }
54
55         }//ecapseman
56 }//ecapseman