]> Creatis software - creaMaracasVisu.git/blob - bbtk/src/bbcreaMaracasVisuPanelButtonContainerSettings.cxx
no message
[creaMaracasVisu.git] / bbtk / src / bbcreaMaracasVisuPanelButtonContainerSettings.cxx
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 #include "bbcreaMaracasVisuPanelButtonContainerSettings.h"
5 #include "bbcreaMaracasVisuPackage.h"
6 namespace bbcreaMaracasVisu
7 {
8
9         BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu,PanelButtonContainerSettings)
10         BBTK_BLACK_BOX_IMPLEMENTATION(PanelButtonContainerSettings,bbtk::WxBlackBox)
11 ;
12 //===== 
13 // 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)
14 //===== 
15 void
16 PanelButtonContainerSettings::Process( )
17 {
18
19         this->m_BSettings->groupName                    = bbGetInputGroupName( );
20         this->m_BSettings->buttonName                   = bbGetInputButtonName( );
21         this->m_BSettings->buttonDescription    = bbGetInputButtonDescription( );
22         this->m_BSettings->iconpath                             = bbGetInputIconpath( );
23         this->m_BSettings->panel                                = this->myPanel;
24         this->m_BCSettingsVector                                = bbGetInputIn();
25         this->m_BCSettingsVector.push_back(  this->m_BSettings );
26         bbSetOutputOut( this->m_BCSettingsVector );
27         
28         printf("EED PanelButtonContainerSettings::Process In  %d\n", bbGetInputIn( ).size() );
29         printf("EED PanelButtonContainerSettings::Process tmpVec  %d\n", this->m_BCSettingsVector.size() );
30         printf("EED PanelButtonContainerSettings::Process Out  %d\n", bbGetOutputOut( ).size() );
31         
32 }
33 //===== 
34 // 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)
35 //===== 
36 void
37 PanelButtonContainerSettings::CreateWidget( wxWindow* parent )
38 {
39   this->myPanel = new wxPanel( parent, -1 );
40         wxWindow* w = bbCreateWidgetOfInput("Widget", myPanel);
41         wxWindow* ww = bbCreateWidgetOfInput("In", parent);
42
43   wxBoxSizer* sizer = new wxBoxSizer(wxHORIZONTAL);
44   sizer->Add(w,1,wxEXPAND, 0);
45   this->myPanel->SetSizer(sizer);
46   bbSetOutputWidget( myPanel );
47
48         
49 }
50 //===== 
51 // 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)
52 //===== 
53 void
54 PanelButtonContainerSettings::bbUserSetDefaultValues( )
55 {
56
57 }
58 //===== 
59 // 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)
60 //===== 
61 void
62 PanelButtonContainerSettings::bbUserInitializeProcessing( )
63 {
64         this->m_BSettings = new BCPSettingsStruct();
65 }
66 //===== 
67 // 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)
68 //===== 
69 void
70 PanelButtonContainerSettings::bbUserFinalizeProcessing( )
71 {
72
73 }
74 }
75 // EO namespace bbcreaMaracasVisu
76
77