1 /*# ---------------------------------------------------------------------
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
7 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
9 # This software is governed by the CeCILL-B license under French law and
10 # abiding by the rules of distribution of free software. You can use,
11 # modify and/ or redistribute the software under the terms of the CeCILL-B
12 # license as circulated by CEA, CNRS and INRIA at the following URL
13 # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
14 # or in the file LICENSE.txt.
16 # As a counterpart to the access to the source code and rights to copy,
17 # modify and redistribute granted by the license, users are provided only
18 # with a limited warranty and the software's author, the holder of the
19 # economic rights, and the successive licensors have only limited
22 # The fact that you are presently reading this means that you have had
23 # knowledge of the CeCILL-B license and that you accept its terms.
24 # ------------------------------------------------------------------------ */
27 * @file buttonManager.h
28 * @brief This contains the ButtonManager class.
29 * @author Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
33 #ifndef CARTOBUTTONCONTAINER_H
34 #define CARTOBUTTONCONTAINER_H
37 #include <wx/bmpbuttn.h>
38 #include <wx/stattext.h>
39 #include <wx/string.h>
45 #include "buttonGroup.h"
47 #include "listGroup.h"
49 /*! @namespace <creaButtonContainer>
50 * @brief Contains the creaButtonContainer library included in creaMaracasVisu.
52 namespace creaButtonContainer
54 /*! @namespace <creaButtonContainer::view>
55 * @brief Contains the implementation of the view in creaButtonContainer library.
56 * @see <a href="http://en.wikipedia.org/wiki/Model-view-controller">MVC Software Architecture</a>
60 /*! @class ButtonManager buttonManager.h "buttonManager.h"
61 * @brief This class contains the ButtonManager view.
62 * @details This class describes a wxFlexGridSizer with the button manager.
63 * @see <a href="http://docs.wxwidgets.org/stable/wx_wxflexGridSizer.html">wxFlexGridSizer</a>
65 class ButtonManager : public wxFlexGridSizer
69 // ----------------------------------------------------------------------------------
70 /*! @typedef creaButtonContainer::view::Button Button;
71 * @brief Defines the Button type.
73 typedef creaButtonContainer::view::Button Button;
74 // ----------------------------------------------------------------------------------
75 /*! @typedef creaButtonContainer::view::ButtonGroup ButtonGroup;
76 * @brief Defines the ButtonGroup type.
78 typedef creaButtonContainer::view::ButtonGroup ButtonGroup;
79 // ----------------------------------------------------------------------------------
80 /*! @typedef std::map< long, Button* > ButtonContainer;
81 * @brief Defines the ButtonContainer type.
83 typedef std::map< long, Button* > ButtonContainer;
84 // ----------------------------------------------------------------------------------
86 //typedef creaButtonContainer::view::ListGroup ListGroup;
87 //typedef std::map<long, ListWx* > ListContainer;
89 //end of typedef definition.
91 // ----------------------------------------------------------------------------------
92 /*! @fn ButtonManager( );
93 * @brief This is the default constructor.
94 * @exception std::bad_alloc
97 // ----------------------------------------------------------------------------------
98 /*! @fn ButtonManager( ButtonGroup* buttonGroup );
99 * @brief This is the parameterized constructor
100 * @param buttonGroup The group of buttons.
102 ButtonManager( ButtonGroup* buttonGroup );
103 // ----------------------------------------------------------------------------------
105 //ButtonManager (ListGroup* buttonGroup);
106 // ----------------------------------------------------------------------------------
108 /*! @fn ~ButtonManager( );
109 * @brief This is the destructor.
113 // ----------------------------------------------------------------------------------
114 /*! @fn SetGroupName( wxStaticText* groupName );
115 * @details Sets the groupName.
119 SetGroupName( wxStaticText* groupName );
120 // ----------------------------------------------------------------------------------
121 /*! @fn ShowButtonManager( );
122 * @brief This method shows the ButtonManager
126 ShowButtonManager( );
127 // ----------------------------------------------------------------------------------
128 /*! @fn HideButtonManager( );
129 * @brief This method hides the ButtonManager.
130 * @exception std::bad_alloc
133 HideButtonManager( );
134 // ----------------------------------------------------------------------------------
136 // ----------------------------------------------------------------------------------
137 /*! @fn SetButtonManager( ButtonContainer buttonContainer );
138 * @brief This method set the buttons and it is private.
139 * @param buttonContainer
142 SetButtonManager( ButtonContainer buttonContainer );
143 // ----------------------------------------------------------------------------------
146 SetListManager( ListContainer buttonContainer );*/
147 // ----------------------------------------------------------------------------------
151 wxStaticText* m_GroupName; //!<The name of the group.
152 wxGridSizer* m_GridSizer; //!<The sizer that contains the buttons.
157 #endif // CARTOBUTTONCONTAINER_H