]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/view/listWx.h
#2502 creaMaracasVisu Feature New Normal - alternation between containers: button...
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / creaButtonContainer / view / listWx.h
index 472875c7812408504629e53012977dfcde202e2f..905dbec35612b45dc4f1678b313b84e8815156ad 100644 (file)
 # ------------------------------------------------------------------------ */
 
 
-#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