]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/view/buttonGroup.cxx
creaButtonContainer: Updates in documentation, adding try catch clauses and cleaning...
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / creaButtonContainer / view / buttonGroup.cxx
1 /***************************************************************
2  * Name:      ButtonGroup.cxx
3  * Purpose:   Implements ButtonGroup.h
4  * Author:    Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
5  * Modified:  2011-05-09
6  * Copyright: Diego CACERES (http://www.creatis.insa-lyon.fr/~caceres/)
7  * License:
8  **************************************************************/
9
10 #include "buttonGroup.h"
11
12 namespace creaButtonContainer
13 {
14         namespace view
15         {
16                 //--------------------------------------------------
17                 ButtonGroup::ButtonGroup( wxStaticText* groupName,
18                     ButtonContainer cartoButtons )
19                 {
20                         this->m_GroupName = groupName;
21                         this->m_Buttons = cartoButtons;
22
23                 }
24                 //--------------------------------------------------
25                 ButtonGroup::~ButtonGroup( )
26                 {
27                 }
28                 //--------------------------------------------------
29                 ButtonGroup::ButtonContainer
30                 ButtonGroup::GetButtonContainer( )
31                 {
32                         return ( this->m_Buttons );
33                 }
34                 //--------------------------------------------------
35                 wxStaticText*
36                 ButtonGroup::GetGroupName( )
37                 {
38                         return ( this->m_GroupName );
39                 }
40                 //--------------------------------------------------
41                 ButtonGroup::IdButtonContainer
42                 ButtonGroup::GetButtonIdContainer( )
43                 {
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 );
49                 }
50                 //--------------------------------------------------
51                 Button*
52                 ButtonGroup::GetButton( long id )
53                 {
54                         return( this->m_Buttons[id] );
55                 }
56
57         }//ecapseman
58 }//ecapseman