#include <wx/image.h>
#include <wx/string.h>
#include <wx/bitmap.h>
-#include <wx/listctrl.h>
+//#include <wx/listctrl.h>
+#include <wx/control.h>
+#include <wx/choice.h>
+#include <wx/listbox.h>
+#include <wx/wx.h>
+
+
#include <map>
-#include <cstring>
+#include <string>
#include "functor.h"
+#include <wx/event.h>
#include "system.h"
namespace view
{
- class ListWx : public wxListCtrl
+ class ListWx : public wxPanel
{
public:
typedef creaButtonContainer::model::TFunctor TFunctor;
typedef std::map<std::string, wxPanel*> ItemsMap;
+
public:
- ListWx( wxWindow* parent, wxWindowID id, ItemsMap iMap , TFunctor* functor );
+ ListWx( wxWindow* parent, wxWindowID id,ItemsMap iMap , TFunctor* functor );
// ----------------------------------------------------------------------------------
virtual
GetID( );
void
- ButtonEvent( wxCommandEvent& event );
+ ListEvent( wxCommandEvent& event );
// ----------------------------------------------------------------------------------
private:
ItemsMap m_itemsMap; //! <The pair with the button information.
TFunctor* functor;
+ //wxPanel* panel;
+ wxListBox* listBox;
+ wxFlexGridSizer* sizer;
+
};
}//ecapseman