X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=kernel%2Fsrc%2FbbtkWxBrowser.h;h=8f1c3b153ee3a0ad2db2c6854bc10ead81ea27d9;hb=56e4ad989e702cfecc9166812f8a365aca6a2b31;hp=2554a179318a871706f90e74e6f54c9cdf8b6bbf;hpb=cbb1d0fcc41f6d98f3057a117d84aaab0e6e4377;p=bbtk.git diff --git a/kernel/src/bbtkWxBrowser.h b/kernel/src/bbtkWxBrowser.h index 2554a17..8f1c3b1 100644 --- a/kernel/src/bbtkWxBrowser.h +++ b/kernel/src/bbtkWxBrowser.h @@ -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() };