/*************************************************************** * Name: ButtonManager.h * Purpose: Defines the button group container * 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: **************************************************************/ #ifndef CARTOBUTTONCONTAINER_H #define CARTOBUTTONCONTAINER_H #include #include #include #include #include #include "button.h" #include "buttonGroup.h" namespace creaButtonContainer { namespace view { /** Class Description: **/ class ButtonManager : public wxFlexGridSizer { public: typedef creaButtonContainer::view::Button Button; typedef creaButtonContainer::view::ButtonGroup ButtonGroup; typedef std::map< long, Button* > ButtonContainer; public: ButtonManager( ); ButtonManager( ButtonGroup* buttonGroup ); virtual ~ButtonManager( ); void SetGroupName( wxStaticText* groupName ); void ShowButtonManager( ); void HideButtonManager( ); private: void SetButtonManager( ButtonContainer buttonContainer ); private: wxStaticText* m_GroupName; wxGridSizer* m_GridSizer; }; }//ecapseman }//ecapseman #endif // CARTOBUTTONCONTAINER_H