//#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;
};
static wtData myWtData;
+
+ //=========================================================================
+ // javaScript Line
+ //=========================================================================
+ //Contains all the JS statements needed for the bbwt.
+
//=========================================================================
// WxFrame
//=========================================================================
:
Wt::WApplication(env)
{
-
+ //std::cout<<"Adding JavaScript -- DELETE ME -- bbtkWtBlackBox.cxx"<<std::endl;
+ this->require("js/xtk.js");
+ //this->require("js/demo/demo2.js");
+ //this->useStyleSheet("css/demo.css");
+ jScriptLine = "";
mBox = myWtData.b;
if(!myWtData.parent)
{
root()->addWidget(myWtData.parent);
//bbmWindow = myCont;
std::cout<<"Creando WebWIDGET DELETE ME ---- bbtkWtBlackBox.cxx.................80%"<<std::endl;
+ this->doJavaScript(jScriptLine);
}
//==================================================================
void WxDialog::OnCloseWindow(wxCloseEvent& event)
{
- bbtkDebugMessage("widget",9,"WxDialog::OnCloseWindow()"<<std::endl);
- if (mBox.lock()) mBox.lock()->bbSetWindow(0);
+ bbtkDebugMessage("widget",9,"WxDialog::OnCloseWindow()"<<wxGUIEditorGraphicBBS:std::endl);
+ if (mBox.lock()) mBox.lock()->bbSetWindow(0); http://doodle.com/qx65tfxismf7d6ku5vxykghs/admin#table
Wx::DecNbWindowsAlive();
this->Destroy();
}