]> Creatis software - creaMaracasVisu.git/blob - bbtk/src/bbcreaMaracasVisuPanelButtonContainerSettings.h
creaButtonContainer: new structure to make easy the button settings
[creaMaracasVisu.git] / bbtk / src / bbcreaMaracasVisuPanelButtonContainerSettings.h
1 //===== 
2 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
3 //===== 
4 #ifdef _USE_WXWIDGETS_
5 #ifndef __bbcreaMaracasVisuPanelButtonContainerSettings_h_INCLUDED__
6 #define __bbcreaMaracasVisuPanelButtonContainerSettings_h_INCLUDED__
7 #include "bbcreaMaracasVisu_EXPORT.h"
8 #include "bbtkWxBlackBox.h"
9
10 #include <string>
11 #include <vector>
12
13 #include <structBCPSettings.h>
14
15 namespace bbcreaMaracasVisu
16 {
17         typedef creaPanelButtonContainer::BCPSettingsStruct BCPSettingsStruct;
18         typedef std::vector< BCPSettingsStruct* > BCStructVectorType;
19         class bbcreaMaracasVisu_EXPORT PanelButtonContainerSettings :
20           public bbtk::WxBlackBox
21         {
22                 BBTK_BLACK_BOX_INTERFACE(PanelButtonContainerSettings,bbtk::WxBlackBox);
23                         //=====
24                         // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
25                         //=====
26                   BBTK_DECLARE_INPUT(Title,std::string);
27                   BBTK_DECLARE_INPUT(In,BCStructVectorType);
28                         BBTK_DECLARE_INPUT(GroupName,std::string);
29                         BBTK_DECLARE_INPUT(ButtonName,std::string);
30                         BBTK_DECLARE_INPUT(Iconpath,std::string);
31                         BBTK_DECLARE_INPUT(ButtonDescription,std::string);
32                         BBTK_DECLARE_INPUT(Widget,wxWindow*);
33                         BBTK_DECLARE_OUTPUT(Out,BCStructVectorType);
34                         BBTK_PROCESS(Process);
35
36                         void
37                         Process( );BBTK_CREATE_WIDGET(CreateWidget);
38                         void
39                         CreateWidget( wxWindow* );
40
41                 private:
42                         BCPSettingsStruct* m_BSettings;
43                         BCStructVectorType m_BCSettingsVector;
44                         wxPanel* myPanel;
45                         //=====
46                         // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
47                         //=====
48         };
49
50         BBTK_BEGIN_DESCRIBE_BLACK_BOX(PanelButtonContainerSettings,bbtk::WxBlackBox);
51         BBTK_NAME("PanelButtonContainerSettings");
52         BBTK_AUTHOR("Info-Dev");
53         BBTK_DESCRIPTION("_description_");
54         BBTK_CATEGORY("__CategoryBlackBox__");
55         BBTK_INPUT(PanelButtonContainerSettings,Title,"Title prepended to the text",std::string,"");
56         BBTK_INPUT(PanelButtonContainerSettings,In,"ButtonContainerSettings List",BCStructVectorType,"");
57         BBTK_INPUT(PanelButtonContainerSettings,GroupName,"Group Name",std::string,"");
58         BBTK_INPUT(PanelButtonContainerSettings,ButtonName,"Button Name",std::string,"");
59         BBTK_INPUT(PanelButtonContainerSettings,Iconpath,"The path of the Icon",std::string,"");
60         BBTK_INPUT(PanelButtonContainerSettings,ButtonDescription,"Full description of the button",std::string,"");
61         BBTK_INPUT(PanelButtonContainerSettings,Widget,"Panel associated to the button",wxWindow*,"");
62         BBTK_OUTPUT(PanelButtonContainerSettings,Out,"ButtonContainerSettings List",BCStructVectorType,"");
63         BBTK_END_DESCRIBE_BLACK_BOX(PanelButtonContainerSettings);
64         //=====
65         // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
66         //=====
67 }
68 // EO namespace bbcreaMaracasVisu
69
70 #endif // __bbcreaMaracasVisuPanelButtonContainerSettings_h_INCLUDED__
71 #endif // _USE_WXWIDGETS_