]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/creaPanelButtonContainer/buttonContainerSettings.h
#2497 creaMaracasVisu Feature New Normal - In container button add the list option
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / creaPanelButtonContainer / buttonContainerSettings.h
index ef4819635b46eef281d65ff30cbd3c55e728fff5..056e4e87e89a6e61ac25b3506f4333be9897d091 100644 (file)
@@ -34,6 +34,8 @@
 #define BUTTONCONTAINERSETTINGS_H_
 
 #include <wx/panel.h>
+#include <wx/bitmap.h>
+//EED-MLER #include <wx/listctrl.h>
 
 #include <list>
 #include <map>
@@ -44,6 +46,7 @@
 #include "containerSettings.h"
 #include "functor.h"
 
+
 /*!    @namespace <creaPanelButtonContainer>
  *     @brief Contains the creaPanelButtonContainer library included in creaMaracasVisu.
  */
@@ -82,12 +85,14 @@ namespace creaPanelButtonContainer
                         *      First is the button description, Second FunctionEventType
                         */
                        typedef std::pair< std::string, PanelButton > ActionButton;
+                       
                        // ----------------------------------------------------------------------------------
-                       /*!     @typedef std::pair< std::string, std::string > ButtonInfo;
+                       /*!     @typedef std::pair< std::string, wxBitmap > ButtonInfo;
                         *      @brief Defines the ButtonInfo type.
-                        *      First is the ButtonName, Second is the ImageIconPath
+                        *      First is the ButtonName, Second is the ImageIcon
                         */
-                       typedef std::pair< std::string, std::string > ButtonInfo;
+                       typedef std::pair< std::string, wxBitmap > ButtonInfo;
+                       
                        // ----------------------------------------------------------------------------------
                        /*!     @typedef std::pair< ButtonInfo*, ActionButton* > ButtonPair;
                         *      @brief Defines the ButtonPair type.
@@ -98,11 +103,13 @@ namespace creaPanelButtonContainer
                         *      @brief Defines the KeyMapList type.
                         */
                        typedef std::list< std::string > KeyMapList;
+               
                        // ----------------------------------------------------------------------------------
                        /*!     @typedef std::list< ButtonPair* > ButtonList;
                         *      @brief Defines the ButtonList type.
                         */
-                       typedef std::list< ButtonPair* > ButtonList;
+                       typedef std::list< ButtonPair* > ButtonList;                    
+                       
                        // ----------------------------------------------------------------------------------
                        /*!     @typedef std::map< std::string, ButtonList > ButtonGroupMap;
                         *      @brief Defines the ButtonGroupMap type.
@@ -118,6 +125,12 @@ namespace creaPanelButtonContainer
                        /*! @class ButtonContainerSettings buttonContainerSettings.h "buttonContainerSettings.h"
                         *      @brief This class contains the settings of the button container.
                         */
+
+//EED-MLER                     typedef wxListItem Item;
+//EED-MLER                     typedef std::list < tList* > ItemsList;
+//EED-MLER                     typedef std::map< StringType, ListLst > ListGroupMap;
+
+
                public:
                        // ----------------------------------------------------------------------------------
                        /*! @fn ButtonContainerSettings( );
@@ -130,6 +143,7 @@ namespace creaPanelButtonContainer
                         */
                        virtual
                        ~ButtonContainerSettings( );
+                       
                        // ----------------------------------------------------------------------------------
                        /*! @fn ButtonGroupMap GetButtonGroupContainer( );
                         *      @brief This method returns ButtonGroupMap with all buttons.
@@ -167,6 +181,16 @@ namespace creaPanelButtonContainer
                         *      @brief This method sets the button group container.
                         * @param bGroupContainer
                         */
+
+                       // ----------------------------------------------------------------------------------
+
+                       ButtonGroupSettings*
+                       GetListGroupSettings();
+
+                       // ----------------------------------------------------------------------------------
+
+
+
                        void
                        SetButtonGroupContainer( ButtonGroupMap bGroupContainer );
                        // ----------------------------------------------------------------------------------
@@ -176,6 +200,7 @@ namespace creaPanelButtonContainer
                         */
                        void
                        SetGroupNameList( KeyMapList gNameList );
+                       
                        // ----------------------------------------------------------------------------------
                        /*! @fn void AddButton( const std::string &groupName, const std::string &buttonName,
                         const std::string &iconpath, const std::string &buttonDescription,
@@ -190,8 +215,9 @@ namespace creaPanelButtonContainer
                         */
                        void
                        AddButton( const std::string &groupName, const std::string &buttonName,
-                           const std::string &iconpath, const std::string &buttonDescription,
+                           const wxBitmap &icon, const std::string &buttonDescription,
                            PanelButton panel );
+                       
                        // ----------------------------------------------------------------------------------
                        /*! @fn void AddButton( BCPSettingsStruct* info );
                         * @brief This method adds a new button into a group of buttons.
@@ -200,6 +226,7 @@ namespace creaPanelButtonContainer
                         */
                        void
                        AddButton( BCPSettingsStruct* info );
+                       
                        // ----------------------------------------------------------------------------------
                        /*! @fn void AddButtons( BCStructVectorType infoList );
                         * @brief This method adds new buttons into the container.
@@ -208,10 +235,22 @@ namespace creaPanelButtonContainer
                         */
                        void
                        AddButtons( BCStructVectorType infoList );
+
+//EED-MLER
+/*
+                       void
+                       AddItem (BCPSettingsStruct* info);
+
+                       void
+                       AddItems( BCStructVectorType infoList );
+*/
+
                        // ----------------------------------------------------------------------------------
                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.
+
+//EED-MLER                     ListGroupMap m_ListGroupContainer;
        };
 }//ecapseman
 #endif /* BUTTONCONTAINERSETTINGS_H_ */