From 1588a95ff236c187f3c6cdec14a5d1e899d230c9 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Tue, 20 Aug 2019 17:06:10 +0200 Subject: [PATCH] #3299 BBTK Bug New Normal wt4 --- kernel/src/bbtkWt.h | 2 +- kernel/src/bbtkWtBlackBox.cxx | 26 +++++++++++++++++++------- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/kernel/src/bbtkWt.h b/kernel/src/bbtkWt.h index f1fcd5e..97a2fbe 100644 --- a/kernel/src/bbtkWt.h +++ b/kernel/src/bbtkWt.h @@ -78,7 +78,7 @@ #include #include #include -#include +//EED2019-08-20 #include #include #include #include diff --git a/kernel/src/bbtkWtBlackBox.cxx b/kernel/src/bbtkWtBlackBox.cxx index a3cb0db..01a91be 100644 --- a/kernel/src/bbtkWtBlackBox.cxx +++ b/kernel/src/bbtkWtBlackBox.cxx @@ -150,12 +150,19 @@ namespace bbtk std::cout<<"Parent created -- DELETE ME -- bbtkWtBlackBox.cxx"<setMinimumSize(800,500); std::cout<<"Creando WebWIDGET DELETE ME ---- bbtkWtBlackBox.cxx.......50%"<bbUserCreateWidget(myContainer); - root()->addWidget(myWtData.parent); +//EED2019-08-20 +// root()->addWidget(myWtData.parent); +printf("EED (WT) WtWFrame warnning 2019 B parent ?? \n"); + //bbmWindow = myCont; this->refresh(); //jss = WtBlackBox::jScript; @@ -185,11 +192,16 @@ namespace bbtk } - - - Wt::WApplication *createApplication(const Wt::WEnvironment& env) +//EED2019-08-20 +// Wt::WApplication *createApplication(const Wt::WEnvironment& env) + std::unique_ptr createApplication(const Wt::WEnvironment& env) + { - return new WtWFrame(env); +printf("EED (WT) createApplication warnning 2019 \n"); +//EED2019-08-20 +// return new WtWFrame(env); + std::make_unique(env); + } @@ -381,7 +393,7 @@ int argc=2; Wt::WRun(WtBlackBox::wtServerData::argc, WtBlackBox::wtServerData::argv, - &createApplication); + &createApplication); } -- 2.47.1