]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkWxBrowser.h
* Fixed problem with 'include *'
[bbtk.git] / kernel / src / bbtkWxBrowser.h
index 2554a179318a871706f90e74e6f54c9cdf8b6bbf..8f1c3b153ee3a0ad2db2c6854bc10ead81ea27d9 100644 (file)
@@ -26,7 +26,7 @@ namespace bbtk
      
     }
     //    wxHtmlOpeningStatus OnOpeningURL(wxHtmlURLType type,const wxString& url, wxString *redirect);
-    virtual void OnLinkClicked(const wxHtmlLinkInfo& link);
+//EED    virtual void OnLinkClicked(const wxHtmlLinkInfo& link);
 
   private: 
     WxBrowser* mBrowser;
@@ -35,17 +35,22 @@ namespace bbtk
   };
 
  
+
+  class WxConsole;
+
   class WxBrowser : public wxPanel
   {
   public:
     WxBrowser ( wxWindow *parent, wxSize size );
  
     bool GoTo(std::string&);
+    void GoHome();
 
     void OnBackButton(wxCommandEvent& );
     void OnForwardButton(wxCommandEvent& );
     void OnHomeButton(wxCommandEvent& );
-    void OnMakeIndexButton(wxCommandEvent& );
+    void OnReloadButton(wxCommandEvent& );
+    void OnIncludeFileButton(wxCommandEvent& );
     void OnLinkClicked(wxHtmlLinkEvent& );
     void OnURLEnter( wxCommandEvent&);
     void UpdateURL();
@@ -53,14 +58,19 @@ namespace bbtk
 
     void SetSize( wxSize );
 
+    void SetWxConsole( WxConsole* c ) { mWxConsole = c; }
+
   private:
     WxHtmlWindow* mwxHtmlWindow;
     wxTextCtrl* mwxURL;
     wxButton* mwxBackButton;
     wxButton* mwxForwardButton;
     wxButton* mwxHomeButton;
-    wxButton* mwxMakeIndexButton;
+    wxButton* mwxReloadButton;
+    wxButton* mwxIncludeFileButton;
+    
+    WxConsole* mWxConsole;
+    
    // any class wishing to process wxWidgets events must use this macro
     DECLARE_EVENT_TABLE()  
   };