]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/view/listWx.h
#2516 creaMaracasVisu Feature New Normal - creaPanelButtonContainer ListPanel with...
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / creaButtonContainer / view / listWx.h
index 472875c7812408504629e53012977dfcde202e2f..7f0478ae9b28607aaa490e62860004435b41b192 100644 (file)
 # ------------------------------------------------------------------------ */
 
 
-#ifndef LISTWX_H_
-#define LISTWX_H_
+#ifndef LISTWX_H
+#define LISTWX_H
 
-#include <wx/window.h>
+//#include <wx/bmpbuttn.h>
+#include <wx/panel.h>
+#include <wx/image.h>
 #include <wx/string.h>
-#include <wx/listctrl.h>
+#include <wx/bitmap.h>
+//#include <wx/listctrl.h>
+#include <wx/control.h>
+#include <wx/choice.h>
+#include <wx/listbox.h>
+#include <wx/wx.h>
 
-#include <list>
+
+#include <map>
+#include <string>
+#include "functor.h"
+#include <wx/event.h>
 
 #include "system.h"
 
-/*!    @namespace <creaButtonContainer>
- *     @brief Contains the creaButtonContainer library included in creaMaracasVisu.
- */
 namespace creaButtonContainer
 {
-       /*! @namespace <creaButtonContainer::view>
-        *      @brief Contains the implementation of the view in creaButtonContainer library.
-        *      @see <a href="http://en.wikipedia.org/wiki/Model-view-controller">MVC Software Architecture</a>
-        */
+
        namespace view
        {
-               class ListWx : wxListCtrl
+
+               class ListWx : public wxPanel
                {
-                       public :
+                       public:
 
-                               typedef wxListItem* Item;
-                               typedef std::list< Item > ItemsList; //lista de los objetos lista
+                               typedef creaButtonContainer::model::TFunctor TFunctor;
+                               typedef std::map<std::string, wxPanel*> ItemsMap;
 
-                       public :
+                       public:
 
-                               ListWx();
-                               ListWx( wxWindow* parent, ItemsList items );
+                               ListWx( wxWindow* parent, wxWindowID id,ItemsMap iMap , TFunctor* functor );
+                               // ----------------------------------------------------------------------------------
 
                                virtual
-                               ~ListWx();
+                               ~ListWx( );
+                               // ----------------------------------------------------------------------------------
 
-                               ItemsList const
-                               getItems ();
+                               long
+                               GetID( );
 
                                void
-                               setItems(Item i);
-
-                       private :
+                               ListEvent( wxCommandEvent& event );
+                               // ----------------------------------------------------------------------------------
+                       private:
+                               ItemsMap m_itemsMap; //! <The pair with the button information.
+                               TFunctor* functor;
+                               //wxPanel* panel;
+                               wxListBox* listBox;
+                               wxFlexGridSizer* sizer;
 
-                               ItemsList m_items;
 
                };
-       }
-}
+       }//ecapseman
+}//ecapseman
 
-#endif /* LISTWX_H_ */
+#endif // LISTWX_H