X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkWtBlackBox.h;h=1df5570c476222a44cccc6789945b95334271a31;hb=3dcc408acd2264664ca6431a501378ea64233dd6;hp=ba56e29df81f8d3c6294d91f30e22234cd198bdb;hpb=85be7d05390ee84a66308c17c740565456ce15d2;p=bbtk.git diff --git a/kernel/src/bbtkWtBlackBox.h b/kernel/src/bbtkWtBlackBox.h index ba56e29..1df5570 100644 --- a/kernel/src/bbtkWtBlackBox.h +++ b/kernel/src/bbtkWtBlackBox.h @@ -73,14 +73,37 @@ namespace bbtk //EED 10/06/2009 /*BBTK_EXPORT*/ class BBTK_EXPORT WtBlackBox : public bbtk::WidgetBlackBox { + + + + + + public: BBTK_BLACK_BOX_INTERFACE(WtBlackBox,bbtk::WidgetBlackBox); - + // 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 int argc; + static char **argv; + }; + + /* 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 @@ -92,8 +115,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*) ; @@ -110,6 +133,9 @@ namespace bbtk virtual void bbDestroyWindow(); //================================================================== + void bbwtUpdateInputs(); + void bbwtProcess(); + private: Wt::WApplication* bbApp;