1 /***************************************************************
2 * Name: GroupManager.cxx
3 * Purpose: Defines the Group Manager
4 * Author: Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
6 * Copyright: Diego CACERES (http://www.creatis.insa-lyon.fr/~caceres/)
8 **************************************************************/
10 #include "groupManager.h"
13 namespace creaButtonContainer
17 // -------------------------------------------------------------------
18 GroupManager::GroupManager( wxWindow* parent, ButtonGroup* buttonGroup ) :
19 wxFlexGridSizer( 1, 0, 0, 0 )
21 this->m_IDExpButton = wxNewId( );
22 this->m_ExpansionButton = new ExpansionButton( parent,
23 this->m_IDExpButton, _("-"), wxDefaultPosition, wxSize( 20, 20 ), 0,
24 wxDefaultValidator, _T("EXPBUTTON") );
25 this->Add( m_ExpansionButton, 1, wxALL | wxALIGN_LEFT | wxALIGN_TOP, 5 );
26 this->m_ButtonManager = new ButtonManager( buttonGroup );
27 this->Add( this->m_ButtonManager, 1, wxALL | wxALIGN_LEFT | wxALIGN_TOP, 5 );
29 // -------------------------------------------------------------------
30 GroupManager::~GroupManager( )
33 // -------------------------------------------------------------------
35 GroupManager::GetButtonID( )
37 return ( this->m_IDExpButton );
39 // -------------------------------------------------------------------
41 GroupManager::GetButton( )
43 return ( this->m_ExpansionButton );
45 // -------------------------------------------------------------------
47 GroupManager::GetButtonManager( )
49 return ( this->m_ButtonManager );
51 // -------------------------------------------------------------------
53 GroupManager::SetButtonID( long id )
55 this->m_IDExpButton = id;
57 // -------------------------------------------------------------------
59 GroupManager::SetButton( ExpansionButton* button )
61 this->m_ExpansionButton = button;
63 // -------------------------------------------------------------------
65 GroupManager::SetButtonManager( ButtonManager* container )
67 this->m_ButtonManager = container;
69 // -------------------------------------------------------------------
71 GroupManager::HideSubPanel( bool hide )
74 this->m_ButtonManager->HideButtonManager( );
76 this->m_ButtonManager->ShowButtonManager( );
78 // -------------------------------------------------------------------