]> Creatis software - creaMaracasVisu.git/blob - bbtk/src/bbcreaMaracasVisuPanelButtonContainerSettings.h
2413 creaMaracasVisu Feature New Normal New blackBox BitmapButtonIcon and fix the...
[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 #include "wx/bitmap.h"
35
36 #include <string>
37 #include <vector>
38
39 #include <structBCPSettings.h>
40
41 namespace bbcreaMaracasVisu
42 {
43         typedef creaPanelButtonContainer::BCPSettingsStruct BCPSettingsStruct;
44         typedef std::vector< BCPSettingsStruct* > BCStructVectorType;
45         class bbcreaMaracasVisu_EXPORT PanelButtonContainerSettings :
46           public bbtk::WxBlackBox
47         {
48                 BBTK_BLACK_BOX_INTERFACE(PanelButtonContainerSettings,bbtk::WxBlackBox);
49                         //=====
50                         // 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)
51                         //=====
52                   BBTK_DECLARE_INPUT(Title,std::string);
53                   BBTK_DECLARE_INPUT(In,BCStructVectorType);
54                         BBTK_DECLARE_INPUT(GroupName,std::string);
55                         BBTK_DECLARE_INPUT(ButtonName,std::string);
56                         BBTK_DECLARE_INPUT(Iconpath,std::string);
57                         BBTK_DECLARE_INPUT(Icon,wxBitmap);
58                         BBTK_DECLARE_INPUT(ButtonDescription,std::string);
59                         BBTK_DECLARE_INPUT(Widget,wxWindow*);
60                         BBTK_DECLARE_OUTPUT(Out,BCStructVectorType);
61                         BBTK_PROCESS(Process);
62
63                         void
64                         Process( );BBTK_CREATE_WIDGET(CreateWidget);
65                         void
66                         CreateWidget( wxWindow* );
67
68                 private:
69                         BCPSettingsStruct* m_BSettings;
70                         BCStructVectorType m_BCSettingsVector;
71                         wxPanel* myPanel;
72                         //=====
73                         // 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)
74                         //=====
75         };
76
77         BBTK_BEGIN_DESCRIBE_BLACK_BOX(PanelButtonContainerSettings,bbtk::WxBlackBox);
78         BBTK_NAME("PanelButtonContainerSettings");
79         BBTK_AUTHOR("Info-Dev");
80         BBTK_DESCRIPTION("_description_");
81         BBTK_CATEGORY("__CategoryBlackBox__");
82         BBTK_INPUT(PanelButtonContainerSettings,Title,"Title prepended to the text",std::string,"");
83         BBTK_INPUT(PanelButtonContainerSettings,In,"ButtonContainerSettings List",BCStructVectorType,"");
84         BBTK_INPUT(PanelButtonContainerSettings,GroupName,"Group Name",std::string,"");
85         BBTK_INPUT(PanelButtonContainerSettings,ButtonName,"Button Name",std::string,"");
86         BBTK_INPUT(PanelButtonContainerSettings,Iconpath,"The path of the Icon",std::string,"");
87         BBTK_INPUT(PanelButtonContainerSettings,Icon,"The Icon",wxBitmap,"");
88         BBTK_INPUT(PanelButtonContainerSettings,ButtonDescription,"Full description of the button",std::string,"");
89         BBTK_INPUT(PanelButtonContainerSettings,Widget,"Panel associated to the button",wxWindow*,"");
90         BBTK_OUTPUT(PanelButtonContainerSettings,Out,"ButtonContainerSettings List",BCStructVectorType,"");
91         BBTK_END_DESCRIBE_BLACK_BOX(PanelButtonContainerSettings);
92         //=====
93         // 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)
94         //=====
95 }
96 // EO namespace bbcreaMaracasVisu
97
98 #endif // __bbcreaMaracasVisuPanelButtonContainerSettings_h_INCLUDED__
99 #endif // _USE_WXWIDGETS_