X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?p=creaWT.git;a=blobdiff_plain;f=wt%2Fbbtk_wt_PKG%2Fsrc%2FbbwtOutputText.cxx~;fp=wt%2Fbbtk_wt_PKG%2Fsrc%2FbbwtOutputText.cxx~;h=0000000000000000000000000000000000000000;hp=900670c66060dca52f5891aa69575898f2d48642;hb=5bdd6bc07e285c2dc485dd053aaee47356d8689b;hpb=430578713a572cd83e04ca0f65c6e34e87879cd6 diff --git a/wt/bbtk_wt_PKG/src/bbwtOutputText.cxx~ b/wt/bbtk_wt_PKG/src/bbwtOutputText.cxx~ deleted file mode 100644 index 900670c..0000000 --- a/wt/bbtk_wt_PKG/src/bbwtOutputText.cxx~ +++ /dev/null @@ -1,110 +0,0 @@ -//===== -// 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--"<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 - -