/*! * @file buttonContainerController.h * @brief This contains the ButtonContainerController class * @author Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr) * @date 2011-05-19 */ #ifndef BUTTONCONTAINERPANEL_H #define BUTTONCONTAINERPANEL_H #include #include #include #include #include #include "buttonGroup.h" #include "groupManager.h" #include "buttonGroupFactory.h" #include "containerSettings.h" #include "buttonContainerController.h" /*! @namespace * @brief Contains the creaButtonContainer library included in creaMaracasVisu. */ namespace creaButtonContainer { /*! @namespace * @brief Contains the implementation of the controller in creaButtonContainer library. * @see MVC Software Architecture */ namespace controller { /*! @class ButtonContainerController buttonContainerController.h "buttonContainerController.h" * @brief This class contains the ButtonContainerPanel controller. * @details This class describes the button events, it derives from wxEvtHandler and it is the * controller in the MVC. * @see wxEvtHandler */ class ButtonContainerController; } /*! @namespace * @brief Contains the implementation of the view in creaButtonContainer library. * @see MVC Software Architecture */ namespace view { class ButtonContainerPanel : public wxScrolledWindow { public: //typedef definition /*! @typedef creaButtonContainer::model::TFunctor TFunctor; * @brief Defines the TFunctor type. */ typedef creaButtonContainer::view::ButtonGroup ButtonGroup; /*! @typedef creaButtonContainer::model::TFunctor TFunctor; * @brief Defines the TFunctor type. */ typedef creaButtonContainer::view::GroupManager GroupManager; /*! @typedef creaButtonContainer::model::TFunctor TFunctor; * @brief Defines the TFunctor type. */ typedef std::list< ButtonGroup* > ButtonGroupList; /*! @typedef creaButtonContainer::model::TFunctor TFunctor; * @brief Defines the TFunctor type. */ typedef std::map< long, GroupManager* > GroupManagerList; /*! @typedef creaButtonContainer::model::TFunctor TFunctor; * @brief Defines the TFunctor type. */ typedef wxFlexGridSizer Sizer; /*! @typedef creaButtonContainer::model::TFunctor TFunctor; * @brief Defines the TFunctor type. */ typedef std::list< long > KeyList; /*! @typedef creaButtonContainer::model::TFunctor TFunctor; * @brief Defines the TFunctor type. */ typedef creaButtonContainer::model::ContainerSettings ButtonGroupSettings; /*! @typedef creaButtonContainer::model::TFunctor TFunctor; * @brief Defines the TFunctor type. */ typedef creaButtonContainer::model::ButtonGroupFactory ButtonGroupFactory; /*! @typedef creaButtonContainer::model::TFunctor TFunctor; * @brief Defines the TFunctor type. */ typedef creaButtonContainer::controller::ButtonContainerController BCController; //end of typedef definition public: /*! @fn ButtonContainerPanel( wxWindow* parent, ButtonGroupSettings* settings ); * * @param parent * @param settings */ ButtonContainerPanel( wxWindow* parent, ButtonGroupSettings* settings ); // ---------------------------------------------------------------------------------- /*! @fn ~ButtonContainerPanel( ); * */ virtual ~ButtonContainerPanel( ); // ---------------------------------------------------------------------------------- /*! @fn SetGroupContainer( ButtonGroupList groupContainer ); * * @param groupContainer */ void SetGroupContainer( ButtonGroupList groupContainer ); // ---------------------------------------------------------------------------------- /*! @fn PanelInit( ); * */ void PanelInit( ); // ---------------------------------------------------------------------------------- /*! @fn FitSizer( ); * */ void FitSizer( ); // ---------------------------------------------------------------------------------- public: friend class creaButtonContainer::controller::ButtonContainerController; private: GroupManagerList m_GroupManagerList; ButtonGroupList m_ButtonGroupList; BCController* m_ButtonCController; Sizer* m_Sizer; }; }//ecapseman }//ecapseman #endif // BUTTONCONTAINERPANEL_H