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 std::cout<<"CAMBIANDO TEXTO--"<<bbtk::wt2std(newText)<<std::endl;
46 mText->setText(newText);
49 Wt::WString OutputTextWidget::getTextValue()
56 BBTK_ADD_BLACK_BOX_TO_PACKAGE(wt,OutputText)
57 BBTK_BLACK_BOX_IMPLEMENTATION(OutputText,bbtk::WtBlackBox);
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)
61 void OutputText::Process()
65 if (bbGetInputTitle()!="")
67 msg = bbGetInputTitle()+": " + bbGetInputIn();
73 ((OutputTextWidget*)bbGetOutputWidget())->setTextValue( bbtk::std2wt( msg ) );
77 // 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)
79 void OutputText::CreateWidget(Wt::WContainerWidget* parent)
82 bbSetOutputWidget( new OutputTextWidget(parent,bbtk::std2wt(bbGetInputIn()))) ;
87 // 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)
89 void OutputText::bbUserSetDefaultValues()
94 // 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)
96 void OutputText::bbUserInitializeProcessing()
101 // 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)
103 void OutputText::bbUserFinalizeProcessing()