]> Creatis software - creaMaracasVisu.git/commitdiff
#2516 creaMaracasVisu Feature New Normal - creaPanelButtonContainer ListPanel with...
authorespinosa <espinosa@creatis.insa-lyon.fr>
Mon, 26 Jan 2015 15:13:00 +0000 (16:13 +0100)
committerespinosa <espinosa@creatis.insa-lyon.fr>
Mon, 26 Jan 2015 15:13:00 +0000 (16:13 +0100)
bbtk/src/bbcreaMaracasVisuPanelButtonContainer.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/model/containerSettings.h
lib/maracasVisuLib/src/interface/wxWindows/widgets/creaPanelButtonContainer/buttonContainerSettings.cxx
lib/maracasVisuLib/src/interface/wxWindows/widgets/creaPanelButtonContainer/buttonContainerSettings.h

index 882d3d0d675cb402b6ec07afe81de64fedac567f..3386357f1cf69e8dd0194e822b1aeda64496169a 100644 (file)
@@ -74,7 +74,7 @@ void PanelButtonContainer::CreateWidget( wxWindow* parent )
 void
 PanelButtonContainer::bbUserSetDefaultValues( )
 {
-   bbSetInputType("0");
+   bbSetInputType(0);
 }
 //===== 
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
index 23029770c283b5f5a3b1a7c2be2c256df5a914e2..05c326f981acffb4b99afc9bbb6616b7594b2243 100644 (file)
@@ -154,9 +154,6 @@ namespace creaButtonContainer
                                void
                                AddButtons( BCStructVectorType infoList );
 
-                               // ----------------------------------------------------------------------------------
-                               AddItems( BCStructVectorType infoList );*/
-
                                // ----------------------------------------------------------------------------------
                                // ----------------------------------------------------------------------------------
                        private:
index e93c87a03fcc78994b6dda0b3a478429507dd985..7f96dcf9223f4146ccacd144a96ea061302c526e 100644 (file)
@@ -281,9 +281,6 @@ namespace creaPanelButtonContainer
                }//hctac
        }
 
-
-//EED-MLER
-/*
        void
        ButtonContainerSettings::AddItems(BCPSettingsStruct* info)
        {
@@ -307,24 +304,6 @@ namespace creaPanelButtonContainer
                }//yrt
                catch ( const std::exception& e )
                {
-<<<<<<< HEAD
-                       try
-                       {
-                               for( BCStructVectorType::iterator it = infoList.begin( ); it
-                                   != infoList.end( ); ++it )
-                               {
-                                       this->AddItem(*it);
-                               }//rof
-                       }//yrt
-                       catch ( const std::exception& e )
-                       {
-                               std::cerr
-                           << "ContainerSettings::AddButtons( BCStructVectorType infoList ) "
-                           << "exception: " << e.what( ) << std::endl;
-                       }//hctac
-               }
-*/
-=======
                        std::cerr
                        << "ButtonContainerSettings::AddButton( BCPSettingsStruct* info )"
                        << "exception: " << e.what( ) << std::endl;
@@ -339,8 +318,6 @@ namespace creaPanelButtonContainer
                return m_itemsMap;
        }
 
->>>>>>> b8c5a565c70ac0def1f21518afa2d847a9582d79
 
 // ----------------------------------------------------------------------------------
 }//ecapseman
-
index 9f3e5245db7d7f17cdb1cfc1e433f710951ecfb9..bb00f7dff81a165f03ff055861531a7f3b23adad 100644 (file)
@@ -35,7 +35,7 @@
 
 #include <wx/panel.h>
 #include <wx/bitmap.h>
-//EED-MLER #include <wx/listctrl.h>
+#include <wx/listctrl.h>
 
 #include <list>
 #include <map>
@@ -126,9 +126,7 @@ namespace creaPanelButtonContainer
                         *      @brief This class contains the settings of the button container.
                         */
 
-
                        typedef std::map< std::string, wxPanel* > ItemsMap;
-
                public:
                        // ----------------------------------------------------------------------------------
                        /*! @fn ButtonContainerSettings( );
@@ -234,15 +232,23 @@ namespace creaPanelButtonContainer
                        void
                        AddButtons( BCStructVectorType infoList, int type );
 
+                       void
+                       AddItems(BCPSettingsStruct* info);
+
+                       ItemsMap
+                       GetItemsMap();
+
+                       PanelButton
+                       GetPanelList( const StringType &buttonName );
+
+
                        // ----------------------------------------------------------------------------------
                private:
                        ButtonGroupMap m_ButtonGroupContainer; //!<This is the map with the groups of buttons.
                        KeyMapList m_GroupNameList; //!<This is a container with the name of the groups.
 
-
                        //MLER
                        ItemsMap m_itemsMap; //This is the map with the name and the wPanel
                };
-
 }//ecapseman
 #endif /* BUTTONCONTAINERSETTINGS_H_ */