]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/view/listGroup.cxx
#2507 creaMaracasVisu Feature New Normal - creaPanelButtonContainer ListPanel
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / creaButtonContainer / view / listGroup.cxx
index 9d6fbe6e907c7ca6e41772298e50bc80c408b731..04686b098403493fce4faf03d6edf47b7f954744 100644 (file)
 #  knowledge of the CeCILL-B license and that you accept its terms.
 # ------------------------------------------------------------------------ */
 
-/*!
- * @file buttonGroup.cxx
- * @brief Implements the ListGroup class.
- * @author Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
- * @date  2011-06-02
- */
-
-
-//EED-MLER
-/*
-#include "listGroup.h"
+/*#include "listGroup.h"
 
 namespace creaButtonContainer
 {
        namespace view
        {
                // ----------------------------------------------------------------------------------
-               ListGroup::ListGroup( wxStaticText* groupName, ListContainer list )
+               ListGroup::ListGroup( wxStaticText* groupName, ButtonContainer cartoButtons )
                {
                        this->m_GroupName = groupName;
-                       this->m_List = list;
+                       this->m_Buttons = cartoButtons;
                }
 
                // ----------------------------------------------------------------------------------
@@ -52,10 +42,10 @@ namespace creaButtonContainer
                }
 
                // ----------------------------------------------------------------------------------
-               ListGroup::ListContainer
-               ListGroup::GetListContainer( )
+               ListGroup::ButtonContainer
+               ListGroup::GetButtonContainer( )
                {
-                       return ( this->m_List );
+                       return ( this->m_Buttons );
                }
 
                // ----------------------------------------------------------------------------------
@@ -66,10 +56,43 @@ namespace creaButtonContainer
                }
 
                // ----------------------------------------------------------------------------------
+               ListGroup::IdButtonContainer
+               ListGroup::GetButtonIdContainer( )
+               {
+                       IdButtonContainer idContainer;
+                       try
+                       {
+                               for( ButtonContainer::iterator it = this->m_Buttons.begin( ); it
+                                   != this->m_Buttons.end( ); ++it )
+                               {
+                                       idContainer.push_back( ( *it ).first );
+                               }//rof
+                       }//yrt
+                       catch ( std::exception& e )
+                       {
+                               std::cerr << "ButtonGroup::GetButtonIdContainer( )" << "exception: "
+                                   << e.what( ) << std::endl;
+                       }//hctac
+                       return ( idContainer );
+               }
 
-
+               // ----------------------------------------------------------------------------------
+               ListGroup::Button*
+               ListGroup::GetButton( long id )
+               {
+                       try
+                       {
+                               //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
-}//ecapseman
+}//ecapseman*/
+
 
-*/