X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FcreaButtonContainer%2Fview%2FgroupManager.cxx;fp=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FcreaButtonContainer%2Fview%2FgroupManager.cxx;h=cd4a37add199f264b93b4c0ee72757fa86db6a43;hb=8eebd53dcbe07edf0569621003178ee37d69a39b;hp=eac787a8939a090c663b23bd275036dd9078c580;hpb=bbd33bbb0f352d14d7068d87fcd50e02341004a9;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 eac787a..cd4a37a 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/view/groupManager.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/view/groupManager.cxx @@ -1,27 +1,27 @@ /*# --------------------------------------------------------------------- -# -# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image -# pour la Sant�) -# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton -# Previous Authors : Laurent Guigues, Jean-Pierre Roux -# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil -# -# This software is governed by the CeCILL-B license under French law and -# abiding by the rules of distribution of free software. You can use, -# modify and/ or redistribute the software under the terms of the CeCILL-B -# license as circulated by CEA, CNRS and INRIA at the following URL -# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html -# or in the file LICENSE.txt. -# -# As a counterpart to the access to the source code and rights to copy, -# modify and redistribute granted by the license, users are provided only -# with a limited warranty and the software's author, the holder of the -# economic rights, and the successive licensors have only limited -# liability. -# -# The fact that you are presently reading this means that you have had -# knowledge of the CeCILL-B license and that you accept its terms. -# ------------------------------------------------------------------------ */ + # + # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image + # pour la Sant�) + # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton + # Previous Authors : Laurent Guigues, Jean-Pierre Roux + # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil + # + # This software is governed by the CeCILL-B license under French law and + # abiding by the rules of distribution of free software. You can use, + # modify and/ or redistribute the software under the terms of the CeCILL-B + # license as circulated by CEA, CNRS and INRIA at the following URL + # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html + # or in the file LICENSE.txt. + # + # As a counterpart to the access to the source code and rights to copy, + # modify and redistribute granted by the license, users are provided only + # with a limited warranty and the software's author, the holder of the + # economic rights, and the successive licensors have only limited + # liability. + # + # The fact that you are presently reading this means that you have had + # knowledge of the CeCILL-B license and that you accept its terms. + # ------------------------------------------------------------------------ */ /*! * @file groupManager.cxx @@ -37,92 +37,75 @@ namespace creaButtonContainer namespace view { // ---------------------------------------------------------------------------------- - GroupManager::GroupManager( wxWindow* parent, ButtonGroup* buttonGroup ) : - wxFlexGridSizer( 1, 0, 0, 0 ) + GroupManager::GroupManager(wxWindow* parent, ButtonGroup* buttonGroup) + : wxFlexGridSizer(1, 0, 0, 0) { //EED 20/01/2012 flag 02 - std::cout<< "MLER | GroupManager::GroupManager( )" << std::endl; - this->m_IDExpButton = wxNewId( ); - 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 ); + this->m_IDExpButton = wxNewId(); + 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(wxWindow* parent, ListGroup* buttonGroup ): - wxFlexGridSizer( 1, 0, 0, 0 ) - { - std::cout << " MLER groupManager.cxx / GroupManager(ListGroup* buttonGroup) " << std::endl; - this->m_IDExpButton = wxNewId( ); - 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 ); - }//MLER*/ // ---------------------------------------------------------------------------------- - GroupManager::~GroupManager( ) + GroupManager::~GroupManager() { } - + // ---------------------------------------------------------------------------------- - long - GroupManager::GetButtonID( ) + long GroupManager::GetButtonID() { - std::cout<< "MLER | GroupManager::GetButtonID( )" << std::endl; - return ( this->m_IDExpButton ); + return (this->m_IDExpButton); } - + // ---------------------------------------------------------------------------------- GroupManager::ExpansionButton* - GroupManager::GetButton( ) + GroupManager::GetButton() { - std::cout<< "MLER | GroupManager::GetButton( )" << std::endl; - return ( this->m_ExpansionButton ); + return (this->m_ExpansionButton); } - + // ---------------------------------------------------------------------------------- ButtonManager* - GroupManager::GetButtonManager( ) + GroupManager::GetButtonManager() { - return ( this->m_ButtonManager ); + return (this->m_ButtonManager); } - + // ---------------------------------------------------------------------------------- - void - GroupManager::SetButtonID( long id ) + void GroupManager::SetButtonID(long id) { this->m_IDExpButton = id; } - + // ---------------------------------------------------------------------------------- - void - GroupManager::SetButton( ExpansionButton* button ) + void GroupManager::SetButton(ExpansionButton* button) { this->m_ExpansionButton = button; } - + // ---------------------------------------------------------------------------------- - void - GroupManager::SetButtonManager( ButtonManager* container ) + void GroupManager::SetButtonManager(ButtonManager* container) { this->m_ButtonManager = container; } - + // ---------------------------------------------------------------------------------- - void - GroupManager::HideSubPanel( bool hide ) + void GroupManager::HideSubPanel(bool hide) { - std::cout<< "MLER | GroupManager::HideSubPanel( bool hide )" << std::endl; - if ( hide == true ) + if (hide == true) { - this->m_ButtonManager->HideButtonManager( ); - }//fi + this->m_ButtonManager->HideButtonManager(); + } //fi else { - this->m_ButtonManager->ShowButtonManager( ); - }//esle + this->m_ButtonManager->ShowButtonManager(); + } //esle } // ---------------------------------------------------------------------------------- }//ecapseman -}//ecapseman +} //ecapseman