X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FcreaButtonContainer%2Fview%2FgroupManager.cxx;h=116d48df7fe1da2dc40554dee272770abcc08ae9;hb=f050938d3947f6b785289da6d58f8fec2da57421;hp=bdb49d2331d9e7295fb3620fcd97164b8925e8ef;hpb=de7a931d43b373fdbaba530ae326a64d45148ae9;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/view/groupManager.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/view/groupManager.cxx index bdb49d2..116d48d 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/view/groupManager.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/view/groupManager.cxx @@ -2,7 +2,7 @@ * @file groupManager.cxx * @brief Implements the GroupManager class. * @author Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr) - * @date 2011-05-24 + * @date 2011-06-02 */ #include "groupManager.h" @@ -15,63 +15,74 @@ namespace creaButtonContainer GroupManager::GroupManager( wxWindow* parent, ButtonGroup* buttonGroup ) : wxFlexGridSizer( 1, 0, 0, 0 ) { +//EED 20/01/2012 flag 02 this->m_IDExpButton = wxNewId( ); - this->m_ExpansionButton = new ExpansionButton( parent, - this->m_IDExpButton, _("-"), wxDefaultPosition, wxSize( 20, 20 ), 0, - wxDefaultValidator, _T("EXPBUTTON") ); + this->m_ExpansionButton = new ExpansionButton( parent, this->m_IDExpButton, _("-"), wxDefaultPosition, wxSize( 20, 20 ), 0, wxDefaultValidator, _T("EXPBUTTON") ); this->Add( m_ExpansionButton, 1, wxALL | wxALIGN_LEFT | wxALIGN_TOP, 5 ); this->m_ButtonManager = new ButtonManager( buttonGroup ); this->Add( this->m_ButtonManager, 1, wxALL | wxALIGN_LEFT | wxALIGN_TOP, 5 ); } + // ---------------------------------------------------------------------------------- GroupManager::~GroupManager( ) { } + // ---------------------------------------------------------------------------------- long GroupManager::GetButtonID( ) { return ( this->m_IDExpButton ); } + // ---------------------------------------------------------------------------------- GroupManager::ExpansionButton* GroupManager::GetButton( ) { return ( this->m_ExpansionButton ); } + // ---------------------------------------------------------------------------------- ButtonManager* GroupManager::GetButtonManager( ) { return ( this->m_ButtonManager ); } + // ---------------------------------------------------------------------------------- void GroupManager::SetButtonID( long id ) { this->m_IDExpButton = id; } + // ---------------------------------------------------------------------------------- void GroupManager::SetButton( ExpansionButton* button ) { this->m_ExpansionButton = button; } + // ---------------------------------------------------------------------------------- void GroupManager::SetButtonManager( ButtonManager* container ) { this->m_ButtonManager = container; } + // ---------------------------------------------------------------------------------- void GroupManager::HideSubPanel( bool hide ) { if ( hide == true ) + { this->m_ButtonManager->HideButtonManager( ); + }//fi else + { this->m_ButtonManager->ShowButtonManager( ); + }//esle } - // ---------------------------------------------------------------------------------- + // ---------------------------------------------------------------------------------- }//ecapseman }//ecapseman