#include <Wt/WRadioButton>
#include <Wt/Ext/Splitter>
#include <Wt/WTabWidget>
+#include <Wt/WFileUpload>
+#include <Wt/WLength>
+
//typedef boost::signals::trackable SignalObserver;
// \BBTKWXSIG
//===========================================================================
typedef boost::signal<void ()> Signal_type;
typedef Signal_type::slot_function_type Slot_function_type;
// \BBTKWXSIG
-
+
/*
static void ResetCursor();
static void BeginBusyCursor();
//==================================================================
#ifdef USE_WT
+
+
+ static std::string jScript;
//==================================================================
/// Conversion std::string to wxString
inline Wt::WString std2wt(const std::string& s)
//#include "bbtkData.h"
//#include "bbtkFactory.h"
-static std::string jScriptLine;
+
+
namespace bbtk
{
+
+
+/*
+ class jScript
+ {
+ public:
+ jScript();
+ std::string jScriptLine;
+ };
+*/
//=========================================================================
// wtData structure
//=========================================================================
Wt::WString title;
};
+/* jScript::jScript()
+ {
+ jScriptLine = "";
+ }
+*/
+// static bbtk::jScript* js = new bbtk::jScript();
static wtData myWtData;
+ static bool loadedJS;
+ //static std::string* jss;
+
+
//=========================================================================
// javaScript Line
//=========================================================================
//Contains all the JS statements needed for the bbwt.
+
//=========================================================================
// WxFrame
//=========================================================================
const Wt::WEnvironment& env
);
~WtWFrame();
-
+
WtBlackBox::WeakPointer mBox;
-
+
};
-
+
WtWFrame::WtWFrame(
const Wt::WEnvironment& env
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->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");
- jScriptLine = "";
+
+ // this->require("http://get.goXTK.com/xtk_edge.js");
+ this->require("http://get.goXTK.com/xtk_xdat.gui.js");
+ this->require("xtk.js");
+ //this->require("xtk_xdat.gui.js");
+ this->useStyleSheet("style.css");
+
+
+ std::cout<<"Cargado------------ "<<loadedJS<<std::endl;
+
mBox = myWtData.b;
if(!myWtData.parent)
{
myWtData.b->bbUserCreateWidget(myCont);
root()->addWidget(myWtData.parent);
//bbmWindow = myCont;
+ this->refresh();
+ //jss = WtBlackBox::jScript;
std::cout<<"Creando WebWIDGET DELETE ME ---- bbtkWtBlackBox.cxx.................80%"<<std::endl;
- this->doJavaScript(jScriptLine);
+ std::cout<<"Creando WebWIDGET DELETE ME SCRIPT : ---"<<bbtk::jScript<<".................80%"<<std::endl;
+ //this->doJavaScript(bbtk::jScript);
}
//=========================================================================
//=========================================================================
BBTK_BLACK_BOX_IMPLEMENTATION(WtBlackBox,WidgetBlackBox<Wt::WContainerWidget>);
+
+
//=========================================================================
//=========================================================================
void WtBlackBox::bbUserSetDefaultValues()
{
public:
BBTK_BLACK_BOX_INTERFACE(WtBlackBox,bbtk::WidgetBlackBox<Wt::WContainerWidget>);
-
+
// protected:
public:
-
+ /* static std::string* jScript;
+ static void changeJScript(std::string newJScript){jScript=newJScript;};
+ static std::string getJScript(){return jScript;};*/
//==================================================================
/// Callback for creating a Dialog window (modal)
/// ** Must be defined ** in toolkit specific descendants