]> Creatis software - creaMaracasVisu.git/commitdiff
#2504 creaMaracasVisu Feature New Normal - alternation between containers: button...
authormonica <monica@localhost.localdomain>
Thu, 15 Jan 2015 10:43:37 +0000 (11:43 +0100)
committermonica <monica@localhost.localdomain>
Thu, 15 Jan 2015 10:43:37 +0000 (11:43 +0100)
lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/view/buttonContainerPanel.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/view/listWx.cxx

index 340258234a441ee5099ef1dbd6efdc74f77e702d..bdd564998b6cc042961643972084819c7d13d842 100644 (file)
@@ -51,7 +51,7 @@ namespace creaButtonContainer
                        ButtonGroupFactory factory;
                        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)
@@ -61,7 +61,7 @@ namespace creaButtonContainer
                        break;
                        case 1:
                                this->SetListGroupContainer(listFactory.CreateButtonGroupContainer( this, settings ) );
-                                                               //Verificar ButtonGroupList contra ListGroupList
+                                                               // MLER Verificar ButtonGroupList contra ListGroupList
                        break;
                        default:
                                this->SetButtonGroupContainer(factory.CreateButtonGroupContainer( this, settings ) );
index f64ab47bcc5d3a4a62628a410149eeacad316b36..facd7f02ea39638e0c87342c72b97c04689ebc32 100644 (file)
@@ -40,14 +40,27 @@ namespace creaButtonContainer
                        wxString buttonName( wXbuttonName.c_str( ), wxConvUTF8 );
                        wxString description( wXdescription.c_str( ), wxConvUTF8 );
                        //creating the button.
-                       /*this->Create( parent, id,
-                                       wXicon,
-                           wxDefaultPosition, wxDefaultSize,wxBU_AUTODRAW, wxDefaultValidator,
-                           buttonName );*/
+                       //this->Create( parent, id,
+                               //      wXicon,
+                           //wxDefaultPosition, wxDefaultSize,wxBU_AUTODRAW, wxDefaultValidator,
+                           //buttonName );
                        this->Create( parent, id,
                                                    wxDefaultPosition, wxDefaultSize,wxLC_LIST, wxDefaultValidator,
                                                    buttonName );
                        this->SetToolTip( description );
+
+
+                               long index = this->InsertItem(0, _("John Smith"));
+                           this->SetItem(index, 1, _("jsmith"));
+
+                           index = this->InsertItem(1, _("Monica"));
+                           this->SetItem(index, 1, _("monica"));
+
+                           index = this->InsertItem(2, _("Momo"));
+                           this->SetItem(index, 2, _("momo"));
+
+
+
                }
 
                // ----------------------------------------------------------------------------------