/*************************************************************** * Name: ButtonGroup.h * Purpose: Defines a group of buttons in wxWidgets * 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 BUTTONGROUP_H #define BUTTONGROUP_H //Library Definition #include #include #include #include "button.h" namespace creaButtonContainer { namespace view { //Typedef definition typedef creaButtonContainer::view::Button Button; typedef std::map< long, Button* > ButtonContainer; typedef std::list< long > IdButtonContainer; /** Class Description: This class defines a ButtonGroup. **/ class ButtonGroup { public: ButtonGroup( wxStaticText* groupName, ButtonContainer buttons ); virtual ~ButtonGroup( ); Button* GetButton( long id ); ButtonContainer GetButtonContainer( ); IdButtonContainer GetButtonIdContainer( ); wxStaticText* GetGroupName( ); private: wxStaticText* m_GroupName; ButtonContainer m_Buttons; }; }//ecapseman }//ecapseman #endif // BUTTONGROUP_H