#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"
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( );
+ 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