1 /***************************************************************
2 * Name: @file buttonContainerController.h
3 * Purpose: @brief This fhile contains the ButtonContainerController Class
4 * Author: @author Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
6 * Copyright: Diego CACERES (http://www.creatis.insa-lyon.fr/~caceres/)
8 **************************************************************/
10 #ifndef BUTTONCONTAINERCONTROLLER_H_
11 #define BUTTONCONTAINERCONTROLLER_H_
14 #include "buttonContainerPanel.h"
16 ///@namespace<creaButtonContainer>
17 namespace creaButtonContainer
22 //Predefinition of ButtonContainerPanel FriendClass!!
23 ///@class ButtonContainerPanel buttonContainerPanel.h "buttonContainerPanel.h"
24 class ButtonContainerPanel;
26 ///@namespace<controller>
29 /*!@class ButtonContainerController buttonContainerController.h "buttonContainerController.h"
30 * @brief This class contains the ButtonContainerPanel controller
31 * This class describes the panel and button events.
33 class ButtonContainerController : public wxEvtHandler
36 ///@typedef creaButtonContainer::view::ButtonGroup ButtonGroup
37 ///@typedef typedef creaButtonContainer::view::GroupManager GroupManager;
38 ///@typedef std::list< ButtonGroup* > ButtonGroupList;
39 ///@typedef std::map< long, GroupManager* > GroupManagerList;
40 ///@typedef wxFlexGridSizer Sizer;
41 ///@typedef std::list< long > KeyList;
42 ///@typedef creaButtonContainer::model::ContainerSettings ButtonGroupSettings;
43 ///@typedef creaButtonContainer::view::ButtonContainerPanel BCPanel;
45 typedef creaButtonContainer::view::ButtonGroup ButtonGroup;
46 typedef creaButtonContainer::view::GroupManager GroupManager;
47 typedef std::list< ButtonGroup* > ButtonGroupList;
48 typedef std::map< long, GroupManager* > GroupManagerList;
49 typedef wxFlexGridSizer Sizer;
50 typedef std::list< long > KeyList;
51 typedef creaButtonContainer::model::ContainerSettings
53 typedef creaButtonContainer::view::ButtonContainerPanel BCPanel;
54 //end of typedef definition
56 ///!The Parameterized Constructor
57 ButtonContainerController( BCPanel* );
59 ~ButtonContainerController( );
63 ButtonExpEvent( wxCommandEvent& event );
65 ButtonEvent( wxCommandEvent& event );
72 #endif //BUTTONCONTAINERCONTROLLER_H_