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>
18 #include "buttonManager.h"
19 #include "buttonGroup.h"
22 /*! @namespace <creaButtonContainer>
23 * @brief Contains the creaButtonContainer library included in creaMaracasVisu.
25 namespace creaButtonContainer
27 /*! @namespace <creaButtonContainer::view>
28 * @brief Contains the implementation of the view in creaButtonContainer library.
29 * @see <a href="http://en.wikipedia.org/wiki/Model-view-controller">MVC Software Architecture</a>
33 /*! @class GroupManager groupManager.h "groupManager.h"
34 * @brief This class contains the GroupManager.
35 * @details This class describes a wxFlexGridSizer with the group manager.
36 * @see <a href="http://docs.wxwidgets.org/stable/wx_wxflexGridSizer.html">wxFlexGridSizer</a>
38 class GroupManager : public wxFlexGridSizer
42 /*! @typedef creaButtonContainer::view::ButtonGroup ButtonGroup;
43 * @brief Defines the ButtonGroup type.
45 typedef creaButtonContainer::view::ButtonGroup ButtonGroup;
46 // ----------------------------------------------------------------------------------
47 /*! @typedef wxButton ExpansionButton;
48 * @brief Defines the ExpansionButton type.
50 typedef wxButton ExpansionButton;
51 // ----------------------------------------------------------------------------------
52 //end of typedef definition.
54 // ----------------------------------------------------------------------------------
55 /*! @fn GroupManager( wxWindow* parent, ButtonGroup* buttonGroup );
56 * @brief This is the parameterized constructor.
57 * @param parent The wxWindow* parent
58 * @param buttonGroup The pointer to the ButtonGroup.
60 GroupManager( wxWindow* parent, ButtonGroup* buttonGroup );
61 // ----------------------------------------------------------------------------------
62 /*! @fn ~GroupManager( );
63 * @brief This is the destructor.
67 // ----------------------------------------------------------------------------------
68 /*! @fn GetButtonID( );
69 * @brief This method returns the Button ID.
74 // ----------------------------------------------------------------------------------
76 * @brief This method returns the expansion button.
81 // ----------------------------------------------------------------------------------
82 /*! @fn GetButtonManager( );
83 * @brief This method returns the manager of the buttons.
88 // ----------------------------------------------------------------------------------
89 /*! @fn SetButtonID( long id );
90 * @brief This method sets the ID of the expansion button.
94 SetButtonID( long id );
95 // ----------------------------------------------------------------------------------
96 /*! @fn SetButton( ExpansionButton* button );
97 * @brief This method sets the expansion button.
101 SetButton( ExpansionButton* button );
102 // ----------------------------------------------------------------------------------
103 /*! @fn SetButtonManager( ButtonManager* manager );
104 * @brief This method Sets the ButtonManager
105 * @param manager A pointer with the manager.
108 SetButtonManager( ButtonManager* manager );
109 // ----------------------------------------------------------------------------------
110 /*! @fn HideSubPanel( bool hide );
111 * @brief This method hides the subPanel (Hides the buttons).
112 * @param hide True if you need to hide the buttons.
115 HideSubPanel( bool hide );
118 long m_IDExpButton; //!<ID of "+""-" expansion button.
119 ExpansionButton* m_ExpansionButton; //!<The expansion button.
120 ButtonManager* m_ButtonManager; //!<The button manager.
125 #endif // GROUPMANAGER_H