2 * @file groupManager.cxx
3 * @brief Implements the GroupManager class.
4 * @author Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
8 #include "groupManager.h"
10 namespace creaButtonContainer
14 // ----------------------------------------------------------------------------------
15 GroupManager::GroupManager( wxWindow* parent, ButtonGroup* buttonGroup ) :
16 wxFlexGridSizer( 1, 0, 0, 0 )
18 //EED 20/01/2012 flag 02
19 this->m_IDExpButton = wxNewId( );
20 this->m_ExpansionButton = new ExpansionButton( parent, this->m_IDExpButton, _("-"), wxDefaultPosition, wxSize( 20, 20 ), 0, wxDefaultValidator, _T("EXPBUTTON") );
21 this->Add( m_ExpansionButton, 1, wxALL | wxALIGN_LEFT | wxALIGN_TOP, 5 );
22 this->m_ButtonManager = new ButtonManager( buttonGroup );
23 this->Add( this->m_ButtonManager, 1, wxALL | wxALIGN_LEFT | wxALIGN_TOP, 5 );
26 // ----------------------------------------------------------------------------------
27 GroupManager::~GroupManager( )
31 // ----------------------------------------------------------------------------------
33 GroupManager::GetButtonID( )
35 return ( this->m_IDExpButton );
38 // ----------------------------------------------------------------------------------
39 GroupManager::ExpansionButton*
40 GroupManager::GetButton( )
42 return ( this->m_ExpansionButton );
45 // ----------------------------------------------------------------------------------
47 GroupManager::GetButtonManager( )
49 return ( this->m_ButtonManager );
52 // ----------------------------------------------------------------------------------
54 GroupManager::SetButtonID( long id )
56 this->m_IDExpButton = id;
59 // ----------------------------------------------------------------------------------
61 GroupManager::SetButton( ExpansionButton* button )
63 this->m_ExpansionButton = button;
66 // ----------------------------------------------------------------------------------
68 GroupManager::SetButtonManager( ButtonManager* container )
70 this->m_ButtonManager = container;
73 // ----------------------------------------------------------------------------------
75 GroupManager::HideSubPanel( bool hide )
79 this->m_ButtonManager->HideButtonManager( );
83 this->m_ButtonManager->ShowButtonManager( );
86 // ----------------------------------------------------------------------------------