]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/creaPanelButtonContainer/buttonContainerSettings.h
#2516 creaMaracasVisu Feature New Normal - creaPanelButtonContainer ListPanel with...
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / creaPanelButtonContainer / buttonContainerSettings.h
index a502b9a37fed363c3e2cb5a95f80a27916d9a469..bb00f7dff81a165f03ff055861531a7f3b23adad 100644 (file)
@@ -35,6 +35,7 @@
 
 #include <wx/panel.h>
 #include <wx/bitmap.h>
+#include <wx/listctrl.h>
 
 #include <list>
 #include <map>
@@ -45,6 +46,7 @@
 #include "containerSettings.h"
 #include "functor.h"
 
+
 /*!    @namespace <creaPanelButtonContainer>
  *     @brief Contains the creaPanelButtonContainer library included in creaMaracasVisu.
  */
@@ -123,6 +125,8 @@ namespace creaPanelButtonContainer
                        /*! @class ButtonContainerSettings buttonContainerSettings.h "buttonContainerSettings.h"
                         *      @brief This class contains the settings of the button container.
                         */
+
+                       typedef std::map< std::string, wxPanel* > ItemsMap;
                public:
                        // ----------------------------------------------------------------------------------
                        /*! @fn ButtonContainerSettings( );
@@ -173,6 +177,16 @@ namespace creaPanelButtonContainer
                         *      @brief This method sets the button group container.
                         * @param bGroupContainer
                         */
+
+                       // ----------------------------------------------------------------------------------
+
+                       ButtonGroupSettings*
+                       GetListGroupSettings();
+
+                       // ----------------------------------------------------------------------------------
+
+
+
                        void
                        SetButtonGroupContainer( ButtonGroupMap bGroupContainer );
                        // ----------------------------------------------------------------------------------
@@ -216,11 +230,25 @@ namespace creaPanelButtonContainer
                         * @exception std::bad_alloc
                         */
                        void
-                       AddButtons( BCStructVectorType infoList );
+                       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_ */