]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/model/system.h
13367bdbcde777e0a4da4d1d3d88ae01852d6f65
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / creaButtonContainer / model / system.h
1 /************************************************************************************//*!
2  * Name:      @file system.h
3  * Purpose:   @brief contains a system typedefs used to reuse code.
4  * Author:    @author Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
5  * Modified:  2011-05-18
6  * Copyright:
7  * License:
8  ***************************************************************************************/
9
10 #ifndef SYSTEM_H_
11 #define SYSTEM_H_
12
13 //! @include <list>
14 #include <list>
15 //! @include <map>
16 #include <map>
17 //! @include <iostream>
18 #include <iostream>
19 //! @include "functor.h"
20 #include "functor.h"
21
22 ///@namespace <creaButtonContainer>
23 namespace creaButtonContainer
24 {
25         /*!     @typedef model::TFunctor* FunctionEventType;
26          *      @brief Defines the FunctionEventType type.
27          *
28          */
29         typedef model::TFunctor* FunctionEventType;
30         // ----------------------------------------------------------------------------------
31         /*!     @typedef creaButtonContainer::view::Button Button;
32          *      @brief Defines the ActionButton type.
33          *      First is the button description, Second FunctionEventType
34          */
35         typedef std::pair< std::string, FunctionEventType > ButtonAction;
36         // ----------------------------------------------------------------------------------
37         /*!     @typedef std::pair< std::string, std::string > ButtonInfo;
38          *      @brief Defines the ButtonInfo type.
39          *      First is the ButtonName and Second is the IconPath
40          */
41         typedef std::pair< std::string, std::string > ButtonInfo;
42         // ----------------------------------------------------------------------------------
43         /*!     @typedef std::pair< ButtonInfo*, ActionButton* > ButtonPair;
44          *      @brief Defines the ButtonPair type.
45          */
46         typedef std::pair< ButtonInfo*, ButtonAction* > ButtonPair;
47         // ----------------------------------------------------------------------------------
48         /*!     @typedef std::list< std::string > KeyMapList;
49          *      @brief Defines the KeyMapList type.
50          */
51         typedef std::list< std::string > KeyMapList;
52         // ----------------------------------------------------------------------------------
53         /*!     @typedef std::list< ButtonPair* > ButtonList;
54          *      @brief Defines the ButtonList type.
55          */
56         typedef std::list< ButtonPair* > ButtonList;
57         // ----------------------------------------------------------------------------------
58         /*!     @typedef std::map< std::string, ButtonList > ButtonGroupMap;
59          *      @brief Defines the ButtonGroupMap type.
60          */
61         typedef std::map< std::string, ButtonList > ButtonGroupMap;
62 // ----------------------------------------------------------------------------------
63 }
64
65 #endif /* SYSTEM_H_ */