2 * @file PanelButtonContainer
3 * @brief This contains the ButtonContainerSettings class.
4 * @author Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
8 #ifndef PANELBUTTONCONTAINER_H_
9 #define PANELBUTTONCONTAINER_H_
12 #include <wx/aui/aui.h>
15 #include "containerSettings.h"
16 #include "buttonContainerPanel.h"
17 #include "buttonContainerSettings.h"
20 /*! @namespace <creaPanelButtonContainer>
21 * @brief Contains the creaPanelButtonContainer library included in creaMaracasVisu.
23 namespace creaPanelButtonContainer
25 /*! @class PanelButtonContainer panelButtonContainer.h "panelButtonContainer.h"
26 * @brief This class contains the PanelButtonContainer. It derives from wxPanel.
27 * @see <a href="http://docs.wxwidgets.org/stable/wx_wxpanel.html">wxPanel</a>
29 class PanelButtonContainer : public wxPanel
33 // ----------------------------------------------------------------------------------
34 /*! typedef creaPanelButtonContainer::ButtonContainerSettings ButtonContainerSettings;
35 * @brief Defines the ButtonContainerSettings type.
37 typedef creaPanelButtonContainer::ButtonContainerSettings
38 ButtonContainerSettings;
39 /*! typedef creaButtonContainer::view::ButtonContainerPanel ButtonContainerPanel;
40 * @brief Defines the ButtonContainerPanel type.
42 typedef creaButtonContainer::view::ButtonContainerPanel
44 // ----------------------------------------------------------------------------------
45 //end of typedef definition.
47 // ----------------------------------------------------------------------------------
48 /*! @fn PanelButtonContainer( wxWindow* parent, ButtonContainerSettings* bcSettings );
49 * @brief This is the parameterized constructor.
50 * @param parent The wxWindow pointer to parent
51 * @param bcSettings //The buttonContainerSettings
53 PanelButtonContainer( wxWindow* parent,
54 ButtonContainerSettings* bcSettings );
55 // ----------------------------------------------------------------------------------
56 /*! @fn virtual PanelButtonContainer( );
57 * @brief This is the destructor.
60 ~PanelButtonContainer( );
61 // ----------------------------------------------------------------------------------
62 /*! @fn void UpdatePanel( const std::string &buttonName );
63 * @brief This method Updates the m_ButtonPanel to a panel
64 * of the clicked button in creaButtonContainer.
68 UpdatePanel( const std::string &buttonName );
69 // ----------------------------------------------------------------------------------
70 /*! @fn void GenericButtonEvent( const std::string &buttonName );
71 * @brief This method is the function that calls the panels contained in the buttons
72 * (in creaButtonContainer is the function contained in the functors to be called back.
73 * @param buttonName The name of the button
76 GenericButtonEvent( const std::string &buttonName );
77 // ----------------------------------------------------------------------------------
80 ButtonContainerSettings* m_ButtonContainerSettings; //!<This is the buttonContainer settings.
82 ButtonContainerPanel* m_ButtonContainerPanel; //!<This is the panel with de buttons (creaButtonContainer)
83 wxAuiManager* m_AuiManager; //!<The AUI Manager for the panels.
84 wxPanel* m_ButtonPanel; //!<This is the panel used to contain the panels of the buttons. (it changes with the buttonAction)
85 DECLARE_EVENT_TABLE() //!<Event Table declaration.
89 #endif // PANELBUTTONCONTAINER_H_