X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkWtBlackBox.h;h=e73bde96986610134b987d5e5e0d26f8d5b8e646;hb=4d6822024afbbe783cdd620e248184b37d84c540;hp=310a854bf2b7019bd5c5201a0c9bd2251d13c6d9;hpb=c707b7a431df27af2590fcf837190ee4e5070107;p=bbtk.git diff --git a/kernel/src/bbtkWtBlackBox.h b/kernel/src/bbtkWtBlackBox.h index 310a854..e73bde9 100644 --- a/kernel/src/bbtkWtBlackBox.h +++ b/kernel/src/bbtkWtBlackBox.h @@ -54,6 +54,7 @@ #ifdef USE_WT + #ifndef __bbtkWtBlackBox_h__ #define __bbtkWtBlackBox_h__ @@ -73,6 +74,12 @@ namespace bbtk //EED 10/06/2009 /*BBTK_EXPORT*/ class BBTK_EXPORT WtBlackBox : public bbtk::WidgetBlackBox { + + + + + + public: BBTK_BLACK_BOX_INTERFACE(WtBlackBox,bbtk::WidgetBlackBox); @@ -80,6 +87,21 @@ 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 int argc; + static char **argv; + }; + /* static std::string* jScript; static void changeJScript(std::string newJScript){jScript=newJScript;}; static std::string getJScript(){return jScript;};*/ @@ -94,8 +116,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*) ; @@ -112,6 +134,9 @@ namespace bbtk virtual void bbDestroyWindow(); //================================================================== + void bbwtUpdateInputs(); + void bbwtProcess(); + private: Wt::WApplication* bbApp; @@ -132,6 +157,6 @@ namespace bbtk } //namespace bbtk -#endif //__bbtkWxBlackBox_h__ +#endif //__bbtkWtBlackBox_h__ -#endif //USE_WXWIDGETS +#endif //USE_WT