From 1b7876d34a9cfbb96464c860fb671ccf375e343a Mon Sep 17 00:00:00 2001 From: Felipe Gonzalez Date: Tue, 24 Mar 2015 16:00:53 +0100 Subject: [PATCH] 2498 BBTK Feature New Normal wt-version kernel --- kernel/src/bbtkWtBlackBox.cxx | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/kernel/src/bbtkWtBlackBox.cxx b/kernel/src/bbtkWtBlackBox.cxx index 581eecf..93ef127 100644 --- a/kernel/src/bbtkWtBlackBox.cxx +++ b/kernel/src/bbtkWtBlackBox.cxx @@ -52,11 +52,15 @@ //#include "bbtkData.h" //#include "bbtkFactory.h" +static std::string jScriptLine; + namespace bbtk { //========================================================================= // wtData structure //========================================================================= + + // For the very first contruction of the application struct wtData { Wt::WContainerWidget *parent; @@ -65,6 +69,12 @@ namespace bbtk }; static wtData myWtData; + + //========================================================================= + // javaScript Line + //========================================================================= + //Contains all the JS statements needed for the bbwt. + //========================================================================= // WxFrame //========================================================================= @@ -95,7 +105,11 @@ namespace bbtk : Wt::WApplication(env) { - + //std::cout<<"Adding JavaScript -- DELETE ME -- bbtkWtBlackBox.cxx"<require("js/xtk.js"); + //this->require("js/demo/demo2.js"); + //this->useStyleSheet("css/demo.css"); + jScriptLine = ""; mBox = myWtData.b; if(!myWtData.parent) { @@ -113,6 +127,7 @@ namespace bbtk root()->addWidget(myWtData.parent); //bbmWindow = myCont; std::cout<<"Creando WebWIDGET DELETE ME ---- bbtkWtBlackBox.cxx.................80%"<doJavaScript(jScriptLine); } @@ -212,8 +227,8 @@ namespace bbtk //================================================================== void WxDialog::OnCloseWindow(wxCloseEvent& event) { - bbtkDebugMessage("widget",9,"WxDialog::OnCloseWindow()"<bbSetWindow(0); + bbtkDebugMessage("widget",9,"WxDialog::OnCloseWindow()"<bbSetWindow(0); http://doodle.com/qx65tfxismf7d6ku5vxykghs/admin#table Wx::DecNbWindowsAlive(); this->Destroy(); } -- 2.44.0