3 * @brief This contains the Button class.
4 * @author Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
11 #include <wx/bmpbuttn.h>
13 #include <wx/string.h>
19 /*! @namespace <creaButtonContainer>
20 * @brief Contains the creaButtonContainer library included in creaMaracasVisu.
22 namespace creaButtonContainer
24 /*! @namespace <creaButtonContainer::view>
25 * @brief Contains the implementation of the view in creaButtonContainer library.
26 * @see <a href="http://en.wikipedia.org/wiki/Model-view-controller">MVC Software Architecture</a>
30 /*! @class Button : public wxBitmapButton button.h "button.h"
31 * @brief This class contains the Button in the view perspective.
32 * @details This class contains the information of a button, it derives from wxBitmapButton
33 * @see <a href="http://docs.wxwidgets.org/stable/wx_wxbitmapbutton.html">wxBitmapButton</a>
35 class Button : public wxBitmapButton
39 /*! @typedef creaButtonContainer::model::TFunctor TFunctor;
40 * @brief Defines the TFunctor type.
42 typedef creaButtonContainer::model::TFunctor TFunctor;
43 //end of typedef definition
45 // ----------------------------------------------------------------------------------
46 /*! @fn Button::Button( wxWindow* parent, long id, ButtonPair* pair );
47 * @brief This is the constructor.
48 * @param parent The wxWindow* parent.
49 * @param id The wxID of the button.
50 * @param pair The button information.
52 Button( wxWindow* parent, long id, ButtonPair* pair );
53 // ----------------------------------------------------------------------------------
54 /*! @fn virtual Button::~Button( );
55 * @brief This is the destructor.
59 // ----------------------------------------------------------------------------------
60 /*! @fn long Button::GetID( );
61 * @brief This function gets the wxID of the button.
62 * @return long wxID of the button.
66 // ----------------------------------------------------------------------------------
67 /*! @fn std::string Button::GetButtonName( );
68 * @brief This function returns the name of the button.
69 * @return std::string The name of the button.
73 // ----------------------------------------------------------------------------------
74 /*! @fn std::string Button::GetIconPath( );
75 * @brief This function returns the iconPath of the button.
76 * @return std::string The path of the icon.
80 // ----------------------------------------------------------------------------------
81 /*! @fn std::string Button::GetDescription( );
82 * @brief This function returns a the description of the button.
83 * @return std::string The tooltip of the button.
87 // ----------------------------------------------------------------------------------
88 /*! @fn void Button::Execute( );
89 * @brief This function executes the Functor (Call_Back Function).
90 * This is the event of the button that it was defined to be called remotely using
91 * call_back functions. In this project it was implemented using Functors.
96 // ----------------------------------------------------------------------------------
98 ButtonPair* m_ButtonPair; //! <ButtonPair* ButtonPair pointer.