--- /dev/null
+/***************************************************************
+ * Name: ButtonGroup.cxx
+ * Purpose: Implements ButtonGroup.h
+ * Author: Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
+ * Modified: 2011-05-09
+ * Copyright: Diego CACERES (http://www.creatis.insa-lyon.fr/~caceres/)
+ * License:
+ **************************************************************/
+
+#include "buttonGroup.h"
+
+namespace creaButtonContainer
+{
+ namespace view
+ {
+ /*typedef creaButtonContainer::view::Button Button;
+ typedef std::map< long, Button* > ButtonContainer;
+ typedef std::list< long > IdButtonContainer;*/
+ //--------------------------------------------------
+ ButtonGroup::ButtonGroup( wxStaticText* groupName,
+ ButtonContainer cartoButtons )
+ {
+ this->m_GroupName = groupName;
+ this->m_Buttons = cartoButtons;
+
+ }
+ //--------------------------------------------------
+ ButtonGroup::~ButtonGroup( )
+ {
+ }
+ //--------------------------------------------------
+ ButtonContainer
+ ButtonGroup::GetButtonContainer( )
+ {
+ return ( this->m_Buttons );
+ }
+ //--------------------------------------------------
+ wxStaticText*
+ ButtonGroup::GetGroupName( )
+ {
+ return ( this->m_GroupName );
+ }
+ //--------------------------------------------------
+ IdButtonContainer
+ ButtonGroup::GetButtonIdContainer( )
+ {
+ IdButtonContainer idContainer;
+ for( ButtonContainer::iterator it = this->m_Buttons.begin( ); it
+ != this->m_Buttons.end( ); ++it )
+ idContainer.push_back( (*it).first );
+ return ( idContainer );
+ }
+ //--------------------------------------------------
+ Button*
+ ButtonGroup::GetButton( long id )
+ {
+ return( this->m_Buttons[id] );
+ }
+
+ }//ecapseman
+}//ecapseman