]> Creatis software - bbtk.git/commitdiff
#3299 BBTK Bug New Normal wt4
authorEduardo DAVILA <davila@ei-ed-606.creatis.insa-lyon.fr>
Tue, 20 Aug 2019 15:06:10 +0000 (17:06 +0200)
committerEduardo DAVILA <davila@ei-ed-606.creatis.insa-lyon.fr>
Tue, 20 Aug 2019 15:06:10 +0000 (17:06 +0200)
kernel/src/bbtkWt.h
kernel/src/bbtkWtBlackBox.cxx

index f1fcd5e39587cadf19dd470dd00b43af77723a04..97a2fbed929d11d9d6776403e7dc1a60fce711e1 100644 (file)
@@ -78,7 +78,7 @@
 #include <Wt/WHBoxLayout>
 #include <Wt/WVBoxLayout>
 #include <Wt/WRadioButton>
-#include <Wt/Ext/Splitter>
+//EED2019-08-20  #include <Wt/Ext/Splitter>
 #include <Wt/WTabWidget>
 #include <Wt/WFileUpload>
 #include <Wt/WLength>
index a3cb0db75c09fec514311476812fcc3367d60e98..01a91bec01643466e5a9844ac058a18cfb5980ca 100644 (file)
@@ -150,12 +150,19 @@ namespace bbtk
                        std::cout<<"Parent created --  DELETE ME -- bbtkWtBlackBox.cxx"<<std::endl;
                }
 
-               Wt::WContainerWidget *myContainer = new Wt::WContainerWidget(myWtData.parent);
+//EED2019-08-20                
+//Wt::WContainerWidget *myContainer = new Wt::WContainerWidget( myWtData.parent );
+               Wt::WContainerWidget *myContainer = new Wt::WContainerWidget(  );
+printf("EED (WT) WtWFrame  warnning 2019 A  parent ?? \n");
+
                myContainer->setMinimumSize(800,500);
                std::cout<<"Creando WebWIDGET DELETE ME ---- bbtkWtBlackBox.cxx.......50%"<<std::endl;
                myWtData.b->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<Wt::WApplication> 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<WtWFrame>(env);
+
        }
 
 
@@ -381,7 +393,7 @@ int argc=2;
 
                Wt::WRun(WtBlackBox::wtServerData::argc,
                          WtBlackBox::wtServerData::argv,
-                         &createApplication);  
+                &createApplication);   
 
 
    }