# ------------------------------------------------------------------------ */
-#ifndef LISTWX_H_
-#define LISTWX_H_
+#ifndef LISTWX_H
+#define LISTWX_H
-#include <wx/window.h>
+//#include <wx/bmpbuttn.h>
+#include <wx/image.h>
#include <wx/string.h>
+#include <wx/bitmap.h>
#include <wx/listctrl.h>
-#include <list>
-
#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 wxListCtrl
{
- public :
+ public:
- typedef wxListItem* Item;
- typedef std::list< Item > ItemsList; //lista de los objetos lista
+ typedef creaButtonContainer::model::TFunctor TFunctor;
- public :
+ public:
- ListWx();
- ListWx( wxWindow* parent, ItemsList items );
+ ListWx( wxWindow* parent, long id, ButtonPair* pair );
+ // ----------------------------------------------------------------------------------
virtual
- ~ListWx();
+ ~ListWx( );
+ // ----------------------------------------------------------------------------------
- ItemsList const
- getItems ();
+ long
+ GetID( );
+ // ----------------------------------------------------------------------------------
- void
- setItems(Item i);
+ StringType
+ GetButtonName( );
- private :
+ // ----------------------------------------------------------------------------------
- ItemsList m_items;
+ BitmapType
+ GetIcon( );
+
+ // ----------------------------------------------------------------------------------
+
+ StringType
+ GetDescription( );
+ // ----------------------------------------------------------------------------------
+
+ void
+ Execute( );
+ // ----------------------------------------------------------------------------------
+ private:
+ ButtonPair* m_ButtonPair; //! <The pair with the button information.
};
- }
-}
+ }//ecapseman
+}//ecapseman
-#endif /* LISTWX_H_ */
+#endif // LISTWX_H