X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkWxGUIHtmlBrowser.h;h=06dbcc9a8c51f961b3d57851cabbe758388b8437;hb=033637cc97855ea9e1a515a2c20486700dd004a6;hp=bf8b99cede07b26c698561bf8591c69419085013;hpb=fc399c5aab38ad24ea5d57552701411b4d805181;p=bbtk.git diff --git a/kernel/src/bbtkWxGUIHtmlBrowser.h b/kernel/src/bbtkWxGUIHtmlBrowser.h index bf8b99c..06dbcc9 100644 --- a/kernel/src/bbtkWxGUIHtmlBrowser.h +++ b/kernel/src/bbtkWxGUIHtmlBrowser.h @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkWxGUIHtmlBrowser.h,v $ Language: C++ - Date: $Date: 2008/03/21 14:59:39 $ - Version: $Revision: 1.2 $ + Date: $Date: 2008/07/23 11:46:11 $ + Version: $Revision: 1.5 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -54,14 +54,19 @@ namespace bbtk _T("bbtk::WxGUIHtmlBrowser")), mBrowser(browser) { - - } + SetBorders(30); + }; // wxHtmlOpeningStatus OnOpeningURL(wxHtmlURLType type,const wxString& url, wxString *redirect); //EED virtual void OnLinkClicked(const wxHtmlLinkInfo& link); +//EED2 void OnSize( wxSizeEvent&); + + private: WxGUIHtmlBrowser* mBrowser; + // any class wishing to process wxWidgets events must use this macro +//EED2 DECLARE_EVENT_TABLE() }; @@ -71,7 +76,7 @@ namespace bbtk { public : WxGUIHtmlBrowserUser() {} - ~WxGUIHtmlBrowserUser() {} + virtual ~WxGUIHtmlBrowserUser() {} virtual bool WxGUIHtmlBrowserUserOnLinkClicked(const std::string& target) { return true; } @@ -82,7 +87,7 @@ namespace bbtk // class WxGUIConsole; - class WxGUIHtmlBrowser : public wxPanel + class BBTK_EXPORT WxGUIHtmlBrowser : public wxPanel { public: WxGUIHtmlBrowser ( wxWindow *parent, wxSize size, @@ -98,6 +103,8 @@ namespace bbtk // void OnRunButton(wxCommandEvent& ); void OnLinkClicked(wxHtmlLinkEvent& ); void OnURLEnter( wxCommandEvent&); + void OnSize( wxSizeEvent&); + void UpdateURL(); // void OnCell(wxHtmlCellEvent& );