3 * @brief This contains the GroupManager class
4 * @author Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
12 #include <wx/button.h>
13 #include <wx/stattext.h>
17 #include "buttonManager.h"
18 #include "buttonGroup.h"
21 /*! @namespace <creaButtonContainer>
22 * @brief Contains the creaButtonContainer library included in creaMaracasVisu.
24 namespace creaButtonContainer
26 /*! @namespace <creaButtonContainer::view>
27 * @brief Contains the implementation of the view in creaButtonContainer library.
28 * @see <a href="http://en.wikipedia.org/wiki/Model-view-controller">MVC Software Architecture</a>
32 class GroupManager : public wxFlexGridSizer
36 /*! @typedef creaButtonContainer::view::ButtonGroup ButtonGroup;
37 * @brief Defines the ButtonGroup type.
39 typedef creaButtonContainer::view::ButtonGroup ButtonGroup;
40 // ----------------------------------------------------------------------------------
41 /*! @typedef wxButton ExpansionButton;
42 * @brief Defines the ExpansionButton type.
44 typedef wxButton ExpansionButton;
45 // ----------------------------------------------------------------------------------
46 //end of typedef definition.
48 // ----------------------------------------------------------------------------------
49 /*! @fn GroupManager( wxWindow* parent, ButtonGroup* buttonGroup );
50 * @brief This is the parameterized constructor.
51 * @param parent The wxWindow* parent
52 * @param buttonGroup The pointer to the ButtonGroup.
54 GroupManager( wxWindow* parent, ButtonGroup* buttonGroup );
55 // ----------------------------------------------------------------------------------
56 /*! @fn ~GroupManager( );
57 * @brief This is the destructor.
61 // ----------------------------------------------------------------------------------
62 /*! @fn GetButtonID( );
63 * @brief This method returns the Button ID.
68 // ----------------------------------------------------------------------------------
70 * @brief This method returns the expansion button.
75 // ----------------------------------------------------------------------------------
76 /*! @fn GetButtonManager( );
77 * @brief This method returns the manager of the buttons.
82 // ----------------------------------------------------------------------------------
83 /*! @fn SetButtonID( long id );
84 * @brief This method sets the ID of the expansion button.
88 SetButtonID( long id );
89 // ----------------------------------------------------------------------------------
90 /*! @fn SetButton( ExpansionButton* button );
91 * @brief This method sets the expansion button.
95 SetButton( ExpansionButton* button );
96 // ----------------------------------------------------------------------------------
97 /*! @fn SetButtonManager( ButtonManager* manager );
98 * @brief This method Sets the ButtonManager
99 * @param manager A pointer with the manager.
102 SetButtonManager( ButtonManager* manager );
103 // ----------------------------------------------------------------------------------
104 /*! @fn HideSubPanel( bool hide );
105 * @brief This method hides the subPanel (Hides the buttons).
106 * @param hide True if you need to hide the buttons.
109 HideSubPanel( bool hide );
112 long m_IDExpButton; //!<ID of "+""-" expansion button.
113 ExpansionButton* m_ExpansionButton; //!<The expansion button.
114 ButtonManager* m_ButtonManager; //!<The button manager.
119 #endif // GROUPMANAGER_H