: wxScrolledWindow(parent,-1, wxDefaultPosition,wxDefaultSize, wxTAB_TRAVERSAL | wxVSCROLL | wxHSCROLL | wxFULL_REPAINT_ON_RESIZE, _T("creaButtonContainer") )
{
- std::cout<< std::endl << " MLER buttonContainerPanel.cxx / ButtonContainerPanel() " << std::endl;
+ std::cout<< "MLER | ButtonContainerPanel::ButtonContainerPanel( )" << std::endl;
ButtonGroupFactory factory;
- ListGroupFactory listFactory;
+ //ListGroupFactory listFactory;
- //this->SetButtonGroupContainer( factory.CreateButtonGroupContainer( this, settings ) );
+ //MLER this->SetButtonGroupContainer( factory.CreateButtonGroupContainer( this, settings ) );
std::cout<< std::endl << " MLER buttonContainerPanel.cxx / ButtonContainerPanel() :: type " << type<<std::endl;
switch (type)
case 0:
this->SetButtonGroupContainer( factory.CreateButtonGroupContainer( this, settings ) );
break;
- case 1:
- this->SetListGroupContainer(listFactory.CreateButtonGroupContainer( this, settings ) );
- //Verificar ButtonGroupList contra ListGroupList
- break;
+ //case 1:
+ //this->SetListGroupContainer(listFactory.CreateButtonGroupContainer( this, settings ) );
+ // MLER Verificar ButtonGroupList contra ListGroupList
+ //break;
default:
this->SetButtonGroupContainer(factory.CreateButtonGroupContainer( this, settings ) );
}
// ----------------------------------------------------------------------------------
void ButtonContainerPanel::SetButtonGroupContainer(ButtonGroupList groupContainer )
{
+ std::cout<< "MLER | ButtonContainerPanel::SetButtonGroupContainer()" << std::endl;
this->m_ButtonGroupList = groupContainer;
}
// ----------------------------------------------------------------------------------
- void ButtonContainerPanel::SetListGroupContainer(ListGroupList groupContainer )
+ /*void ButtonContainerPanel::SetListGroupContainer(ListGroupList groupContainer )
{
this->m_ListGroupList = groupContainer;
- }
+ }*/
// ----------------------------------------------------------------------------------
void ButtonContainerPanel::PanelInit( int type )
{
+ std::cout<< "MLER | ButtonContainerPanel::PanelInit( int type )" << std::endl;
try
{
this->m_Sizer->Add( manager, 1, wxALL | wxALIGN_LEFT | wxALIGN_TOP, 5 );
}
}
- else
+ /*else
{
for(ListGroupList::iterator it1 = this->m_ListGroupList.begin(); it1 != this->m_ListGroupList.end(); ++it1)
{
this->m_GroupManagerList[ manager->GetButtonID( ) ] = manager;
this->m_Sizer->Add( manager, 1, wxALL | wxALIGN_LEFT | wxALIGN_TOP, 5 );
}
- }//MLER
+ }//MLER*/
this->SetSizer( this->m_Sizer );
this->Layout( );
// ----------------------------------------------------------------------------------
void ButtonContainerPanel::FitSizer( )
{
+ std::cout<< "MLER | ButtonContainerPanel::FitSizer( )" << std::endl;
this->m_Sizer->Fit( this );
this->m_Sizer->FitInside( this );
this->SetScrollRate( 20, 20 );