]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/view/listWx.h
#2507 creaMaracasVisu Feature New Normal - creaPanelButtonContainerListPanel
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / creaButtonContainer / view / listWx.h
index 905dbec35612b45dc4f1678b313b84e8815156ad..970799c44088320653534ee6c3639bae1899ed0e 100644 (file)
 #define LISTWX_H
 
 //#include <wx/bmpbuttn.h>
+#include <wx/panel.h>
 #include <wx/image.h>
 #include <wx/string.h>
 #include <wx/bitmap.h>
 #include <wx/listctrl.h>
+#include <map>
+#include <cstring>
+#include "functor.h"
 
 #include "system.h"
 
@@ -46,10 +50,10 @@ namespace creaButtonContainer
                        public:
 
                                typedef creaButtonContainer::model::TFunctor TFunctor;
-
+                               typedef std::map<std::string, wxPanel*> ItemsMap;
                        public:
 
-                               ListWx( wxWindow* parent, long id, ButtonPair* pair );
+                               ListWx( wxWindow* parent, wxWindowID id, ItemsMap iMap , TFunctor* functor );
                                // ----------------------------------------------------------------------------------
 
                                virtual
@@ -58,27 +62,13 @@ namespace creaButtonContainer
 
                                long
                                GetID( );
-                               // ----------------------------------------------------------------------------------
-
-                               StringType
-                               GetButtonName( );
-
-                               // ----------------------------------------------------------------------------------
-
-                               BitmapType
-                               GetIcon( );
-
-                               // ----------------------------------------------------------------------------------
-
-                               StringType
-                               GetDescription( );
-                               // ----------------------------------------------------------------------------------
 
                                void
-                               Execute( );
+                               ButtonEvent( wxCommandEvent& event );
                                // ----------------------------------------------------------------------------------
                        private:
-                               ButtonPair* m_ButtonPair; //! <The pair with the button information.
+                               ItemsMap m_itemsMap; //! <The pair with the button information.
+                               TFunctor* functor;
 
                };
        }//ecapseman