]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/view/button.cxx
#2509 creaMaracasVisu Feature New Normal - creaPanelButtonContainer ListPanel with...
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / creaButtonContainer / view / button.cxx
index ae64e063bd886ce166ae512fcd1527255bbda29e..7c81882f3386babdcd6510b4c0b71080a56cf903 100644 (file)
@@ -39,6 +39,8 @@ namespace creaButtonContainer
                // ----------------------------------------------------------------------------------
                Button::Button( wxWindow* parent, long id, ButtonPair* pair )           
                {
+                       std::cout<< "MLER | Button::Button()" << std::endl;
+
                        this->m_ButtonPair                      = pair;
                        StringType wXbuttonName         = this->m_ButtonPair->first->first;
                        BitmapType wXicon               = this->m_ButtonPair->first->second;
@@ -61,6 +63,7 @@ namespace creaButtonContainer
                StringType
                Button::GetButtonName( )
                {
+                       std::cout<< "MLER | Button::GetButtonName( )" << std::endl;
                        return ( this->m_ButtonPair->first->first );
                }
 
@@ -68,6 +71,7 @@ namespace creaButtonContainer
                BitmapType
                Button::GetIcon( )
                {
+                       std::cout<< "MLER | Button::GetIcon( )" << std::endl;
                        return ( this->m_ButtonPair->first->second );
                }               
 
@@ -82,6 +86,7 @@ namespace creaButtonContainer
                StringType
                Button::GetDescription( )
                {
+                       std::cout<< "MLER | Button::GetDescription( )" << std::endl;
                        return ( this->m_ButtonPair->second->first );
                }
                
@@ -89,11 +94,14 @@ namespace creaButtonContainer
                void
                Button::Execute( )
                {
+                       std::cout<< "MLER | Button::Execute( )" << std::endl;
                        try
                        {
                                TFunctor* vTable[ ] =
                                { this->m_ButtonPair->second->second };
+
                                vTable[ 0 ]->Call( this->m_ButtonPair->first->first );
+                               std::cout<< "Call Button: " << this->m_ButtonPair->first->first  <<std::endl;
                        }//yrt
                        catch ( const std::exception& e )
                        {