]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/view/buttonManager.h
creaButtonContainer: doxygen 90%
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / creaButtonContainer / view / buttonManager.h
index 2a61580d5a2e025006d6cb3b570341b3c2ab7cb2..8fe99e540419694ded3c36e892b1cd24f60adb82 100644 (file)
@@ -27,57 +27,66 @@ namespace creaButtonContainer
         */
        namespace view
        {
+               /*! @class ButtonManager buttonManager.h "buttonManager.h"
+                *      @brief This class contains the ButtonManager view.
+                *  @details This class describes a wxFlexGridSizer with the button manager, it derives from wxFlexGridSizer and it is the
+                *  controller in the MVC.
+                *  @see <a href="http://docs.wxwidgets.org/stable/wx_wxflexGridSizer.html">wxFlexGridSizer</a>
+                */
                class ButtonManager : public wxFlexGridSizer
                {
                        public:
                                //typedef definition.
-                               /*!     @typedef creaButtonContainer::model::TFunctor TFunctor;
-                                *      @brief Defines the TFunctor type.
+                               /*!     @typedef creaButtonContainer::view::Button Button;
+                                *      @brief Defines the Button type.
                                 */
                                typedef creaButtonContainer::view::Button Button;
-                               /*!     @typedef creaButtonContainer::model::TFunctor TFunctor;
-                                *      @brief Defines the TFunctor type.
+                               // ----------------------------------------------------------------------------------
+                               /*!     @typedef creaButtonContainer::view::ButtonGroup ButtonGroup;
+                                *      @brief Defines the ButtonGroup type.
                                 */
                                typedef creaButtonContainer::view::ButtonGroup ButtonGroup;
-                               /*!     @typedef creaButtonContainer::model::TFunctor TFunctor;
-                                *      @brief Defines the TFunctor type.
+                               // ----------------------------------------------------------------------------------
+                               /*!     @typedef std::map< long, Button* > ButtonContainer;
+                                *      @brief Defines the ButtonContainer type.
                                 */
                                typedef std::map< long, Button* > ButtonContainer;
+                               // ----------------------------------------------------------------------------------
                                //end of typedef definition.
                        public:
                                // ----------------------------------------------------------------------------------
                                /*! @fn ButtonManager( );
-                                *
+                                * @brief This is the default construuctor.
                                 */
                                ButtonManager( );
                                // ----------------------------------------------------------------------------------
                                /*! @fn ButtonManager( ButtonGroup* buttonGroup );
-                                *
-                                * @param buttonGroup
+                                * @brief This is the parameterized constructor
+                                * @param buttonGroup The group of buttons.
                                 */
                                ButtonManager( ButtonGroup* buttonGroup );
                                // ----------------------------------------------------------------------------------
                                /*! @fn ~ButtonManager( );
-                                *
+                                * @brief This is the destructor.
                                 */
                                virtual
                                ~ButtonManager( );
                                // ----------------------------------------------------------------------------------
                                /*! @fn SetGroupName( wxStaticText* groupName );
-                                *
+                                * @details Sets the groupName.
                                 * @param groupName
                                 */
                                void
                                SetGroupName( wxStaticText* groupName );
                                // ----------------------------------------------------------------------------------
                                /*! @fn ShowButtonManager( );
-                                *
+                                * @brief This function shows the ButtonManager
                                 */
                                void
                                ShowButtonManager( );
                                // ----------------------------------------------------------------------------------
                                /*! @fn HideButtonManager( );
-                                *
+                                * @brief This function hides the ButtonManager.
                                 */
                                void
                                HideButtonManager( );
@@ -85,15 +94,15 @@ namespace creaButtonContainer
                        private:
                                // ----------------------------------------------------------------------------------
                                /*! @fn SetButtonManager( ButtonContainer buttonContainer );
-                                *
+                                * @brief This function set the buttons and it is private.
                                 * @param buttonContainer
                                 */
                                void
                                SetButtonManager( ButtonContainer buttonContainer );
                                // ----------------------------------------------------------------------------------
                        private:
-                               wxStaticText* m_GroupName;
-                               wxGridSizer* m_GridSizer;
+                               wxStaticText* m_GroupName; //!<The name of the group.
+                               wxGridSizer* m_GridSizer; //!<The sizer that contains the buttons.
                };
        }//ecapseman
 }//ecapseman