]> Creatis software - bbtk.git/commitdiff
*** empty log message ***
authorguigues <guigues>
Fri, 7 Mar 2008 08:50:05 +0000 (08:50 +0000)
committerguigues <guigues>
Fri, 7 Mar 2008 08:50:05 +0000 (08:50 +0000)
kernel/src/bbtkWxBrowser.cxx
kernel/src/bbtkWxBrowser.h

index 72ffbb08d74b046b1f68fa70f35a45ff5df04106..0b3f0b6fcef8eb618963b6ba8146e1b325f06205 100644 (file)
@@ -242,7 +242,7 @@ namespace bbtk
     std::string filename = wx2std(mwxURL->GetValue());
     size_t s = filename.length();
 
-    WxConsole* C = WxConsole::GetInstance();
+    WxConsole* C = mWxConsole; //::GetInstance();
     if (C != 0)
       {
        if ((s>3) && (filename[s-1]=='s')
index e074b1c4e1ef8de955530e36b013ff501fc15f27..8f1c3b153ee3a0ad2db2c6854bc10ead81ea27d9 100644 (file)
@@ -35,6 +35,9 @@ namespace bbtk
   };
 
  
+
+  class WxConsole;
+
   class WxBrowser : public wxPanel
   {
   public:
@@ -55,6 +58,8 @@ namespace bbtk
 
     void SetSize( wxSize );
 
+    void SetWxConsole( WxConsole* c ) { mWxConsole = c; }
+
   private:
     WxHtmlWindow* mwxHtmlWindow;
     wxTextCtrl* mwxURL;
@@ -63,7 +68,9 @@ namespace bbtk
     wxButton* mwxHomeButton;
     wxButton* mwxReloadButton;
     wxButton* mwxIncludeFileButton;
+    
+    WxConsole* mWxConsole;
+    
    // any class wishing to process wxWidgets events must use this macro
     DECLARE_EVENT_TABLE()  
   };