]> Creatis software - creaMaracasVisu.git/blob - bbtk/src/bbcreaMaracasVisuPanelButtonContainerSettings.h
69ac1f455b4b4ab12fd8128733a1303e0a879fdc
[creaMaracasVisu.git] / bbtk / src / bbcreaMaracasVisuPanelButtonContainerSettings.h
1 /*# ---------------------------------------------------------------------
2 #
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
4 #                        pour la Sant�)
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
7 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
8 #
9 #  This software is governed by the CeCILL-B license under French law and
10 #  abiding by the rules of distribution of free software. You can  use,
11 #  modify and/ or redistribute the software under the terms of the CeCILL-B
12 #  license as circulated by CEA, CNRS and INRIA at the following URL
13 #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
14 #  or in the file LICENSE.txt.
15 #
16 #  As a counterpart to the access to the source code and  rights to copy,
17 #  modify and redistribute granted by the license, users are provided only
18 #  with a limited warranty  and the software's author,  the holder of the
19 #  economic rights,  and the successive licensors  have only  limited
20 #  liability.
21 #
22 #  The fact that you are presently reading this means that you have had
23 #  knowledge of the CeCILL-B license and that you accept its terms.
24 # ------------------------------------------------------------------------ */
25
26 //===== 
27 // 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)
28 //===== 
29 #ifdef _USE_WXWIDGETS_
30 #ifndef __bbcreaMaracasVisuPanelButtonContainerSettings_h_INCLUDED__
31 #define __bbcreaMaracasVisuPanelButtonContainerSettings_h_INCLUDED__
32 #include "bbcreaMaracasVisu_EXPORT.h"
33 #include "bbtkWxBlackBox.h"
34
35 #include <string>
36 #include <vector>
37
38 #include <structBCPSettings.h>
39
40 namespace bbcreaMaracasVisu
41 {
42         typedef creaPanelButtonContainer::BCPSettingsStruct BCPSettingsStruct;
43         typedef std::vector< BCPSettingsStruct* > BCStructVectorType;
44         class bbcreaMaracasVisu_EXPORT PanelButtonContainerSettings :
45           public bbtk::WxBlackBox
46         {
47                 BBTK_BLACK_BOX_INTERFACE(PanelButtonContainerSettings,bbtk::WxBlackBox);
48                         //=====
49                         // 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)
50                         //=====
51                   BBTK_DECLARE_INPUT(Title,std::string);
52                   BBTK_DECLARE_INPUT(In,BCStructVectorType);
53                         BBTK_DECLARE_INPUT(GroupName,std::string);
54                         BBTK_DECLARE_INPUT(ButtonName,std::string);
55                         BBTK_DECLARE_INPUT(Iconpath,std::string);
56                         BBTK_DECLARE_INPUT(ButtonDescription,std::string);
57                         BBTK_DECLARE_INPUT(Widget,wxWindow*);
58                         BBTK_DECLARE_OUTPUT(Out,BCStructVectorType);
59                         BBTK_PROCESS(Process);
60
61                         void
62                         Process( );BBTK_CREATE_WIDGET(CreateWidget);
63                         void
64                         CreateWidget( wxWindow* );
65
66                 private:
67                         BCPSettingsStruct* m_BSettings;
68                         BCStructVectorType m_BCSettingsVector;
69                         wxPanel* myPanel;
70                         //=====
71                         // 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)
72                         //=====
73         };
74
75         BBTK_BEGIN_DESCRIBE_BLACK_BOX(PanelButtonContainerSettings,bbtk::WxBlackBox);
76         BBTK_NAME("PanelButtonContainerSettings");
77         BBTK_AUTHOR("Info-Dev");
78         BBTK_DESCRIPTION("_description_");
79         BBTK_CATEGORY("__CategoryBlackBox__");
80         BBTK_INPUT(PanelButtonContainerSettings,Title,"Title prepended to the text",std::string,"");
81         BBTK_INPUT(PanelButtonContainerSettings,In,"ButtonContainerSettings List",BCStructVectorType,"");
82         BBTK_INPUT(PanelButtonContainerSettings,GroupName,"Group Name",std::string,"");
83         BBTK_INPUT(PanelButtonContainerSettings,ButtonName,"Button Name",std::string,"");
84         BBTK_INPUT(PanelButtonContainerSettings,Iconpath,"The path of the Icon",std::string,"");
85         BBTK_INPUT(PanelButtonContainerSettings,ButtonDescription,"Full description of the button",std::string,"");
86         BBTK_INPUT(PanelButtonContainerSettings,Widget,"Panel associated to the button",wxWindow*,"");
87         BBTK_OUTPUT(PanelButtonContainerSettings,Out,"ButtonContainerSettings List",BCStructVectorType,"");
88         BBTK_END_DESCRIBE_BLACK_BOX(PanelButtonContainerSettings);
89         //=====
90         // 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)
91         //=====
92 }
93 // EO namespace bbcreaMaracasVisu
94
95 #endif // __bbcreaMaracasVisuPanelButtonContainerSettings_h_INCLUDED__
96 #endif // _USE_WXWIDGETS_