X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkWxBrowser.h;h=8f1c3b153ee3a0ad2db2c6854bc10ead81ea27d9;hb=440980c4ef90a770a3f99c2bf4dfa1fa960074e6;hp=faea9466a6915860c7cf833e3351803d5621a384;hpb=26120e8947976f2e1775f2d6dc727a2741302b36;p=bbtk.git diff --git a/kernel/src/bbtkWxBrowser.h b/kernel/src/bbtkWxBrowser.h index faea946..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,28 +35,42 @@ 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 OnLinkClicked(wxHtmlLinkEvent& ); + void OnHomeButton(wxCommandEvent& ); + void OnReloadButton(wxCommandEvent& ); + void OnIncludeFileButton(wxCommandEvent& ); + void OnLinkClicked(wxHtmlLinkEvent& ); void OnURLEnter( wxCommandEvent&); void UpdateURL(); // void OnCell(wxHtmlCellEvent& ); void SetSize( wxSize ); + void SetWxConsole( WxConsole* c ) { mWxConsole = c; } + private: WxHtmlWindow* mwxHtmlWindow; wxTextCtrl* mwxURL; wxButton* mwxBackButton; wxButton* mwxForwardButton; - + wxButton* mwxHomeButton; + wxButton* mwxReloadButton; + wxButton* mwxIncludeFileButton; + + WxConsole* mWxConsole; + // any class wishing to process wxWidgets events must use this macro DECLARE_EVENT_TABLE() };