X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FcreaPanelButtonContainer%2FcreaPanelButtonContainer.h;h=dffcdeb675ad933285a9f32987eef62c0c8441b7;hb=f050938d3947f6b785289da6d58f8fec2da57421;hp=d49ac59233d4a230d29cdd6da8411993643a0f28;hpb=4b092ee0b1bcda4d298e5ffc3b58b599e273db20;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/creaPanelButtonContainer/creaPanelButtonContainer.h b/lib/maracasVisuLib/src/interface/wxWindows/widgets/creaPanelButtonContainer/creaPanelButtonContainer.h index d49ac59..dffcdeb 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/creaPanelButtonContainer/creaPanelButtonContainer.h +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/creaPanelButtonContainer/creaPanelButtonContainer.h @@ -1,11 +1,9 @@ -/*************************************************************** - * Name: pCartoGUIManager.h - * Purpose: Defines Application Frame - * Author: Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr) - * Modified: 2011-05-09 - * Copyright: Diego CACERES (http://www.creatis.insa-lyon.fr/~caceres/) - * License: - **************************************************************/ +/*! + * @file PanelButtonContainer + * @brief This contains the ButtonContainerSettings class. + * @author Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr) + * @date 2011-06-02 + */ #ifndef PANELBUTTONCONTAINER_H_ #define PANELBUTTONCONTAINER_H_ @@ -19,30 +17,72 @@ #include "buttonContainerSettings.h" #include "functor.h" +/*! @namespace + * @brief Contains the creaPanelButtonContainer library included in creaMaracasVisu. + */ namespace creaPanelButtonContainer { - - typedef creaPanelButtonContainer::ButtonContainerSettings - ButtonContainerSettings; - typedef creaButtonContainer::view::ButtonContainerPanel ButtonContainerPanel; + /*! @class PanelButtonContainer panelButtonContainer.h "panelButtonContainer.h" + * @brief This class contains the PanelButtonContainer. It derives from wxPanel. + * @see wxPanel + */ class PanelButtonContainer : public wxPanel { public: + //typedef definition. + // ---------------------------------------------------------------------------------- + /*! typedef creaPanelButtonContainer::ButtonContainerSettings ButtonContainerSettings; + * @brief Defines the ButtonContainerSettings type. + */ + typedef creaPanelButtonContainer::ButtonContainerSettings + ButtonContainerSettings; + /*! typedef creaButtonContainer::view::ButtonContainerPanel ButtonContainerPanel; + * @brief Defines the ButtonContainerPanel type. + */ + typedef creaButtonContainer::view::ButtonContainerPanel + ButtonContainerPanel; + // ---------------------------------------------------------------------------------- + //end of typedef definition. + public: + // ---------------------------------------------------------------------------------- + /*! @fn PanelButtonContainer( wxWindow* parent, ButtonContainerSettings* bcSettings ); + * @brief This is the parameterized constructor. + * @param parent The wxWindow pointer to parent + * @param bcSettings //The buttonContainerSettings + */ PanelButtonContainer( wxWindow* parent, ButtonContainerSettings* bcSettings ); + // ---------------------------------------------------------------------------------- + /*! @fn virtual PanelButtonContainer( ); + * @brief This is the destructor. + */ virtual ~PanelButtonContainer( ); + // ---------------------------------------------------------------------------------- + /*! @fn void UpdatePanel( const std::string &buttonName ); + * @brief This method Updates the m_ButtonPanel to a panel + * of the clicked button in creaButtonContainer. + * @param buttonName + */ void UpdatePanel( const std::string &buttonName ); + // ---------------------------------------------------------------------------------- + /*! @fn void GenericButtonEvent( const std::string &buttonName ); + * @brief This method is the function that calls the panels contained in the buttons + * (in creaButtonContainer is the function contained in the functors to be called back. + * @param buttonName The name of the button + */ void GenericButtonEvent( const std::string &buttonName ); + // ---------------------------------------------------------------------------------- private: //Settings - ButtonContainerSettings* m_ButtonContainerSettings; + ButtonContainerSettings* m_ButtonContainerSettings; //!