ButtonManager::ButtonManager( ) :
wxFlexGridSizer( 0, 1, 0, 0 )
{
+ std::cout<< "MLER | ButtonManager::ButtonManager( )" << std::endl;
}
//EED 20/01/2012 Flag03
{
try
{
+ std::cout<< "MLER | ButtonManager::ButtonManager( ButtonGroup* buttonGroup )" << std::endl;
this->SetGroupName( buttonGroup->GetGroupName( ) );
this->SetButtonManager( buttonGroup->GetButtonContainer( ) );
}//yrt
std::cerr << "Button::Execute( ) exception: " << e.what( ) << std::endl;
}//hctac
}
-
+ // ----------------------------------------------------------------------------------
+ //MLER
+ /*ButtonManager::ButtonManager (ListGroup* buttonGroup):
+ wxFlexGridSizer( 0, 1, 0, 0 )
+ {
+ try
+ {
+ std::cout << " MLER buttonManager.cxx / ButtonManager(ListGroup* buttonGroup) " << std::endl;
+ this->SetGroupName( buttonGroup->GetGroupName( ) );
+ this->SetListManager(buttonGroup->GetButtonContainer( ) );
+ }//yrt
+ catch ( const std::exception& e )
+ {
+ std::cerr << "Button::Execute( ) exception: " << e.what( ) << std::endl;
+ }//hctac
+ }*/
// ----------------------------------------------------------------------------------
ButtonManager::~ButtonManager( )
{
// ----------------------------------------------------------------------------------
void ButtonManager::SetGroupName( wxStaticText* groupName )
{
+ std::cout<< "MLER | ButtonManager::SetGroupName( wxStaticText* groupName )" << std::endl;
this->m_GroupName = groupName;
this->Add( this->m_GroupName, -1, wxALL | wxALIGN_LEFT | wxALIGN_TOP, 5 );
}
// ----------------------------------------------------------------------------------
void ButtonManager::SetButtonManager( ButtonContainer buttonContainer )
{
+ std::cout<< "MLER | ButtonManager::SetButtonManager( ButtonContainer buttonContainer )" << std::endl;
try
{
if ( this->m_GroupName != NULL )
}//hctac
}
// ----------------------------------------------------------------------------------
+
+ /*void ButtonManager::SetListManager(ListContainer buttonContainer )
+ {
+ try
+ {
+ if ( this->m_GroupName != NULL )
+ {
+ this->m_GridSizer = new wxGridSizer( 0, 3, 0, 0 );
+ for( ListContainer::iterator it = buttonContainer.begin( ); it!= buttonContainer.end( ); ++it )
+ {
+ this->m_GridSizer->Add( ( *it ).second, -1, wxALL | wxALIGN_LEFT | wxALIGN_TOP, 5 );
+ }
+ this->Add( m_GridSizer, -1, wxALL | wxALIGN_LEFT | wxALIGN_TOP, 5 );
+ }//fi
+ }//yrt
+ catch ( const std::exception& e )
+ {
+ std::cerr
+ << "ButtonManager::SetButtonManager( ButtonContainer buttonContainer )"
+ << "exception: " << e.what( ) << std::endl;
+ }//hctac
+ }*/
+ // ----------------------------------------------------------------------------------
+
+
+
+
void
ButtonManager::ShowButtonManager( )
{
+ std::cout<< "MLER | ButtonManager::ShowButtonManager( )" << std::endl;
this->Show( this->m_GridSizer, true, false );
}
// ----------------------------------------------------------------------------------
void
ButtonManager::HideButtonManager( )
{
+ std::cout<< "MLER | ButtonManager::HideButtonManager( )" << std::endl;
this->Show( this->m_GridSizer, false, false );
}
// ----------------------------------------------------------------------------------