+++ /dev/null
-//=====
-// 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)
-//=====
-#include "bbwtOutputText.h"
-#include "bbwtPackage.h"
-namespace bbwt
-{
- class OutputTextWidget : public Wt::WContainerWidget
- {
- public:
- OutputTextWidget(
- Wt::WContainerWidget *parent,
- Wt::WString text);
- ~OutputTextWidget();
-
-
- void setTextValue(Wt::WString newText);
- Wt::WString getTextValue();
-
-
- private:
-
- Wt::WText* mText;
-
- };
-
- OutputTextWidget::OutputTextWidget(
- Wt::WContainerWidget *parent,
- Wt::WString text)
- :
- Wt::WContainerWidget(parent)
- {
-
- Wt::WContainerWidget *panel = this;
- mText = new Wt::WText(text,panel);
-
- }
-
- OutputTextWidget::~OutputTextWidget()
- {
- }
-
- void OutputTextWidget::setTextValue(Wt::WString newText)
- {
- std::cout<<"CAMBIANDO TEXTO--"<<bbtk::wt2std(newText)<<std::endl;
-//EED mText->setText(newText);
- }
-
- Wt::WString OutputTextWidget::getTextValue()
- {
- return mText->text();
- }
-
-
-
-BBTK_ADD_BLACK_BOX_TO_PACKAGE(wt,OutputText)
-BBTK_BLACK_BOX_IMPLEMENTATION(OutputText,bbtk::WtBlackBox);
-//=====
-// 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)
-//=====
-void OutputText::Process()
-{
-
- std::string msg;
- if (bbGetInputTitle()!="")
- {
- msg = bbGetInputTitle()+": " + bbGetInputIn();
- }
- else
- {
- msg = bbGetInputIn();
- }
- ((OutputTextWidget*)bbGetOutputWidget())->setTextValue( bbtk::std2wt( msg ) );
-
-}
-//=====
-// 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)
-//=====
-void OutputText::CreateWidget(Wt::WContainerWidget* parent)
-{
-
- bbSetOutputWidget( new OutputTextWidget(parent,bbtk::std2wt(bbGetInputIn()))) ;
-//EED Process();
-
-}
-//=====
-// 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)
-//=====
-void OutputText::bbUserSetDefaultValues()
-{
-
-}
-//=====
-// 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)
-//=====
-void OutputText::bbUserInitializeProcessing()
-{
-
-}
-//=====
-// 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)
-//=====
-void OutputText::bbUserFinalizeProcessing()
-{
-
-}
-}
-// EO namespace bbwt
-
-