]> Creatis software - creaWT.git/blob - wt/bbtk_wt_PKG/src/bbwtOutpuText.cxx~
793c37049d97aeb1ce1d6ff4e081939b66b427f8
[creaWT.git] / wt / bbtk_wt_PKG / src / bbwtOutpuText.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 "bbwtOutpuText.h"
5 #include "bbwtPackage.h"
6 namespace bbwt
7 {
8
9 BBTK_ADD_BLACK_BOX_TO_PACKAGE(wt,OutpuText)
10 BBTK_BLACK_BOX_IMPLEMENTATION(OutpuText,bbtk::WxBlackBox);
11 //===== 
12 // 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)
13 //===== 
14 void OutpuText::Process()
15 {
16
17    std::string msg;
18     if (bbGetInputTitle()!="")
19       {
20         msg = bbGetInputTitle()+": " + bbGetInputIn();
21       }
22     else
23       {
24         msg = bbGetInputIn();
25       }
26    ((wxStaticText*)bbGetOutputWidget())->SetLabel( bbtk::std2wx( msg ) ); 
27   
28 }
29 //===== 
30 // 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)
31 //===== 
32 void OutpuText::CreateWidget(wxWindow* parent)
33 {
34
35    bbSetOutputWidget( new wxStaticText ( parent , -1 , _T("") ) );
36   
37 }
38 //===== 
39 // 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)
40 //===== 
41 void OutpuText::bbUserSetDefaultValues()
42 {
43
44 }
45 //===== 
46 // 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)
47 //===== 
48 void OutpuText::bbUserInitializeProcessing()
49 {
50
51 }
52 //===== 
53 // 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)
54 //===== 
55 void OutpuText::bbUserFinalizeProcessing()
56 {
57
58 }
59 }
60 // EO namespace bbwt
61
62