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 groupManager.h "groupManager.h"
33 * @brief This class contains the GroupManager.
34 * @details This class describes a wxFlexGridSizer with the group manager.
35 * @see <a href="http://docs.wxwidgets.org/stable/wx_wxflexGridSizer.html">wxFlexGridSizer</a>
37 class GroupManager : public wxFlexGridSizer
41 /*! @typedef creaButtonContainer::view::ButtonGroup ButtonGroup;
42 * @brief Defines the ButtonGroup type.
44 typedef creaButtonContainer::view::ButtonGroup ButtonGroup;
45 // ----------------------------------------------------------------------------------
46 /*! @typedef wxButton ExpansionButton;
47 * @brief Defines the ExpansionButton type.
49 typedef wxButton ExpansionButton;
50 // ----------------------------------------------------------------------------------
51 //end of typedef definition.
53 // ----------------------------------------------------------------------------------
54 /*! @fn GroupManager( wxWindow* parent, ButtonGroup* buttonGroup );
55 * @brief This is the parameterized constructor.
56 * @param parent The wxWindow* parent
57 * @param buttonGroup The pointer to the ButtonGroup.
59 GroupManager( wxWindow* parent, ButtonGroup* buttonGroup );
60 // ----------------------------------------------------------------------------------
61 /*! @fn ~GroupManager( );
62 * @brief This is the destructor.
66 // ----------------------------------------------------------------------------------
67 /*! @fn GetButtonID( );
68 * @brief This method returns the Button ID.
73 // ----------------------------------------------------------------------------------
75 * @brief This method returns the expansion button.
80 // ----------------------------------------------------------------------------------
81 /*! @fn GetButtonManager( );
82 * @brief This method returns the manager of the buttons.
87 // ----------------------------------------------------------------------------------
88 /*! @fn SetButtonID( long id );
89 * @brief This method sets the ID of the expansion button.
93 SetButtonID( long id );
94 // ----------------------------------------------------------------------------------
95 /*! @fn SetButton( ExpansionButton* button );
96 * @brief This method sets the expansion button.
100 SetButton( ExpansionButton* button );
101 // ----------------------------------------------------------------------------------
102 /*! @fn SetButtonManager( ButtonManager* manager );
103 * @brief This method Sets the ButtonManager
104 * @param manager A pointer with the manager.
107 SetButtonManager( ButtonManager* manager );
108 // ----------------------------------------------------------------------------------
109 /*! @fn HideSubPanel( bool hide );
110 * @brief This method hides the subPanel (Hides the buttons).
111 * @param hide True if you need to hide the buttons.
114 HideSubPanel( bool hide );
117 long m_IDExpButton; //!<ID of "+""-" expansion button.
118 ExpansionButton* m_ExpansionButton; //!<The expansion button.
119 ButtonManager* m_ButtonManager; //!<The button manager.
124 #endif // GROUPMANAGER_H