]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/view/groupManager.cxx
DFCH
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / creaButtonContainer / view / groupManager.cxx
index 57c3fe3109f42f5027de845f1624b2763b063ff3..86a461a1ed359e881d7c6be73487a252e0f3795c 100644 (file)
@@ -1,8 +1,8 @@
 /*!
  * @file groupManager.cxx
- * @brief This contains the GroupManager class implementation
+ * @brief Implements the GroupManager class.
  * @author Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
- * @date  2011-05-19
+ * @date  2011-06-02
  */
 
 #include "groupManager.h"
@@ -11,7 +11,7 @@ namespace creaButtonContainer
 {
        namespace view
        {
-               // -------------------------------------------------------------------
+               // ----------------------------------------------------------------------------------
                GroupManager::GroupManager( wxWindow* parent, ButtonGroup* buttonGroup ) :
                        wxFlexGridSizer( 1, 0, 0, 0 )
                {
@@ -21,57 +21,62 @@ namespace creaButtonContainer
                            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->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