- Wt::WContainerWidget( parent),
- mBox(b)
- {
- bbtkDebugMessage("widget",9,"["<<b->bbGetName()<<"] Wt::Widget()"
- <<std::endl);
- Wt::WObject::setObjectName(bbtk::wt2std(title));
- WWt::IncNbWindowsAlive();
- b->bbSetWindow(this);
- // Insert the widget into the window
- //wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL);
- std::cout<<"Creando WebWIDGET DELETE ME ---- bbtkWtBlackBox.cxx.................30%"<<std::endl;
- std::cout<<"NAME : "<<bbtk::wt2std(title);
- if(parent)
- std::cout<<" CON PADRE "<<parent->objectName()<<std::endl;
- else
- std::cout<<" SIN PADRE "<<std::endl;
+ Wt::WApplication(env)
+ {
+ //std::cout<<"Adding JavaScript -- DELETE ME -- bbtkWtBlackBox.cxx"<<std::endl;
+ //this->require("/home/gonzalez/Documents/CREATOOLS/wt_library/wt/bbtk_wt_PKG/src/js/xtk.js");
+
+ //this->require("http://get.goXTK.com/xtk.js");
+ //this->useStyleSheet("css/demo.css");
+
+ // this->require("http://get.goXTK.com/xtk_edge.js");
+ this->require("http://get.goXTK.com/xtk_xdat.gui.js");
+ //this->require("http://get.goXTK.com/xtk.js");
+ this->require("xtk.js");
+ //this->require("xtk_xdat.gui.js");
+ this->useStyleSheet("styleWT.css");
+
+
+ // std::cout<<"Cargado------------ "<<loadedJS<<std::endl;
+
+ mBox = myWtData.b;
+ if(!myWtData.parent)
+ {
+ std::cout<<" SIN PADRE "<<std::endl;
+ if(myWtData.parent == 0){std::cout<<" PARENT 0 "<<std::endl;}
+ if(myWtData.parent == NULL){std::cout<<" PARENT NULL "<<std::endl;}
+ myWtData.parent = new Wt::WContainerWidget();
+ std::cout<<"Parent created -- DELETE ME -- bbtkWtBlackBox.cxx"<<std::endl;
+ }
+
+ Wt::WContainerWidget *myCont = new Wt::WContainerWidget(myWtData.parent);
+ myCont->setMinimumSize(800,500);