]> Creatis software - creaMaracasVisu.git/blob - bbtk/src/bbcreaMaracasVisuPanelButtonContainerSettings.cxx
creaButtonContainer: new structure to make easy the button settings
[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         //   std::string msg;
20         //    if (bbGetInputTitle()!="")
21         //      {
22         //      msg = bbGetInputTitle()+": " + bbGetInputIn();
23         //      }
24         //    else
25         //      {
26         //      msg = bbGetInputIn();
27         //      }
28         //   ((wxStaticText*)bbGetOutputWidget())->SetLabel( bbtk::std2wx( msg ) );
29
30         this->m_BSettings->groupName = bbGetInputGroupName( );
31         this->m_BSettings->buttonName = bbGetInputButtonName( );
32         this->m_BSettings->buttonDescription = bbGetInputButtonDescription( );
33         this->m_BSettings->iconpath = bbGetInputIconpath( );
34         this->m_BSettings->panel = this->myPanel;
35         this->m_BCSettingsVector = bbGetInputIn();
36         this->m_BCSettingsVector.push_back(  this->m_BSettings );
37         bbSetOutputOut( bbGetInputIn() );
38
39 }
40 //===== 
41 // 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)
42 //===== 
43 void
44 PanelButtonContainerSettings::CreateWidget( wxWindow* parent )
45 {
46   this->myPanel = new wxPanel( parent, -1 );
47         wxWindow* w = bbCreateWidgetOfInput("Widget", myPanel);
48         wxWindow* ww = bbCreateWidgetOfInput("In", parent);
49
50   wxBoxSizer* sizer = new wxBoxSizer(wxHORIZONTAL);
51   sizer->Add(w,1,wxEXPAND, 0);
52   this->myPanel->SetSizer(sizer);
53   bbSetOutputWidget( myPanel );
54 }
55 //===== 
56 // 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)
57 //===== 
58 void
59 PanelButtonContainerSettings::bbUserSetDefaultValues( )
60 {
61
62 }
63 //===== 
64 // 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)
65 //===== 
66 void
67 PanelButtonContainerSettings::bbUserInitializeProcessing( )
68 {
69         this->m_BSettings = new BCPSettingsStruct();
70 }
71 //===== 
72 // 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)
73 //===== 
74 void
75 PanelButtonContainerSettings::bbUserFinalizeProcessing( )
76 {
77
78 }
79 }
80 // EO namespace bbcreaMaracasVisu
81
82