]> Creatis software - creaWT.git/blob - wt/bbtk_wt_PKG/src/bbwtLayoutTab.cxx
fb28982a029e39b2b404dd419095bca87fa3fa0a
[creaWT.git] / wt / bbtk_wt_PKG / src / bbwtLayoutTab.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 "bbwtLayoutTab.h"
5 #include "bbwtPackage.h"
6 #include "bbtkUtilities.h"
7
8 namespace bbwt
9 {
10
11 BBTK_ADD_BLACK_BOX_TO_PACKAGE(wt,LayoutTab)
12 BBTK_BLACK_BOX_IMPLEMENTATION(LayoutTab,bbtk::WtBlackBox);
13 //===== 
14 // 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)
15 //===== 
16 void LayoutTab::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 }
31 //===== 
32 // 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)
33 //===== 
34 void LayoutTab::CreateWidget(wxWindow* parent)
35 {
36
37    bbSetOutputWidget( new wxStaticText ( parent , -1 , _T("") ) );
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 LayoutTab::bbUserSetDefaultValues()
44 {
45                 bbSetInputOrientation("TOP");
46                 bbSetInputWidget1(NULL);
47                 bbSetInputWidget2(NULL);
48                 bbSetInputWidget3(NULL);
49                 bbSetInputWidget4(NULL);
50                 bbSetInputWidget5(NULL);
51                 bbSetInputWidget6(NULL);
52                 bbSetInputWidget7(NULL);
53                 bbSetInputWidget8(NULL);
54                 bbSetInputWidget9(NULL);
55 }
56 //===== 
57 // 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)
58 //===== 
59 void LayoutTab::bbUserInitializeProcessing()
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 LayoutTab::bbUserFinalizeProcessing()
67 {
68
69 }
70 }
71 // EO namespace bbwt
72
73