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 this->m_IDExpButton = wxNewId( );
19 this->m_ExpansionButton = new ExpansionButton( parent,
20 this->m_IDExpButton, _("-"), wxDefaultPosition, wxSize( 20, 20 ), 0,
21 wxDefaultValidator, _T("EXPBUTTON") );
22 this->Add( m_ExpansionButton, 1, wxALL | wxALIGN_LEFT | wxALIGN_TOP, 5 );
23 this->m_ButtonManager = new ButtonManager( buttonGroup );
24 this->Add( this->m_ButtonManager, 1, wxALL | wxALIGN_LEFT | wxALIGN_TOP, 5 );
26 // -------------------------------------------------------------------
27 GroupManager::~GroupManager( )
30 // -------------------------------------------------------------------
32 GroupManager::GetButtonID( )
34 return ( this->m_IDExpButton );
36 // -------------------------------------------------------------------
37 GroupManager::ExpansionButton*
38 GroupManager::GetButton( )
40 return ( this->m_ExpansionButton );
42 // -------------------------------------------------------------------
44 GroupManager::GetButtonManager( )
46 return ( this->m_ButtonManager );
48 // -------------------------------------------------------------------
50 GroupManager::SetButtonID( long id )
52 this->m_IDExpButton = id;
54 // -------------------------------------------------------------------
56 GroupManager::SetButton( ExpansionButton* button )
58 this->m_ExpansionButton = button;
60 // -------------------------------------------------------------------
62 GroupManager::SetButtonManager( ButtonManager* container )
64 this->m_ButtonManager = container;
66 // -------------------------------------------------------------------
68 GroupManager::HideSubPanel( bool hide )
71 this->m_ButtonManager->HideButtonManager( );
73 this->m_ButtonManager->ShowButtonManager( );
75 // -------------------------------------------------------------------