From 5d1ed845326cc292279254b1e8667cdf3c4311fc Mon Sep 17 00:00:00 2001 From: Felipe Gonzalez Date: Wed, 8 Jul 2015 14:51:33 +0200 Subject: [PATCH] #2498 BBTK Feature New Norma lwt-version kernel --- kernel/src/bbtkWtBlackBox.cxx | 44 +++++++++++++++++++++++++++++------ kernel/src/bbtkWtBlackBox.h | 22 ++++++++++++++++-- 2 files changed, 57 insertions(+), 9 deletions(-) diff --git a/kernel/src/bbtkWtBlackBox.cxx b/kernel/src/bbtkWtBlackBox.cxx index d94fa51..be52409 100644 --- a/kernel/src/bbtkWtBlackBox.cxx +++ b/kernel/src/bbtkWtBlackBox.cxx @@ -72,6 +72,14 @@ namespace bbtk //========================================================================= // For the very first contruction of the application +/* struct wtServerData + { + std::string docRoot; + std::string port; + std::string address; + + }; + */ struct wtData { Wt::WContainerWidget *parent; @@ -86,7 +94,7 @@ namespace bbtk */ // static bbtk::jScript* js = new bbtk::jScript(); static wtData myWtData; - static bool loadedJS; +// static wtServerData loadedJS; //static std::string* jss; @@ -140,7 +148,7 @@ namespace bbtk this->useStyleSheet("style.css"); - std::cout<<"Cargado------------ "<); + //std::string WtBlackBox::wtServerData::docRoot = "/home/gonzalez/Documents/pruebaResources"; + //std::string WtBlackBox::wtServerData::docRoot = "/usr/local/share/wtResources"; + //std::string WtBlackBox::wtServerData::port = "8081"; + std::string WtBlackBox::wtServerData::docRoot = ""; + std::string WtBlackBox::wtServerData::port = ""; + std::string WtBlackBox::wtServerData::address = "0.0.0.0"; //========================================================================= //========================================================================= @@ -288,6 +302,11 @@ namespace bbtk { bbtkBlackBoxDebugMessage("widget",5,"WtBlackBox::bbUserSetDefaultValues()"<(); - myWtData.title = std2wt( bbGetInputWinTitle() + myWtData.b = GetThisPointer(); + myWtData.title = std2wt( bbGetInputWinTitle() + " - bbtk (c) CREATIS"); - std::cout<<"Creating Container WT -- Definition of server parameters by default -DELETE THIS MESSAGE bbtkWTBlackBox.cxx"<isRunning()) { std::cout<<"Checking the existence of a Server deployed -DELETE THIS MESSAGE bbtkWTBlackBox.cxx"< { + + + + + + public: BBTK_BLACK_BOX_INTERFACE(WtBlackBox,bbtk::WidgetBlackBox); @@ -80,6 +86,18 @@ namespace bbtk // protected: public: + + struct wtServerData + { + /*std::string docRoot; + std::string port; + std::string address; + */ + static std::string docRoot ; + static std::string port ; + static std::string address ; + }; + /* static std::string* jScript; static void changeJScript(std::string newJScript){jScript=newJScript;}; static std::string getJScript(){return jScript;};*/ @@ -94,8 +112,8 @@ namespace bbtk /// ** Must be defined ** in toolkit specific descendants virtual void bbCreateFrameWindow(); //================================================================== - - + //staticwtServerData serData; + // static void setServerInformation(std::string nDocRoot, std::string nPort, std::string nAddress); //================================================================== Wt::WContainerWidget* bbGetWindow() { return bbmWindow; } void bbSetWindow(Wt::WContainerWidget*) ; -- 2.44.0