]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/controller/buttonContainerController.cxx
creaButtonContainer: Documentation updates :) :). If you turns on the documentation...
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / creaButtonContainer / controller / buttonContainerController.cxx
index 175093062ccc60bfd9690dcfb95e68b1c1b7f282..83560a44846f5ae530259fc5c317d9d05f3a154c 100644 (file)
@@ -1,19 +1,14 @@
-/************************************************************************************//*!
- * Name:      @file buttonContainerController.cxx
- * Purpose:   @brief This contains the ButtonContainerController class implementation
- * Author:    @author Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
- * Modified:  2011-05-17
- * Copyright:
- * License:
- ***************************************************************************************/
+/*!
+ * @file buttonContainerController.cxx
+ * @brief This contains the ButtonContainerController class implementation
+ * @author Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
+ * @date  2011-05-19
+ */
 
-//! @include "buttonContainerController.h"
 #include "buttonContainerController.h"
 
-//!    @namespace<creaButtonContainer>
 namespace creaButtonContainer
 {
-       //!     @namespace<controller>
        namespace controller
        {
                // ----------------------------------------------------------------------------------
@@ -24,6 +19,7 @@ namespace creaButtonContainer
                // ----------------------------------------------------------------------------------
                ButtonContainerController::~ButtonContainerController( )
                {
+                       delete this->m_BCPanel;
                }
                // ----------------------------------------------------------------------------------
                void
@@ -39,8 +35,7 @@ namespace creaButtonContainer
                                        this->Connect(
                                            ( *it ).first,
                                            wxEVT_COMMAND_BUTTON_CLICKED,
-                                           ( wxObjectEventFunction )
-                                               & ButtonContainerController::ButtonExpEvent );
+                                           (wxObjectEventFunction) &ButtonContainerController::ButtonExpEvent );
                                }//rof
 
                                //Adding ButtonEvents
@@ -51,11 +46,8 @@ namespace creaButtonContainer
                                        KeyList keylist = ( *it )->GetButtonIdContainer( );
                                        for( KeyList::iterator it2 = keylist.begin( ); it2 != keylist.end( ); ++it2 )
                                        {
-                                               this->Connect(
-                                                   ( *it2 ),
-                                                   wxEVT_COMMAND_BUTTON_CLICKED,
-                                                   ( wxObjectEventFunction )
-                                                       & ButtonContainerController::ButtonEvent );
+                                               this->Connect( ( *it2 ), wxEVT_COMMAND_BUTTON_CLICKED,
+                                                   (wxObjectEventFunction) &ButtonContainerController::ButtonEvent );
                                        }//rof
                                }//rof
                        }//yrt