]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/view/buttonGroup.cxx
#2509 creaMaracasVisu Feature New Normal - creaPanelButtonContainer ListPanel with...
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / creaButtonContainer / view / buttonGroup.cxx
index 0738e60e6ff1dd6c30f597875c09bbd191780cd9..c9fb31ec465e6bced67a25cb62e5a6681b600ffc 100644 (file)
@@ -1,3 +1,28 @@
+/*# ---------------------------------------------------------------------
+#
+# 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 buttonGroup.cxx
  * @brief Implements the ButtonGroup class.
@@ -12,32 +37,38 @@ namespace creaButtonContainer
        namespace view
        {
                // ----------------------------------------------------------------------------------
-               ButtonGroup::ButtonGroup( wxStaticText* groupName,
-                   ButtonContainer cartoButtons )
+               ButtonGroup::ButtonGroup( wxStaticText* groupName, ButtonContainer cartoButtons )
                {
+                       std::cout<< "MLER | ButtonGroup::ButtonGroup()" << std::endl;
                        this->m_GroupName = groupName;
                        this->m_Buttons = cartoButtons;
                }
+               
                // ----------------------------------------------------------------------------------
                ButtonGroup::~ButtonGroup( )
                {
                }
+               
                // ----------------------------------------------------------------------------------
                ButtonGroup::ButtonContainer
                ButtonGroup::GetButtonContainer( )
                {
+                       std::cout<< "MLER | ButtonGroup::GetButtonContainer( )" << std::endl;
                        return ( this->m_Buttons );
                }
+               
                // ----------------------------------------------------------------------------------
                wxStaticText*
                ButtonGroup::GetGroupName( )
                {
                        return ( this->m_GroupName );
                }
+               
                // ----------------------------------------------------------------------------------
                ButtonGroup::IdButtonContainer
                ButtonGroup::GetButtonIdContainer( )
                {
+                       std::cout<< "MLER | ButtonGroup::GetButtonIdContainer( )" << std::endl;
                        IdButtonContainer idContainer;
                        try
                        {
@@ -54,19 +85,22 @@ namespace creaButtonContainer
                        }//hctac
                        return ( idContainer );
                }
+               
                // ----------------------------------------------------------------------------------
                Button*
                ButtonGroup::GetButton( long id )
                {
+                       std::cout<< "MLER | ButtonGroup::GetButton( long id )" << std::endl;
                        try
                        {
-                               return ( this->m_Buttons[ id ] );
+                               //return ( this->m_Buttons[ id ] ); // JPR
                        }//yrt
                        catch ( std::exception& e )
                        {
                                std::cerr << "ButtonGroup::GetButton( long id )" << "exception: "
                                    << e.what( ) << std::endl;
                        }//hctac
+                       return ( this->m_Buttons[ id ] );// JPR
                }
        // ----------------------------------------------------------------------------------
        }//ecapseman