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)
4 #include "bbwtOutputText.h"
5 #include "bbwtPackage.h"
8 class OutputTextWidget : public Wt::WContainerWidget
12 Wt::WContainerWidget *parent,
17 void setTextValue(Wt::WString newText);
18 Wt::WString getTextValue();
27 OutputTextWidget::OutputTextWidget(
28 Wt::WContainerWidget *parent,
31 Wt::WContainerWidget(parent)
34 Wt::WContainerWidget *panel = this;
35 mText = new Wt::WText(text,panel);
39 OutputTextWidget::~OutputTextWidget()
43 void OutputTextWidget::setTextValue(Wt::WString newText)
45 mText->setText(newText);
48 Wt::WString OutputTextWidget::getTextValue()
55 BBTK_ADD_BLACK_BOX_TO_PACKAGE(wt,OutputText)
56 BBTK_BLACK_BOX_IMPLEMENTATION(OutputText,bbtk::WtBlackBox);
58 // 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 void OutputText::Process()
64 if (bbGetInputTitle()!="")
66 msg = bbGetInputTitle()+": " + bbGetInputIn();
72 ((OutputTextWidget*)bbGetOutputWidget())->setTextValue( bbtk::std2wt( msg ) );
76 // 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)
78 void OutputText::CreateWidget(Wt::WContainerWidget* parent)
81 bbSetOutputWidget( new OutputTextWidget(parent,bbtk::std2wt(bbGetInputIn()))) ;
85 // 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)
87 void OutputText::bbUserSetDefaultValues()
92 // 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 void OutputText::bbUserInitializeProcessing()
99 // 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)
101 void OutputText::bbUserFinalizeProcessing()