#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 <wx/listctrl.h>
+#include <wx/control.h>
+#include <wx/choice.h>
+#include <wx/listbox.h>
+#include <wx/wx.h>
+
+
+#include <map>
+#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, long id, ButtonPair* pair );
+ ListWx( wxWindow* parent, wxWindowID id,ItemsMap iMap , TFunctor* functor );
// ----------------------------------------------------------------------------------
virtual
long
GetID( );
- // ----------------------------------------------------------------------------------
-
- StringType
- GetButtonName( );
-
- // ----------------------------------------------------------------------------------
-
- BitmapType
- GetIcon( );
-
- // ----------------------------------------------------------------------------------
-
- StringType
- GetDescription( );
- // ----------------------------------------------------------------------------------
void
- Execute( );
+ ListEvent( wxCommandEvent& event );
// ----------------------------------------------------------------------------------
private:
- ButtonPair* m_ButtonPair; //! <The pair with the button information.
+ ItemsMap m_itemsMap; //! <The pair with the button information.
+ TFunctor* functor;
+ //wxPanel* panel;
+ wxListBox* listBox;
+ wxFlexGridSizer* sizer;
+
};
}//ecapseman