]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkWtBlackBox.h
#2536 BBTK Feature New Normal wt-version Package
[bbtk.git] / kernel / src / bbtkWtBlackBox.h
index 3d5f1436e5b581927d94565fa8bb3edd1c2754fb..bd36a45037e7fbf3ac90f7e1c4617a33ec9b365d 100644 (file)
@@ -73,14 +73,37 @@ namespace bbtk
 //EED 10/06/2009 /*BBTK_EXPORT*/
   class BBTK_EXPORT WtBlackBox : public bbtk::WidgetBlackBox<Wt::WContainerWidget>
   { 
+  
+
+  
+  
+  
   public:
     BBTK_BLACK_BOX_INTERFACE(WtBlackBox,bbtk::WidgetBlackBox<Wt::WContainerWidget>);
-
+    
          
     //  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,12 +115,13 @@ 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*) ;
     bool bbWindowIsCreated() { return (bbGetWindow() != 0); }
+   // Wt::WApplication *createApplication(const Wt::WEnvironment& env);
     //==================================================================    
 
 
@@ -110,7 +134,8 @@ namespace bbtk
     //==================================================================    
 
   private:
-
+    
+    Wt::WApplication* bbApp;
     Wt::WContainerWidget* bbmWindow;
  
   };